From e73570910c7c6628633c07a10257ffda8ef9eab3 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Fri, 21 Mar 2025 15:31:20 +0530 Subject: [PATCH] fix: patch --- erpnext/patches/v15_0/refactor_closing_stock_balance.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/patches/v15_0/refactor_closing_stock_balance.py b/erpnext/patches/v15_0/refactor_closing_stock_balance.py index 740b5238185..b6aba98b6e7 100644 --- a/erpnext/patches/v15_0/refactor_closing_stock_balance.py +++ b/erpnext/patches/v15_0/refactor_closing_stock_balance.py @@ -9,6 +9,9 @@ from erpnext.stock.doctype.inventory_dimension.inventory_dimension import ( def execute(): + if not frappe.db.has_table("Closing Stock Balance"): + return + add_inventory_dimensions_to_stock_closing_balance() create_stock_closing_entries()