for customer payment journal, I have developed done some customization, where I settle Customer Invoice with payment/journal Line using x++ code.
I know under normal situation we don't need to write x++ for that as user can click settlement button under functions of payment journal lines, and can settle any invoice fully or partially.
But for some reasons we have written code to settle invoice with payment lines, in one of our customized form.
as I settle an invoice with a payment line, it settles whole invoice amount, whereas what we are looking for that user may want to settle an invoice partially.
e.g. invoice amount is 100 and customer want to pay 70. now I need to settle 70 with invoice. settlement is working fine only point is how I can make it a partial settlement using x++