feat: serial and batch bundle for Packing Items
diff --git a/erpnext/controllers/subcontracting_controller.py b/erpnext/controllers/subcontracting_controller.py
index f7bc5d5..0e666ff 100644
--- a/erpnext/controllers/subcontracting_controller.py
+++ b/erpnext/controllers/subcontracting_controller.py
@@ -51,7 +51,9 @@
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()