Fix assigning cost item to resource after 97393eb #5601

fyi @myoualid
This commit is contained in:
Andrej730
2024-10-21 11:25:23 +05:00
parent 647e379c69
commit 4acdd7c960
@@ -104,7 +104,7 @@ class Usecase:
if self.settings["prop_name"]: if self.settings["prop_name"]:
self.quantities = set(self.settings["cost_item"].CostQuantities or []) self.quantities = set(self.settings["cost_item"].CostQuantities or [])
for product in self.settings["products"]: for product in self.settings["products"]:
if not product.is_a("IfcElement"): if product.is_a("IfcSpatialElement"):
continue continue
self.assign_cost_control(related_object=product, cost_item=self.settings["cost_item"]) self.assign_cost_control(related_object=product, cost_item=self.settings["cost_item"])
if self.settings["prop_name"]: if self.settings["prop_name"]: