Hi,
I am trying to create API for display Credit remaining, based on standard code i wrote below code in my service class, but i am not getting value. Please replay me asap.
if possible update my code.
Kindly respond my query asap.
public AmountMST updateBalance(CustAccount customerCode)
{
BankLCCustTransHelper bankLCTransHelper;
Amount creditLimitBalance;
TmpCustVendTrans tmpCustVendTrans = TmpCustVendTrans::custTransBalanceCurrency(
customerCode,
true,'AED',BankLCBankDocumentType::All);
while select AmountMST from tmpCustVendTrans
where tmpCustVendTrans.Txt == "@SYS94872"
{
return tmpCustVendTrans.AmountMst;
}
}