Incorrect posting profile used when cancelling a prepayment

Prepayment reversal is posted using the default posting profile summary account and then eventually reversed to the prepayment posting profile summary account. When cancelling a payment unnecessary reversal transaction records are inserted in the CustTrans table. These transactions should be at least marked/checked in the ‘CancelledPayment’ column.

This fix is applied in \Classes\CustVendSettle_Cust\postingProfileSettle().

Change:

    custVoucher.parmTransVoucher(_custVendTrans.Voucher);

    custVoucher.parmVoucher(_custVendTrans.Voucher);

    custVoucher.parmInvoiceId(_custVendTrans.Invoice);

    custVoucher.parmPaymMode(_custVendTrans.PaymMode);

    custVoucher.parmPaymSpec(_custVendTrans.PaymSpec);

    custVoucher.parmFormLetter(_custVendTrans.Voucher);

To:

    custVoucher.parmTransVoucher(_custVendTrans.Voucher);

    cust.Voucher.parmCancelledPayment(true);

    custVoucher.parmVoucher(_custVendTrans.Voucher);

    custVoucher.parmInvoiceId(_custVendTrans.Invoice);

    custVoucher.parmPaymMode(_custVendTrans.PaymMode);

    custVoucher.parmPaymSpec(_custVendTrans.PaymSpec);

    custVoucher.parmFormLetter(_custVendTrans.Voucher);