[minor] check mode_of_payment in Payment entry (#9869)

* [minor] don't trigger the expense type trigger if value is not set

* [minor] check if account is selected or not in Payment Entry

* [minor] check mode_of_payment in Payment entry
This commit is contained in:
Makarand Bauskar
2017-07-14 17:31:36 +05:30
committed by GitHub
parent 394c4d718d
commit ad7eb9d03c
3 changed files with 9 additions and 1 deletions

View File

@@ -94,6 +94,10 @@ var get_payment_mode_account = function(frm, mode_of_payment, callback) {
frappe.throw(__("Please select the Company first"));
}
if(!mode_of_payment) {
return;
}
return frappe.call({
method: "erpnext.accounts.doctype.sales_invoice.sales_invoice.get_bank_cash_account",
args: {