mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 23:19:20 +00:00
fix: validate sabb autocreation when disabled
This commit is contained in:
@@ -268,7 +268,7 @@ class SerialBatchBundle:
|
||||
and not self.sle.serial_and_batch_bundle
|
||||
and self.item_details.has_batch_no == 1
|
||||
and (
|
||||
self.item_details.create_new_batch
|
||||
(self.item_details.create_new_batch and self.sle.actual_qty > 0)
|
||||
or (
|
||||
frappe.get_single_value(
|
||||
"Stock Settings", "auto_create_serial_and_batch_bundle_for_outward"
|
||||
|
||||
Reference in New Issue
Block a user