From a4fa96cc79754e2f1fb60599cefe8f72454eb1fd Mon Sep 17 00:00:00 2001 From: Sambhaji Kolate Date: Mon, 30 Mar 2015 16:04:55 +0530 Subject: [PATCH] some fix in batch related cleanup --- erpnext/selling/sales_common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/selling/sales_common.js b/erpnext/selling/sales_common.js index c0f3507155..117232dc2c 100644 --- a/erpnext/selling/sales_common.js +++ b/erpnext/selling/sales_common.js @@ -505,7 +505,7 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({ var me = this; var item = frappe.get_doc(cdt, cdn); - if(doc.warehouse && doc.item_code && doc.batch_no) { + if(item.warehouse && item.item_code && item.batch_no) { return this.frm.call({ method: "erpnext.stock.get_item_details.get_batch_qty", child: item,