Settlement not happen in vendor transaction

Hi all,

anyone know, how to create settlement by code in posting journal…because just now i using this code

clsLedgerTrans.parmSettleVoucher(SettlementType::OpenTransact);
clsLedgerTrans.parmTransactionType(LedgerTransType::Payment);

but the settlement not happen and its still appear the current amount in vendor transactions.

supposed the Balance column should be ‘0.00’,

but my output its still appear current amount posting.

somebody have face same problem like me please share :frowning:

thanks,