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;
}
}
I am not sure what to give in CreditMaxCheck- Can you open the CustParameters table browser and change the CreditMaxCheck value to some other, other than None.
Also refer to the below thread which might help you. You need to call the new method of CustCreditLimit class - Using that call the required methods to get credit limit balance.
Thanks,
Girish S.
Hi Girish,
Thanks for your kind response, I did debugging, in standard method custTransBalanceCurrency()
it not going Inside if look,
if (CustParameters::find().CreditMaxCheck != TypeOfCreditmaxCheck::None)
If possible help me on this, to get remaining balance.
Hi Krishna,
Have you debugged the code?
Try to create a runnable class and check whether the code you have written is working properly.
Thanks,
Girish S.
André Arnaud de Cal...
292,162
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156