{% macro getReference(object, options) %} {% set value = object.reference is defined ? object.reference : '' %} {{ value }} {% endmacro %} {% macro getName(object, options) %} {% set value = object.name is defined ? object.name : '' %} {{ value }} {% endmacro %} {% macro getDate(object, options) %} {% import 'AppBundle:Documents:v2\\Import\\global.html.twig' as globalF %} {% set value = object.date is defined ? object.date : '' %} {% set value = globalF.formatDate(value, options) %} {{ value }} {% endmacro %} {% macro getQuantity(object, options) %} {% set value = object.quantity is defined ? object.quantity : '' %} {{ value }} {% endmacro %} {% macro getUnitPriceWithoutTax(object, options) %} {% set value = object.unitPriceWithoutTax is defined ? object.unitPriceWithoutTax|number_format(2, ',', ' ') : '' %} {{ value }} {{ currencySymbol }} {% endmacro %} {% macro getPriceWithoutTax(object, options) %} {% set value = object.priceWithoutTax is defined ? object.priceWithoutTax|number_format(2, ',', ' ') : '' %} {{ value }} {{ currencySymbol }} {% endmacro %}