src/Flexy/FrontBundle/Themes/IlaveU/templates/admin/shopadmin/order/field/fullTotalAmount.html.twig line 1

  1. {# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
  2. {# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
  3. {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
  4. {% set order = entity.instance %}
  5. {% set reductionPromo = 0 %}
  6. {% if order.metaData|length >  0 %}
  7. {% set reductionPromo = getMetaDataValue(order.metaData,"applied_cashback_amt") %}
  8. {% endif %}
  9. <span class="badge badge-success" >
  10. <b>
  11. {% if reductionPromo %}
  12. {{ order.fullTotalAmount - reductionPromo }} {{settings.get.currency}}
  13. {% else %}
  14. {{ order.fullTotalAmount  }} {{settings.get.currency}}
  15. {% endif %}
  16. </b>
  17. </span>
  18.