mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 13:49:13 +00:00
frappe call if posting date is defined
This commit is contained in:
@@ -291,6 +291,7 @@ frappe.ui.form.on('Payment Entry', {
|
||||
|
||||
set_account_currency_and_balance: function(frm, account, currency_field,
|
||||
balance_field, callback_function) {
|
||||
if (frm.doc.posting_date) {
|
||||
frappe.call({
|
||||
method: "erpnext.accounts.doctype.payment_entry.payment_entry.get_account_details",
|
||||
args: {
|
||||
@@ -322,6 +323,7 @@ frappe.ui.form.on('Payment Entry', {
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
paid_from_account_currency: function(frm) {
|
||||
|
||||
Reference in New Issue
Block a user