{% set totalSubscription = 0 %} {% if order.type == constant('AppBundle\\Entity\\Billing\\Order::ORDER_TYPE_NEW_SUBSCRIPTION') or order.type == constant('AppBundle\\Entity\\Billing\\Order::ORDER_TYPE_RENEW_SUBSCRIPTION') %} {% set newSubscription = (order.type == constant('AppBundle\\Entity\\Billing\\Order::ORDER_TYPE_NEW_SUBSCRIPTION') ? true : false) %} {% set amountSubscription = 0 %} {% if order.subscription is not empty %} {% set amountSubscription = order.subscription.price %} {% endif %} {% if newSubscription == true %} {% set amountFMS = 0 %} {% if order.subscription.creationFee is not empty %} {% set amountFMS = order.subscription.creationFee %} {% endif %} {% endif %} {% elseif order.type == constant('AppBundle\\Entity\\Billing\\Order::ORDER_TYPE_KREDITS') %} {% set amountKreditsPrice = 0 %} {% if order.kredit.price is not empty %} {% set amountKreditsPrice = order.kredit.price %} {% endif %} {% endif %}
Code Libellé Quantité PU HT Montant HT TVA Unitaire
{% if order.subscription.maxUser %}ABO {{ order.subscription.maxUser }} {% endif %} {% if order.subscription.maxUser is not empty %} {{ order.subscription.maxUser }} Utilisateur{% if order.subscription.maxUser > 1 %}s{% endif %} {% endif %} {% if order.subscription is not empty %}1{% endif %} {% if amountSubscription is not empty %}{{ amountSubscription|number_format(2, ',', ' ') }} {{ currencySymbol }}{% endif %} {% if amountSubscription is not empty %}{{ amountSubscription|number_format(2, ',', ' ') }} {{ currencySymbol }}{% endif %} {% if order.subscription is not empty %} {% set taxSubscription = (amountSubscription * order.tax) / 100 %} {{ taxSubscription|number_format(2, ',', ' ') }} {{ currencySymbol }} {% set totalSubscription = totalSubscription + (amountSubscription + taxSubscription) %} {% endif %}
FMS Frais de mise en service 1 {% if amountFMS is not empty %}{{ amountFMS|number_format(2, ',', ' ') }} {{ currencySymbol }}{% endif %} {% if amountFMS is not empty %}{{ amountFMS|number_format(2, ',', ' ') }} {{ currencySymbol }}{% endif %} {% set taxFMS = (amountFMS * order.tax) / 100 %} {{ taxFMS|number_format(2, ',', ' ') }} {{ currencySymbol }} {% set totalSubscription = totalSubscription + (amountFMS + taxFMS) %}
{% if order.kredit.kredit is not empty %}AHK {{ order.kredit.kredit }} {% endif %} {% if order.kredit.kredit is not empty %}{{ order.kredit.kredit }} Kredits{% endif %} {% if order.kredit.kredit is not empty %}1{% endif %} {% if amountKreditsPrice is not empty %}{{ amountKreditsPrice|number_format(2, ',', ' ') }} {{ currencySymbol }}{% endif %} {% if amountKreditsPrice is not empty %}{{ amountKreditsPrice|number_format(2, ',', ' ') }} {{ currencySymbol }}{% endif %} {% if order.kredit is not empty %} {% set taxKredit = (amountKreditsPrice * order.tax) / 100 %} {{ taxKredit|number_format(2, ',', ' ') }} {{ currencySymbol }} {% set totalSubscription = totalSubscription + (amountKreditsPrice + taxKredit) %} {% endif %}
 
Total TTC {{ totalSubscription|number_format(2, ',', ' ') }} {{ currencySymbol }}