feat: serial and batch bundle for Packing Items

This commit is contained in:
Rohit Waghchaure
2023-03-17 16:42:59 +05:30
parent 9c097e85f8
commit 674bd3e2e5
8 changed files with 40 additions and 12 deletions

View File

@@ -51,7 +51,9 @@ class SubcontractingController(StockController):
if self.doctype in ["Subcontracting Order", "Subcontracting Receipt"]:
self.validate_items()
self.create_raw_materials_supplied()
self.set_serial_and_batch_bundle("supplied_items")
for table_field in ["items", "supplied_items"]:
if self.get(table_field):
self.set_total_in_words(table_field)
else:
super(SubcontractingController, self).validate()