You are on page 1of 7

[#Menu: Display Menu]

Add: Item: Sales Details Utility : Menu: Sales Details Utility

[Menu: Sales Details Utility]


Key Item: Itemwise Sales Summary : S : Display :
ProductwiseRpt
Item : Blank

Key Item: Partywise VoucherType Stats : T : Display Collection:


EBVchLedgerColl
Item : Blank

Key Item: Partywise Itemwise Sales : I : Display : EBY


Rep
Item : Blank

[Report: EBY Rep]

Use : DSP Template


Form : EBY Rep
Variable : DoSetAutoColumn, PName
Repeat : PName
Set : DoSetAutoColumn : Yes
Set : DSPRepeatCollection : "EBY Party"
Set : SVFromDate : $$MonthStart:##SVCurrentDate
Set : SVToDate : $$MonthEnd:##SVCurrentDate

[Form: EBY Rep]

Use : DSP Template


Parts : EBY Rep
Background : White, Light Orange
Option : Set Auto Vch Option : ##DoSetAutoColumn AND $
$SetAutoColumns:PName

[!Form: Set Auto Vch Option]

[Part: EBY Rep]

Lines : EBY Rep Title, EBY Rep Details


BottomLines : EBY Rep Total
Repeat : EBY Rep Details : Smp Stock Item
Scroll : Vertical
CommonBorder: Yes
Total : EBY Rep Party, EBY Rep Col Total

[Line: EBY Rep Title]

Use : EBY Rep Details

Local : Field : Default : Type : String


Local : Field : Default : Align : Center
Local : Field : EBY Rep Name : Set as : "Particulars"
Local : Field : EBY Rep Name : Widespaced: Yes
Local : Field : EBY Rep Party : Set as : ##PName
Local : Field : EBY Rep Party : Lines : 0
Local : Field : EBY Rep ColTotal : Set as : "Total"
Border : Flush Totals

[Line: EBY Rep Details]

Fields : EBY Rep Name, EBY Rep Party, EBY Rep Col Total
Repeat : EBY Rep Party
Total : EBY Rep Party

[Field: EBY Rep Name]

Use : Name Field


Set as : $IName
Display : Stock Vouchers
Variable : Stock Item Name

[Field: EBY Rep Party]

Use : Qty Primary Field


Set as : $$ReportObject:$$CollectionFieldByKey:
$BilledQty:@MyFormula:EBYSummVoucher
MyFormula : ##PName + #EBYRepName
Format : "NoZero"
Border : Thin Left

[Field: EBY Rep Col Total]

Use : Qty Primary Field


Set as : $$Total:EBYRepParty
Border : Thin Left

[Line: EBY Rep Total]

Fields : EBY Rep Name, EBY Rep Party, EBY Rep Col Total
Repeat : EBY Rep Party
Local : Field : Default : Type : String
Local : Field : Default : Align : Center
Local : Field : EBY Rep Name : Set as : "Total"
Local : Field : EBY Rep Name : Widespaced: Yes
Local : Field : EBY Rep Party : Set as : $$Total:EBYRepParty
Local : Field : EBY Rep ColTotal : Set as : $
$Total:EBYRepColTotal
Border : Thin Top

;; Collection Definition

[Collection: EBY Voucher]

Type : Voucher
Filter : IsSalesVT

[Collection: EBY Summ Voucher]

Source Collection : EBY Voucher


Walk : Inventory Entries
By : PName : $PartyLedgerName
By : IName : $StockItemName
Aggr Compute : BilledQty : SUM : $BilledQty
Search Key : $PName + $IName
[Collection: Smp Stock Item]

Source Collection : EBY Voucher


Walk : Inventory Entries
By : IName : $StockItemName
Aggr Compute : BilledQty : SUM : $BilledQty
Filter : NonEmptyQty

[Collection: EBY Party]

Source Collection : EBY Voucher


Walk : Inventory Entries
By : PName : $PartyLedgerName
Aggr Compute : BilledQty : SUM : $BilledQty
Filter : NonEmptyQty

;; Variable Definition

[Variable: PName]

Type : String
Repeat : ##DSPRepeatCollection

;; System Formula

[System: Formula]

IsSalesVT : $$IsSales:$VoucherTypeName
NonEmptyQty : NOT $$IsEmpty:$BilledQty

;; End-of-File

=====================

[Report: ProductwiseRpt]

Use : DSP Template


Form : ProductwiseRpt
Title : "Product-wise Sales Summary Report"

[Form: ProductwiseRpt]

Use : DSP Template


Parts : ProductwiseRptHdr, ProductwiseRpt
Height : 100% Screen
Width : 100% Screen
Delete : Buttons : ExplodeFlag
Delete : Bottom Buttons : DSPAutoColumns, BudgetAnalysis, ReportConfig

[Part: ProductwiseRptHdr]

Lines : ProductwiseRptHeader

[Line: ProductwiseRptHeader]

Field : Name Field


Right Field : DSP MainDateTitle
Local : Field : Name Field : Set as : $$LocaleString:"Inventory
Details"
Local : Field : Name Field : Style : Normal Bold
Space Bottom: 1

[Part: ProductwiseRpt]

Lines : ProductwiseRptTitle, ProductwiseRptInfo

Repeat : ProductwiseRptInfo : SummaryColl

Scrolled : Vertical
Common Borders : Yes
Border : Thin Bottom
Float : No

[Line: ProductwiseRptTitle]

Use : ProductwiseRptInfo
Local : Field : Default : Type : String
Local : Field : Default : Lines : 0
Local : Field : Default : Style : Normal
Bold
Local : Field : ProductTotalAmt : Align : Centre
Local : Field : ProductMaxRate : Align : Centre
Local : Field : ProductMinRate : Align : Centre
Local : Field : ProductName : Set as : "Particulars"
Local : Field : ProductTotalAmt : Set as : "Total Quantity"
Local : Field : ProductMaxRate : Set as : "Maximum Rate"
Local : Field : ProductMinRate : Set as : "Minimum Rate"
Border : Thin Column Titles

[Line: ProductwiseRptInfo]

Fields : ProductName
Right Fields : ProductTotalAmt, ProductMaxRate,ProductMinRate
Local : Field : Default : Style : Normal

[Field: ProductName]

Use : Name Field


Set as : $StockItemName
Display : Stock Vouchers
Variable : Stock Item Name

[Field: ProductTotalAmt]

Use : Qty Primary Field


Set as : $StkTotalQty
Border : Thin Left Right
Width : 10

[Field: ProductMaxRate]

Use : Rate Field


Set as : $StkMaxRate
Border : Thin Right
Width : 10

[Field: ProductMinRate]
Use : Rate Field
Set as : $StkMinRate
Border : Thin Right
Width : 10

;; Collection Definition begins

[Collection: SalesVouchersColl]

Type : Voucher
Filter : OnlySalesCreditNote

[Collection: SummaryColl]

Source Collection : SalesVouchersColl


Walk : Inventory Entries
By : StockItemName : $StockItemName
;; Aggr Compute is computed based on the By Attribute and the values are
stored in the Methods
;; specified.
;; StkTotalQty will store the Total on the Method BilledQty by Stock Item
Name.
;; StkMinRate and StkMaxRate Methods store the Minimum and Maximum
respectively on the
;; Method Rate
Aggr Compute : StkTotalQty : Sum : $BilledQty
Aggr Compute : StkMinRate : Min : $Rate
Aggr Compute : StkMaxRate : Max : $Rate
Keep Source : No
Sort : Default : $StockItemName

[System: Formula]

OnlySalesCreditNote : $$IsSales:$VoucherTypeName OR $$IsCreditNote:


$VoucherTypeName

;; End-of-File
========================
[Collection: EBVchLedgerColl]

Use : Ledger
Report : Transact Report
Trigger : Ledger Name
Variable : Ledger Name

[Report: Transact Report]

Use : DSP Template


Form : EBVchReport
Variable : Ledger Name

[Form: EBVchReport]

Use : DSP Template


Part : LV Title, EBVchTitle, EBVchBody
Width : 100% Screen
Height : 100% Screen
Delete : Buttons : ExplodeFlag
Delete : Bottom Buttons : DSPAutoColumns, BudgetAnalysis,
ReportConfig
Local: Line : LV Title : Local : Field : LV Title : Local :
Field: Simple Prompt : Info : $$LocaleString:"Ledger"
Local: Line : LV Title : Local : Field : LV Title : Local :
Field: Name Field : Set as : #LedgerName
;; Using the default Part LV Title to get the Party Ledger Name and Period
Details
;; Using Nested Locals to modify the attribute values as required

[Part: EBVchTitle]

Lines : EBVchTitle

[Line: EBVchTitle]

Use : EBVchLedDetail

Local : Field : Default : Type : String


Local : Field : Default : Align : Centre
Local : Field : Default : Style : Normal Bold

Local : Field : EBVchTypeName : Set as : "Voucher Type Name"


Local : Field : EBVchDrAmt : Set as : "Debit Amt"
Local : Field : EBVchCrAmt : Set as : "Credit Amt"
Border : Thin Top Bottom

[Part: EBVchBody]

Lines : EBVchLedDetail
Bottom Lines: EBVchLedTotal
Repeat : EBVchLedDetail : EBVchSummaryColl
Scroll : Vertical
CommonBorder: Yes
Total : EBVchDrAmt, EBVchCrAmt

[Line: EBVchLedDetail]

Fields : EBVchTypeName
Right Fields : EBVchDrAmt, EBVchCrAmt

Local : Field : Default : Style : Normal

[Field: EBVchTypeName]

Use : Name Field


Set as : $EBVchName

[Field: EBVchDrAmt]

Use : Amount Forex Field


Set as : $EBVchDrAmt
Border : Thin Left Right

[Field: EBVchCrAmt]

Use : Amount Forex Field


Set as : $EBVchCrAmt
Border : Thin Right
[Line: EBVchLedTotal]

Use : EBVchLedDetail
Local : Field : Default : Style : Normal Bold
Local : Field : EBVchTypeName : Set as : "Total"
Local : Field : EBVchDrAmt : Set as : $$Total:EBVchDrAmt
Local : Field : EBVchCrAmt : Set as : $$Total:EBVchCrAmt
Border : Thin Top Bottom

[Collection: EBVchColl]

Type : Voucher

[Collection: EBVchSummaryColl]

SourceCollection: EBVchColl

Walk : Ledger Entries

By : EBVchName : $VoucherTypeName
;; Grouping By VoucherTypeName done here to get a Voucherwise Totals across
the source

By : EBVchLed : $LedgerName
;; Grouping By PartyName done here to get a Partywise Totals across the
source

Aggr Compute : EBVchDrAmt : Sum : If $$IsDr:


$Amount then $Amount else ""
Aggr Compute : EBVchCrAmt : Sum : If NOT $$IsDr:
$Amount then $Amount else ""

Filter : EBVchFilter
;; Filtering done here to retrieve only values pertaining to the requested
Party

[System: Formula]

EBVchFilter : #LedgerName = $EBVchLed


EBVchOpBal : $OpeningBalance:Ledger:#LedgerName
EBVchClBal : $ClosingBalance:Ledger:#LedgerName

;; End-of-Code

You might also like