From be0f84a7225b7c7fb032dcd4a70ea440db060247 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 2 May 2022 09:41:12 +0530 Subject: [PATCH] fix(minor): fix create_accounting_dimensions_in_orders.py --- erpnext/patches/v14_0/discount_accounting_separation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v14_0/discount_accounting_separation.py b/erpnext/patches/v14_0/discount_accounting_separation.py index 8157982135..0d1349a320 100644 --- a/erpnext/patches/v14_0/discount_accounting_separation.py +++ b/erpnext/patches/v14_0/discount_accounting_separation.py @@ -5,7 +5,7 @@ def execute(): data = frappe.db.sql( 'select value from tabSingles where doctype="Accounts Settings" and field="enable_discount_accounting"' ) - discount_account = data and data[0][0] or 0 + discount_account = data and int(data[0][0]) or 0 if discount_account: for doctype in ["Buying Settings", "Selling Settings"]: frappe.db.set_value(doctype, doctype, "enable_discount_accounting", 1, update_modified=False)