Update update_requested_and_ordered_qty.py

This commit is contained in:
Nabin Hait 2014-11-05 12:33:29 +05:30
parent 1caca80203
commit 5086ef2499

View File

@ -18,7 +18,7 @@ def execute():
"indented_qty": get_indented_qty(item_code, warehouse),
"ordered_qty": get_ordered_qty(item_code, warehouse)
})
if count / 200 == 0:
if count % 200 == 0:
frappe.db.commit()
except:
frappe.db.rollback()