From 5086ef249978ec9b6d81493705d94ecd1a3dd9a9 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 5 Nov 2014 12:33:29 +0530 Subject: [PATCH] Update update_requested_and_ordered_qty.py --- erpnext/patches/v4_2/update_requested_and_ordered_qty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v4_2/update_requested_and_ordered_qty.py b/erpnext/patches/v4_2/update_requested_and_ordered_qty.py index e44133e6a2..d6cabd8c23 100644 --- a/erpnext/patches/v4_2/update_requested_and_ordered_qty.py +++ b/erpnext/patches/v4_2/update_requested_and_ordered_qty.py @@ -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()