From c142a2be9c8270175c007e0b530de8f2a39425a3 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Mon, 9 Mar 2026 12:05:46 +0530 Subject: [PATCH] fix: validation for cancellation (cherry picked from commit 8de272a8a1c9295184febc773d028493d49f56ce) --- erpnext/stock/serial_batch_bundle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/serial_batch_bundle.py b/erpnext/stock/serial_batch_bundle.py index 896b43088ad..84535372b4b 100644 --- a/erpnext/stock/serial_batch_bundle.py +++ b/erpnext/stock/serial_batch_bundle.py @@ -333,7 +333,7 @@ class SerialBatchBundle: "Serial and Batch Entry", {"parent": self.sle.serial_and_batch_bundle, "docstatus": 0} ) > 0 - ): + ) and not self.sle.is_cancelled: frappe.throw( _("Serial and Batch Bundle {0} is not submitted").format( bold(self.sle.serial_and_batch_bundle)