From 93eab5521cbf7347e464cab7f3352efcea9a9f71 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 23 Jan 2014 17:58:03 +0530 Subject: [PATCH] Minor fix in path --- erpnext/accounts/doctype/sales_invoice/sales_invoice.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js index 1a1fa9f66bb..2362f3f2024 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js @@ -241,8 +241,8 @@ cur_frm.cscript.hide_fields = function(doc) { cur_frm.cscript.mode_of_payment = function(doc) { return cur_frm.call({ - method: "get_bank_cash_account", - args: { mode_of_payment: doc.mode_of_payment } + method: "erpnext.accounts.doctype.sales_invoice.sales_invoice.get_bank_cash_account", + args: { mode_of_payment: doc.mode_of_payment }, }); } @@ -255,9 +255,6 @@ cur_frm.cscript.is_opening = function(doc, dt, dn) { if (doc.is_opening == 'Yes') unhide_field('aging_date'); } -//Make Delivery Note Button -//----------------------------- - cur_frm.cscript['Make Delivery Note'] = function() { wn.model.open_mapped_doc({ method: "erpnext.accounts.doctype.sales_invoice.sales_invoice.make_delivery_note",