frappe call if posting date is defined

This commit is contained in:
Manas Solanki 2017-07-10 17:33:27 +05:30
parent 5a174d61bc
commit 99d571a786

View File

@ -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) {