fix: Code styling
This commit is contained in:
parent
c9d6630f17
commit
550771058a
@ -148,7 +148,8 @@ frappe.ui.form.on('Payment Entry', {
|
||||
var company_currency = frm.doc.company? frappe.get_doc(":Company", frm.doc.company).default_currency: "";
|
||||
|
||||
frm.toggle_display("source_exchange_rate",
|
||||
(frm.doc.paid_amount && frm.doc.paid_from_account_currency != company_currency));
|
||||
(frm.doc.paid_amount
|
||||
frm.doc.paid_from_account_currency != company_currency));
|
||||
|
||||
frm.toggle_display("target_exchange_rate", (frm.doc.received_amount &&
|
||||
frm.doc.paid_to_account_currency != company_currency &&
|
||||
@ -157,8 +158,8 @@ frappe.ui.form.on('Payment Entry', {
|
||||
frm.toggle_display("base_paid_amount", frm.doc.paid_from_account_currency != company_currency);
|
||||
|
||||
frm.toggle_display("base_received_amount", (
|
||||
frm.doc.paid_to_account_currency != company_currency &&
|
||||
frm.doc.paid_from_account_currency != frm.doc.paid_to_account_currency
|
||||
frm.doc.paid_to_account_currency != company_currency
|
||||
&& frm.doc.paid_from_account_currency != frm.doc.paid_to_account_currency
|
||||
&& frm.doc.base_paid_amount != frm.doc.base_received_amount
|
||||
));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user