mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-30 12:08:26 +00:00
Merge pull request #49540 from frappe/mergify/bp/version-15-hotfix/pr-49538
fix: SABB document status validation (backport #49538)
This commit is contained in:
@@ -354,6 +354,10 @@ class SerialBatchBundle:
|
||||
doc.flags.ignore_voucher_validation = True
|
||||
doc.submit()
|
||||
|
||||
for row in doc.entries:
|
||||
if row.docstatus == 0:
|
||||
frappe.throw(_("Serial and Batch Bundle {0} is not submitted").format(bold(doc.name)))
|
||||
|
||||
def set_warehouse_and_status_in_serial_nos(self):
|
||||
from erpnext.stock.doctype.serial_no.serial_no import get_serial_nos as get_parsed_serial_nos
|
||||
|
||||
|
||||
Reference in New Issue
Block a user