mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 14:38:26 +00:00
fix in bin reorder item condition
This commit is contained in:
@@ -344,7 +344,8 @@ class DocType:
|
|||||||
and t1.docstatus != 2
|
and t1.docstatus != 2
|
||||||
""", self.doc.item_code)
|
""", self.doc.item_code)
|
||||||
|
|
||||||
if ((flt(ret[0]['re_order_level']) > flt(current_qty[0][0])) and ret[0]['re_order_level']):
|
if ret[0]["re_order_level"] and current_qty and \
|
||||||
|
(flt(ret[0]['re_order_level']) > flt(current_qty[0][0])):
|
||||||
self.create_auto_indent(ret[0], doc_type, doc_name, current_qty[0][0])
|
self.create_auto_indent(ret[0], doc_type, doc_name, current_qty[0][0])
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user