fix: validation for cancellation

(cherry picked from commit 8de272a8a1)
This commit is contained in:
Rohit Waghchaure
2026-03-09 12:05:46 +05:30
committed by Mergify
parent ddb441359e
commit 8f02184c80

View File

@@ -352,7 +352,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)