From e0271a8331645f7e6a0af3e8ce9ee9680836310c Mon Sep 17 00:00:00 2001 From: mbauskar Date: Tue, 11 Apr 2017 17:35:25 +0530 Subject: [PATCH] [minor] ReferenceError:doc fixes for delivery note --- erpnext/stock/doctype/delivery_note/delivery_note.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/stock/doctype/delivery_note/delivery_note.js b/erpnext/stock/doctype/delivery_note/delivery_note.js index 5d4537e44a..5236031e6d 100644 --- a/erpnext/stock/doctype/delivery_note/delivery_note.js +++ b/erpnext/stock/doctype/delivery_note/delivery_note.js @@ -39,7 +39,7 @@ frappe.ui.form.on("Delivery Note", { }); if (sys_defaults.auto_accounting_for_stock) { - frm.set_query('expense_account', 'items', function(frm) { + frm.set_query('expense_account', 'items', function(doc, cdt, cdn) { return { filters: { "report_type": "Profit and Loss", @@ -49,7 +49,7 @@ frappe.ui.form.on("Delivery Note", { } }); - frm.set_query('cost_center', 'items', function(frm) { + frm.set_query('cost_center', 'items', function(doc, cdt, cdn) { return { filters: { 'company': doc.company,