fix: reset raw materials considering not available batches

This commit is contained in:
Rohit Waghchaure
2025-10-12 13:10:39 +05:30
parent 15397b17f3
commit ec1636db12
2 changed files with 3 additions and 1 deletions

View File

@@ -198,6 +198,7 @@ class SubcontractingReceipt(SubcontractingController):
@frappe.whitelist()
def reset_raw_materials(self):
self.supplied_items = []
self.flags.reset_raw_materials = True
self.create_raw_materials_supplied()
def validate_closed_subcontracting_order(self):