mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 15:45:01 +00:00
Merge pull request #49538 from rohitwaghchaure/fixed-docstatus-issue-of-sabb
fix: SABB document status validation
This commit is contained in:
@@ -388,6 +388,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