mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 06:32:09 +00:00
fix cost value calculation when using parent cost
This commit is contained in:
@@ -108,7 +108,7 @@ class Usecase:
|
|||||||
for resource in resources:
|
for resource in resources:
|
||||||
cost, unit = ifcopenshell.util.resource.get_cost(resource)
|
cost, unit = ifcopenshell.util.resource.get_cost(resource)
|
||||||
if not cost:
|
if not cost:
|
||||||
cost = ifcopenshell.util.resource.get_parent_cost(resource) # Concept to standardise - Not defined in schema, but this makes manual scheduling of resources 10x faster and less duplicate data.
|
cost, unit = ifcopenshell.util.resource.get_parent_cost(resource) # Concept to standardise - Not defined in schema, but this makes manual scheduling of resources 10x faster and less duplicate data.
|
||||||
quantity = ifcopenshell.util.resource.get_quantity(resource)
|
quantity = ifcopenshell.util.resource.get_quantity(resource)
|
||||||
if not cost or not quantity:
|
if not cost or not quantity:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user