Skip to content

Commit

Permalink
Merge pull request #25515 from Anuja-pawar/fix_PE_allocated_amt
Browse files Browse the repository at this point in the history
fix: update Allocated amount after Paid Amount is changed in PE
  • Loading branch information
deepeshgarg007 committed Apr 30, 2021
2 parents 7bf25b4 + 07fb98b commit 338a006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/payment_entry/payment_entry.js
Expand Up @@ -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);

Expand Down

0 comments on commit 338a006

Please sign in to comment.