{% macro getValueNewOption(object, options) %} {% import 'AppBundle:Documents:v2\\Import\\global.html.twig' as globalF %} {% set options = {'afterValue': 'ttc', 'localizeCurrency': true}|merge(options|default({})) %} {% set value = object.valueNewOption is defined ? object.valueNewOption : '' %} {% if options.localizeCurrency == true %} {% set value %} {% include 'AppBundle:Utility:localized_currency.html.twig' with { 'value': value, 'group': object.vehicle.group, 'removeEmptyDecimal': true } %} {% endset %} {% endif %} {% set value = globalF.displayLabel(value, options) %} {{ value }} {% endmacro %} {% macro getEurotaxCoteDate(object, options) %} {% import 'AppBundle:Documents:v2\\Import\\global.html.twig' as globalF %} {% set options = options|merge({}) %} {% set value = object.coteDate is defined ? object.coteDate : '' %} {% set value = globalF.formatDate(value, options) %} {{ value }} {% endmacro %} {% macro getValueAverage(object, options) %} {% set value = object.valueAverage is defined ? object.valueAverage|number_format(2, ',', ' ') : '' %} {{ value }} {% endmacro %} {% macro getValueOption(object, options) %} {% set value = object.valueOption is defined ? object.valueOption|number_format(2, ',', ' ') : '' %} {{ value }} {% endmacro %} {% macro getValueMec(object, options) %} {% set value = object.valueMec is defined ? object.valueMec|number_format(2, ',', ' ') : '' %} {{ value }} {% endmacro %} {% macro getValueKm(object, options) %} {% set value = object.valueKm is defined ? object.valueKm|number_format(2, ',', ' ') : '' %} {{ value }} {% endmacro %} {% macro getValueCote(object, options) %} {% set value = object.valueCote is defined ? object.valueCote|number_format(2, ',', ' ') : '' %} {{ value }} {% endmacro %}