Please modify the part of the payment and rteceipt entry somewhere and write this in the set field level set as:$closingBal:Ledger:$PartyLedgerName