Merge pull request #25515 from Anuja-pawar/fix_PE_allocated_amt

fix: update Allocated amount after Paid Amount is changed in PE
This commit is contained in:
Deepesh Garg 2021-04-30 11:08:51 +05:30 committed by GitHub
commit 338a006e28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -561,7 +561,7 @@ frappe.ui.form.on('Payment Entry', {
flt(frm.doc.received_amount) * flt(frm.doc.target_exchange_rate));
if(frm.doc.payment_type == "Pay")
frm.events.allocate_party_amount_against_ref_docs(frm, frm.doc.received_amount);
frm.events.allocate_party_amount_against_ref_docs(frm, frm.doc.received_amount, 1);
else
frm.events.set_unallocated_amount(frm);