Announcements
Hello Experts
I have a problem concerning the update method as i have made a new customized form and im trying to show the sum of the Credit and Debit in my form
first i made a new fields in my table and i put them in my form
All i need is to update the credit and debit in my form based on the posted sum of GL Lines credit & debit
here is the code that im using after the super in the update method in the LedgerJournalTrans update
select sum(AmountCurDebit), sum(AmountCurCredit) from _LedgerJournalTrans where this.LoanNo == _Sega_BankLoan.LoanNo && this.VoucherPosted == 1;
_Sega_BankLoan.Credit = this.AmountCurCredit;
_Sega_BankLoan.Debit = this.AmountCurDebit;
// _Sega_BankLoan.update();
}
please advise me if the logic of where to put my code and how to reach the right solution
the fields in my table is not getting updated
and i tried select forupdate but i cant get the sum in so i went backward to this select statment
André Arnaud de Cal...
293,296
Super User 2025 Season 1
Martin Dráb
232,093
Most Valuable Professional
nmaenpaa
101,156
Moderator