mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-09 15:29:30 +00:00
fix(manufacturing): handle empty bom cost allocation (#58939)
(cherry picked from commit 33a066d568)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user