fix(manufacturing): handle empty bom cost allocation (#58939)

(cherry picked from commit 33a066d568)
This commit is contained in:
Pandiyan P
2026-09-09 18:04:10 +05:30
committed by Mergify
parent 33a74a2730
commit 77d8d5b3e2

View File

@@ -464,6 +464,7 @@ class BOM(WebsiteGenerator):
doc.set_status(save=True)
def set_fg_cost_allocation(self):
self.cost_allocation_per = flt(self.cost_allocation_per)
total_secondary_items_per = 0
own_cost = 0
for item in self.secondary_items: