How to get Amount in words of the sum(debit) or sum(Credit) amount on ledgerjournal report?
i want to get sum(debit) or sum(debit) on the basis of journal number and also voucher #.
Note: its and system default report and then class LedgerJournalDP extends SrsReportDataProviderPreProcessTempDB
for example:
| Debit |
Credit |
|
|
100
|
|
|
|
200
|
|
|
|
500
|
|
|
|
|
800 |
|
| 800 |
800 |
Amount in words: Eight hundred rupees |
* i did some thing like that but nothing achieved.
private void updateAmountInWords()
{
ledgerJournalTmp ledgerJournalTmp2,ledgerJournalTmp3;
;
ttsBegin;
while select sum(TotalAmountSumCredit) from ledgerJournalTmp2
group by ledgerJournalTmp2.JournalNum
{
while select forUpdate ledgerJournalTmp3
where ledgerJournalTmp3.JournalNum == ledgerJournalTmp2.JournalNum
{
//ledgerJournalTmp.AmountInWords ="OMG";
ledgerJournalTmp3.AmountInWords = Global::numeralsToTxt(ledgerJournalTmp2.TotalAmountSumCredit);
ledgerJournalTmp3.update();
}
}
ttsCommit;
}
please help me.
regards
zeeshan
*This post is locked for comments
I have the same question (0)