From 0bfd4849ca6b10b11a34a33f9e52542a8411022b Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 24 Jun 2016 16:04:12 +0530 Subject: [PATCH 1/2] minot fix --- .../v6_20x/repost_valuation_rate_for_negative_inventory.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 f4c27cfecc..8369fea317 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 From 23b190414c58024249418f8899f51cd4c9104121 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 24 Jun 2016 16:41:59 +0600 Subject: [PATCH 2/2] bumped to version 6.27.25 --- erpnext/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/__init__.py b/erpnext/__init__.py index bb1465bced..769c827ca9 100644 --- a/erpnext/__init__.py +++ b/erpnext/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals -__version__ = '6.27.24' \ No newline at end of file +__version__ = '6.27.25' \ No newline at end of file