fix: func parameters

(cherry picked from commit ce6ace4b8a)
This commit is contained in:
iamkhanraheel
2025-06-22 21:33:02 +05:30
committed by Mergify
parent bf78f6173c
commit c69bb746ce

View File

@@ -1869,10 +1869,9 @@ class StockEntry(StockController):
) )
@frappe.whitelist() @frappe.whitelist()
def get_items(self, qty, production_item): def get_items(self, qty=None, production_item=None):
self.set("items", []) self.set("items", [])
self.validate_work_order() self.validate_work_order()
# print(qty, 'qty\n\n')
if self.purpose == "Disassemble" and qty is not None: if self.purpose == "Disassemble" and qty is not None:
return self.get_items_for_disassembly(qty, production_item) return self.get_items_for_disassembly(qty, production_item)