You are on page 1of 4

;http://tdlexpert.com/index.php?

threads/month-wise-cash-receipts-and-bank-receipts-
seperately.6541/

[Report:Fee Collection Monthwise]

Use : DSP Template


Title : "Cash and Bank - Monthly Summery"

Family : $$Translate:"cash and Bank Register"

Variable :
SVPeriodicity,VchTotalTrans,IsStockReport,DSPShowTrans,FamilyVoucherFlag
Set : DSPShowTrans : Yes
Set : VchTotalTrans : Yes
Set : SVPeriodicity : "Month"
Set : IsStockReport : No
Form : Fee Collection Monthwise

Set : FamilyVoucherFlag : Yes

;Use : DSP Template

[Form:Fee Collection Monthwise]


Use : DSP Template
Default : $$DateFrom <= $LastVoucherDate:Company:##SVCurrentCompany
Part : Form subTitle,Fee Collection Monthwise
Local : Part : Form subTitle : Local : Line
: Form subTitle:Local:Field:Form subTitle:Delete:Border
Local : Part : Form subTitle : Add : Line :
Company Name,PeriodLine
Local : Part : Form subTitle : Local : Line
: Company Name:Add:Field:FldCheckVchrTypeDRCR1
Local : Part : Form subTitle : Local : Line
: Company Name:Local:Field:Name Field:Local:Style:Normal Bold:Height:16
Local : Part : FormSubTitle : Height: 15% Screen
Local : Field : Form sub Title
: Info:" Fee Collection Month Wise"
Full Height : Yes
Full Width : Yes
Height : 100% screen
Width : 100% screen

[Field : FldCheckVchrTypeDRCR1]
Use : Logical Field
set as : $IsDeemedPositive:VoucherType:##SVoucherType
Invisible: Yes

;[Line:Company Name]
; Field:Name Field
; Local:Field:Name Field:Full Width:Yes
; Local:Field:Name Field:Align:Center
; Local:Field:Name Field:Info:##SVCurrentCompany
[Part:Fee Collection Monthwise]
;Use : DSP Period
Line : Fee Collection MonthwiseT,Fee Collection MonthwiseB
Repeat : Fee Collection MonthwiseB : DatewiseReceipts;LedgerPeriod
Collection1
Scroll : Vertical
Common Border : Yes

[Line:Fee Collection MonthwiseB]

Field : Perticulars,FldSummaryMonth,CashAmount,BankAmount,Total
Repeat : CashAmount : CashLeds;CashLedger
;Local : Field : FldSummaryMonth : Set As :
$mDate
;Local : Field : FldMSmryMONTH : Set As : $mDate

;Local : Field : FldMSmryAmt : Set As :


@ExactAmt
;Local : Field : DSP DrAmtA : Set as
: $TotalCashApril
Border : thin Bottom

[Field : FldSummaryMonth]
Use : Short Name Field
Invisible : Yes
Set As : $mDate

;[Collection: Cash Ledger]


;
; Use : VLedTable
; Type : Ledger
; Fetch : Name, ReserveName
; Include : Group:$$GroupCash
;Include : Group:$$GroupBank
;Include : Group:$$GroupBankOD

;[Collection : LedgerPeriod Collection1]


; Collection : Voucher,LedgerPeriod Collection
; ; Compute : Sum:If ( $$IsLedofGrp:($AllLedgerEntries[1].LedgerName):$
$GroupCash OR $$IsLedofGrp:($AllLedgerEntries[-1].LedgerName):$$GroupCash) Then
$Amount Else 0 ;@@TotalCashApril
; Aggr Compute : CashAmountMonthWise : Sum:If ( $$IsLedofGrp:
($AllLedgerEntries[1].LedgerName):$$GroupCash OR $$IsLedofGrp:($AllLedgerEntries[-
1].LedgerName):$$GroupCash) Then $Amount Else 0
; By : MonthName : $FullMonthName

[Collection:ReceiptVouchersMonth]

Type : Voucher

Filter : AllReceipts

Fetch : Date, SanVchrYearMonth, PartyLedgerName, Amount

; Filter : SanSelectedVchr

[Collection: CashLeds]
Source Collection : ReceiptVouchersMonth
Walk : All Ledger Entries
By : LName : $LedgerName
; By : ColNo : $mColNo

Aggr Compute : MAmount : SUM : $Amount


Filter : SanNonParty
Keep Source : ().
Search Key : $LName
Sort : Default : $ColNo

[Collection: DatewiseReceipts]
Source Collection : ReceiptVouchersMonth
By : PYear : $$YearOfDate:$Date
By : PMonth : $$FullMonthName:$Date
By : mDate : $SanVchrYearMonth

Aggr Compute : MAmount1 : SUM : $Amount


Keep Source : ().
Sort : Default : $mDate
Search Key : $mDate

[System:Formulae]

AllReceipts : $VoucherTypeName="Receipt" or $VoucherTypeName="Student


Receipt"

[Line:Fee Collection MonthwiseT]

Use : Fee Collection MonthwiseB


Border : Column Titles
Local : Field : Default
: Type : String
Local : Field : Default
: Align : Center
Local : Field : Default
: Color : Blue
Local : Field : Default
: Background: White
Local : Field :
Perticulars : Info : "Perticulars"
;Local : Field : DSP
DrAmtA : Info : "Debit"
Local : Field :
Perticulars : Align : Left
Local : Field : Cash
Amount : Info : "Cash Amount"
Local : Field : Cash
Amount : Border : Thin Left
Local : Field : BankAmount
: Info : "Bank Amount"
Local : Field : BankAmount
: Border : thin Left Right
Local : Field : Total
: Info : "Total"
Local : Field : Total
: Full Width: Yes
[Field:Perticulars]

Use : Name Field


Width : 50
Set as : $PMonth + " - " + $PYear;$FullMonthName

[Collection: ReceiptVouchersMonthMatrix]
Source Collection : ReceiptVouchersMonth
Walk : All Ledger Entries
By : PYear : $$YearOfDate:$Date
By : PMonth : $$FullMonthName:$Date
By : mDate : $SanVchrYearMonth
By : LName : $LedgerName
Aggr Compute : MAmount : SUM : $Amount
Keep Source : ().
Search Key : $mDate + $LName
Filter : SanNonParty

[Field:CashAmount]

Use : Amount Field


Width : 25
Border : Thin Left
Set as : @ExactAmt;$CashAmountMonthWise

mSrchKey : #FldSummaryMonth + $LName


mAmt : $$ReportObject:$$CollectionFieldByKey:
$MAmount:@mSrchKey:ReceiptVouchersMonthMatrix
ExactAmt : if #FldCheckVchrTypeDRCR1 then (if $$IsDr:@mAmt then @mAmt * -1
else @mAmt) else (if $$IsDr:@mAmt then @mAmt else @mAmt * -1)

[Field:BankAmount]

Use : Amount Field


Border : Thin Left Right
Width : 25
Set as : $TotalCash

[Field:total]

Use : Amount Field

You might also like