minot fix
diff --git a/erpnext/patches/v6_20x/repost_valuation_rate_for_negative_inventory.py b/erpnext/patches/v6_20x/repost_valuation_rate_for_negative_inventory.py
index f4c27cf..8369fea 100644
--- a/erpnext/patches/v6_20x/repost_valuation_rate_for_negative_inventory.py
+++ b/erpnext/patches/v6_20x/repost_valuation_rate_for_negative_inventory.py
@@ -3,8 +3,9 @@
from __future__ import unicode_literals
import frappe
+from frappe.utils import cint
from erpnext.stock.stock_balance import repost
def execute():
- if frappe.db.get_value("Stock Settings", None, "allow_negative_stock"):
+ if cint(frappe.db.get_value("Stock Settings", None, "allow_negative_stock")):
repost(only_actual=True)
\ No newline at end of file