commit | a4fa96cc79754e2f1fb60599cefe8f72454eb1fd | [log] [tgz] |
---|---|---|
author | Sambhaji Kolate <kolate.sambhaji@gmail.com> | Mon Mar 30 16:04:55 2015 +0530 |
committer | Sambhaji Kolate <kolate.sambhaji@gmail.com> | Mon Mar 30 16:04:55 2015 +0530 |
tree | a8fa346d5f24fa7771075f77db0c2c4070259dd4 | |
parent | 52e8c3d42b6eb2cf7be7436da12b1b844c098423 [diff] |
some fix in batch related cleanup
diff --git a/erpnext/selling/sales_common.js b/erpnext/selling/sales_common.js index c0f3507..117232d 100644 --- a/erpnext/selling/sales_common.js +++ b/erpnext/selling/sales_common.js
@@ -505,7 +505,7 @@ 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,