From 14d5c7f3cd7046c62456a4be940c8642a86c56e7 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Thu, 31 Jul 2025 15:23:14 +0530 Subject: [PATCH] fix: failing subcontracting patch (cherry picked from commit bb434199441111f79b6e816b98a1ce0751230420) (cherry picked from commit 2f4a9f283dab89815661d7f8dae321797487147b) --- .../repost_gl_entries_with_no_account_subcontracting.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/erpnext/patches/v15_0/repost_gl_entries_with_no_account_subcontracting.py b/erpnext/patches/v15_0/repost_gl_entries_with_no_account_subcontracting.py index b2208667ea6..e7394f1071c 100644 --- a/erpnext/patches/v15_0/repost_gl_entries_with_no_account_subcontracting.py +++ b/erpnext/patches/v15_0/repost_gl_entries_with_no_account_subcontracting.py @@ -19,7 +19,7 @@ def execute(): if not item.cost_center: item.db_set("cost_center", cost_center) - doc.docstatus = 2 - doc.make_gl_entries_on_cancel() - doc.docstatus = 1 - doc.make_gl_entries() + doc.docstatus = 2 + doc.make_gl_entries_on_cancel() + doc.docstatus = 1 + doc.make_gl_entries()