Merge pull request #30606 from deepeshgarg007/exchange_gain_loss_button
fix: Exchange gain and loss button in Payment Entry
This commit is contained in:
commit
18b1a93c7e
@ -224,10 +224,7 @@ frappe.ui.form.on('Payment Entry', {
|
|||||||
(frm.doc.total_allocated_amount > party_amount)));
|
(frm.doc.total_allocated_amount > party_amount)));
|
||||||
|
|
||||||
frm.toggle_display("set_exchange_gain_loss",
|
frm.toggle_display("set_exchange_gain_loss",
|
||||||
(frm.doc.paid_amount && frm.doc.received_amount && frm.doc.difference_amount &&
|
frm.doc.paid_amount && frm.doc.received_amount && frm.doc.difference_amount);
|
||||||
((frm.doc.paid_from_account_currency != company_currency ||
|
|
||||||
frm.doc.paid_to_account_currency != company_currency) &&
|
|
||||||
frm.doc.paid_from_account_currency != frm.doc.paid_to_account_currency)));
|
|
||||||
|
|
||||||
frm.refresh_fields();
|
frm.refresh_fields();
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user