feat: serial and batch bundle for Subcontracting
This commit is contained in:
@@ -714,8 +714,11 @@ class StockController(AccountsController):
|
||||
message = self.prepare_over_receipt_message(rule, values)
|
||||
frappe.throw(msg=message, title=_("Over Receipt"))
|
||||
|
||||
def set_serial_and_batch_bundle(self):
|
||||
for row in self.items:
|
||||
def set_serial_and_batch_bundle(self, table_name=None):
|
||||
if not table_name:
|
||||
table_name = "items"
|
||||
|
||||
for row in self.get(table_name):
|
||||
if row.serial_and_batch_bundle:
|
||||
frappe.get_doc(
|
||||
"Serial and Batch Bundle", row.serial_and_batch_bundle
|
||||
|
||||
Reference in New Issue
Block a user