public AmountMST remainAmountMST()
{
AmountMST remainAmountMST;
#ISOCountryRegionCodes
boolean countryRegion_RU = SysCountryRegionCode::isLegalEntityInCountryRegion([#isoRU]);
if (custVendTrans.TransType == LedgerTransType::ExchAdjustment
|| (countryRegion_RU
&& custVendTrans.TransType == LedgerTransType::AdvanceAdjustment_RU))
// </GEERU>
{
remainAmountMST = custVendTrans.AmountMST - custVendTrans.SettleAmountMST;
}
else
{
remainAmountMST = custVendTrans.AmountMST + custVendTrans.ExchAdjustment - custVendTrans.SettleAmountMST;
}
return remainAmountMST;
}
André Arnaud de Cal...
292,111
Super User 2025 Season 1
Martin Dráb
230,934
Most Valuable Professional
nmaenpaa
101,156