Merge pull request #53243 from frappe/mergify/bp/version-15-hotfix/pr-53239

fix: validation for cancellation (backport #53239)
This commit is contained in:
ruthra kumar
2026-03-10 12:23:14 +05:30
committed by GitHub

View File

@@ -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)