From 5a6e641565961627275892e1e05ad22dd128cc5e Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 26 Apr 2012 11:11:34 +0530 Subject: [PATCH] fixed batch issue --- erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py b/erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py index dbc9d6c435..0417f6bae9 100644 --- a/erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py +++ b/erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py @@ -41,6 +41,8 @@ class DocType: msgprint("""Not enough quantity (requested: %(actual_qty)s, current: %(batch_bal)s in Batch %(batch_no)s for Item %(item_code)s at Warehouse%(warehouse)s as on %(posting_date)s %(posting_time)s""" % self.doc.fields, raise_exception = 1) + + self.doc.fields.pop('batch_bal') # mandatory