mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-24 17:18:30 +00:00
fix: validation for cancellation
(cherry picked from commit 8de272a8a1)
This commit is contained in:
committed by
Mergify
parent
3c77653508
commit
c142a2be9c
@@ -333,7 +333,7 @@ class SerialBatchBundle:
|
|||||||
"Serial and Batch Entry", {"parent": self.sle.serial_and_batch_bundle, "docstatus": 0}
|
"Serial and Batch Entry", {"parent": self.sle.serial_and_batch_bundle, "docstatus": 0}
|
||||||
)
|
)
|
||||||
> 0
|
> 0
|
||||||
):
|
) and not self.sle.is_cancelled:
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
_("Serial and Batch Bundle {0} is not submitted").format(
|
_("Serial and Batch Bundle {0} is not submitted").format(
|
||||||
bold(self.sle.serial_and_batch_bundle)
|
bold(self.sle.serial_and_batch_bundle)
|
||||||
|
|||||||
Reference in New Issue
Block a user