mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 21:50:01 +00:00
See #6570. Small fix
This commit is contained in:
committed by
Massimo Fabbro
parent
12774607f3
commit
482512085c
@@ -199,7 +199,7 @@ def assign_cost_value(
|
|||||||
cost_rate: ifcopenshell.entity_instance
|
cost_rate: ifcopenshell.entity_instance
|
||||||
) -> None:
|
) -> None:
|
||||||
ifc.run("cost.assign_cost_value", cost_item=cost_item, cost_rate=cost_rate)
|
ifc.run("cost.assign_cost_value", cost_item=cost_item, cost_rate=cost_rate)
|
||||||
existing_cost_rate = cost.get_cost_item_rate_assignment(cost_item)
|
existing_cost_rate = cost.get_assigned_rate_cost_item(cost_item)
|
||||||
if existing_cost_rate is None:
|
if existing_cost_rate is None:
|
||||||
ifc.run("control.assign_control", relating_control=cost_rate, related_object=cost_item)
|
ifc.run("control.assign_control", relating_control=cost_rate, related_object=cost_item)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user