Tuesday, 16 July 2013

Credit debit code

Debit:
display AmountMST debitBalanceMST()
{
    AmountMST debitBalanceMST;
    debitBalanceMST = ((exchAdj ? custTrans.amountExchAdj() : custTrans.AmountMST) -
                       (remainAmount ? custTrans.SettleAmountMST : 0));
    return max(debitBalanceMST, 0);
}

Credit:
 display AmountMST creditBalanceMST()
{
    AmountMST creditBalanceMST;
    creditBalanceMST = ((exchAdj ? custTrans.amountExchAdj() : custTrans.AmountMST) -
                        (remainAmount ? custTrans.SettleAmountMST : 0));
    return min(creditBalanceMST, 0);
}


No comments:

Post a Comment