mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 16:15:02 +00:00
fix: SABB document status validation
(cherry picked from commit c0236191aa)
This commit is contained in:
committed by
Mergify
parent
6245bf9b87
commit
7bb92255c5
@@ -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