mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 13:49:13 +00:00
[minor] check mode_of_payment in Payment entry
This commit is contained in:
@@ -94,6 +94,10 @@ var get_payment_mode_account = function(frm, mode_of_payment, callback) {
|
|||||||
frappe.throw(__("Please select the Company first"));
|
frappe.throw(__("Please select the Company first"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!mode_of_payment) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
return frappe.call({
|
return frappe.call({
|
||||||
method: "erpnext.accounts.doctype.sales_invoice.sales_invoice.get_bank_cash_account",
|
method: "erpnext.accounts.doctype.sales_invoice.sales_invoice.get_bank_cash_account",
|
||||||
args: {
|
args: {
|
||||||
|
|||||||
Reference in New Issue
Block a user