{% macro getInvoiceDate(object, options) %} {% import 'AppBundle:Documents:v2\\Import\\global.html.twig' as globalF %} {% set value = object.invoiceDate is defined ? object.invoiceDate : '' %} {% set value = globalF.formatDate(value, options) %} {{ value }} {% endmacro %} {% macro getVehicleSellingListZone(object, options) %} {% set value = object.vehicleSellingList[0].zone is defined ? object.vehicleSellingList[0].zone|trans({}, 'CommonTrans') : '' %} {{ value }} {% endmacro %} {% macro getVehicleSellingListSellPriceWithoutTax(object, options) %} {% set value = object.vehicleSellingList[0].sellPriceWithoutTax is defined ? object.vehicleSellingList[0].sellPriceWithoutTax|number_format(2, ',', ' ') : '' %} {{ value }} {% endmacro %} {% macro getVehicleSellingListSellPriceWithTax(object, options) %} {% set value = object.vehicleSellingList[0].sellPriceWithTax is defined ? object.vehicleSellingList[0].sellPriceWithTax|number_format(2, ',', ' ') : '' %} {{ value }} {% endmacro %} {% macro getVehicleSellingListTax(object, options) %} {% set value = object.vehicleSellingList[0].tax is defined ? object.vehicleSellingList[0].tax|trans({}, 'CommonTrans') : '' %} {{ value }} {% endmacro %} {% macro getBalance(object, options) %} {% set value = object.balance is defined ? object.balance == 0 ? 'yes'|trans({}, 'CommonTrans') : 'no'|trans({}, 'CommonTrans') : '' %} {{ value }} {% endmacro %} {% macro getSellPriceWithoutTax(object, options) %} {% set value = object.sellPriceWithoutTax is defined ? object.sellPriceWithoutTax|number_format(2, ',', ' ') : '' %} {{ value }} {% endmacro %} {% macro getVehicleSellingGrossMargin(object, options) %} {% set value = object.vehicleSellingList[0].grossMargin is defined ? object.vehicleSellingList[0].grossMargin|number_format(2, ',', ' ') : '' %} {{ value }} {% endmacro %} {% macro getVehicleSellingNetMargin(object, options) %} {% set value = object.vehicleSellingList[0].netMargin is defined ? object.vehicleSellingList[0].netMargin|number_format(2, ',', ' ') : '' %} {{ value }} {% endmacro %}