{% macro getComment(object, options) %} {{ object.comment is defined ? object.comment|truncate(600, true, '...')|nl2br : '' }} {% endmacro %} {% macro getZone(object, options) %} {{ object.zone is defined ? object.zone : '' }} {% endmacro %} {% macro getCosting(object, options) %} {{ object.costing is defined ? object.costing|number_format(2, ',', ' ') : 0 }} {% endmacro %} {% macro getTotalStateCosting(externalStateList, internalStateList) %} {% set totalStateCosting = 50 %} {% for object in externalStateList %} {% set totalStateCosting = totalStateCosting + (object.costing is defined ? object.costing|number_format(2, ',', ' ') : 0) %} {% endfor %} {% for object in internalStateList %} {% set totalStateCosting = totalStateCosting + (object.costing is defined ? object.costing|number_format(2, ',', ' ') : 0) %} {% endfor %} {{ totalStateCosting }} {% endmacro %} {% macro getExternalStateList(object, options) %} {{ object.externalStateList is defined ? object.externalStateList : '' }} {% endmacro %} {% macro getInternalStateList(object, options) %} {{ object.internalStateList is defined ? object.internalStateList : '' }} {% endmacro %}