{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} {% extends ea.templatePath('layout') %} {% trans_default_domain ea.i18n.translationDomain %} {% block body_class 'page-content' %} {# deprecated 'The "page_title" block is deprecated, use "content_title" instead.' #} {% block page_title %} {% endblock %} {# deprecated 'The "page_content" block is deprecated, use "main" instead.' #} {% block page_content %} {% endblock %} {% block content_title %}{{ block('page_title') }}{% endblock %} {% block main %} {% set prePaidAmount = 0 %} {% set postPaidAmount = 0 %} {% set prePaidCustomerDeptAmount = 0 %} {% set postPaidCustomerDeptAmount = 0 %} {% set paidByCash = 0 %} {% set paidByCheck = 0 %} {% for singleCashBox in cashBoxes %} {% for singleCollectMoney in singleCashBox.shipmentCollectMoney %} {% if singleCollectMoney.collectedAt != null %} {% if singleCollectMoney.paymentMethod == "cash" %} {% set paidByCash = paidByCash + singleCollectMoney.amount %} {% endif %} {% if singleCollectMoney.paymentMethod == "check" %} {% set paidByCheck = paidByCheck + singleCollectMoney.amount %} {% endif %} {% if singleCollectMoney.paymentType == "prepaid" %} {% set prePaidAmount = prePaidAmount + singleCollectMoney.amount %} {% endif %} {% if singleCollectMoney.paymentType == "postpaid" %} {% set postPaidAmount = postPaidAmount + singleCollectMoney.amount %} {% endif %} {% endif %} {% endfor %} {% endfor %}
{% include "@Flexy/ShopBundle/templates/cash-box/reports/_dateIntervalForm.html.twig" with {template:"globalCollectMoneyReport"} %}
{{settings.get.projectName}}
{{"Store"|trans}} : {{store}}

{{"Cash box global report"|trans}}

{{"From"|trans}} : xxxx/xx/xx {{"To"|trans}} : xxxx/xx/xx

{{"Reviewed at"}} : xxxx/xx/xx
{% set netToDeposit = (prePaidAmount + postPaidAmount) - (prePaidCustomerDeptAmount + postPaidCustomerDeptAmount) %}
{{"Cash box"|trans}} {{"Pre payed"|trans}} {{"Post payed"|trans}} {{"Customers depts"|trans}} {{"Net to deposit"|trans}}
{{"Arrival"|trans}} {{postPaidAmount}} {{settings.get.currency|trans}} {{postPaidCustomerDeptAmount}} {{settings.get.currency|trans}} {{postPaidAmount - postPaidCustomerDeptAmount}} {{settings.get.currency|trans}}
{{"Upcoming"|trans}} {{prePaidAmount}} {{settings.get.currency|trans}} {{prePaidCustomerDeptAmount}} {{settings.get.currency|trans}} {{prePaidAmount - prePaidCustomerDeptAmount}} {{settings.get.currency|trans}}
{{"Total"|trans}} {{prePaidAmount}} {{settings.get.currency|trans}} {{postPaidAmount}} {{settings.get.currency|trans}} {{ prePaidCustomerDeptAmount + postPaidCustomerDeptAmount}} {{settings.get.currency|trans}} {{ netToDeposit }} {{settings.get.currency|trans}}
{{"Bank deposit"|trans}} {{"Net to deposit"|trans}} : {{netToDeposit}} {{settings.get.currency|trans}}
{{"Cash"|trans}} {{"Check"|trans}}
{{paidByCash}} {{settings.get.currency|trans}} {{paidByCheck}} {{settings.get.currency|trans}}
{% endblock %}