{% extends 'subpage_base_wo_cms_toolbar.html' %} {% load cms_tags sekizai_tags i18n l10n repanier_tags %} {% block sub_content %}
{# {% debug %} #}

{% trans "New balance" %} {{ object.customer.long_basket_name }} : {{ object.balance }} € ({{ object.date_balance | date:"DATE_FORMAT" }})

{% if bank_account_set %}

{% trans "Bank movement(s) :" %}

{% for bank_account in bank_account_set %} {% endfor %}
{% trans "Date" %} {% trans "Payment" %} {% trans "Refund" %} {% trans "Comment" %}
{{ bank_account.operation_date }} {{ bank_account.bank_amount_in }} € {{ bank_account.bank_amount_out }} € {% if bank_account.operation_comment %} {{ bank_account.operation_comment }} {% endif %}
{% else %}

{% trans "No bank movement found" %}

{% endif %} {% if purchase_set %}

{{ object.permanence }} - {% trans "Purchase(s) :" %} {{ object.total_price_with_tax }} €

{% if object.total_vat != 0 or object.total_compensation != 0 or object.total_deposit != 0 %}

{% trans "This price include" %} {% if object.total_vat != 0 %}{% trans "Vat" %} : {{ object.total_vat }} €{% endif %}

{% if object.total_compensation != 0 %}{% if object.total_vat != 0 %}, {% endif %}{% trans "Compensation" %} : {{ object.total_compensation }} €{% endif %}

{% if object.total_deposit != 0 %}{% if object.total_vat != 0 or object.total_compensation != 0 %}, {% endif %}{% trans "Deposit" %} : {{ object.total_deposit }} €{% endif %}

{% endif %} {% for purchase in purchase_set %} {% endfor %}
{% trans "Date" %} {% trans "Producer" %} {% trans "Product" %} {% trans "Qty" %} {% trans "Unit price" %} {% trans "Total price" %} {% trans "Comment" %}
{{ purchase.distribution_date }} {{ purchase.producer.short_profile_name | truncatechars:15 }} {{ purchase.long_name }} {{ purchase.quantity | floatformat:3 }} {{ purchase.real_unit_price }} €{% if purchase.unit_deposit %} {{ purchase.unit_deposit }} € {% endif %} {% if purchase.invoiced_price_with_compensation %}{{ purchase.price_with_compensation }}{% else %}{{ purchase.price_with_vat }}{% endif %} € {% if purchase.comment %} {{ purchase.comment }} {% endif %}
{% else %}

{% trans "No purchase found" %}

{% endif %}

{% trans "Previous balance" %} : {{ object.previous_balance }} € ({{ object.date_previous_balance | date:"DATE_FORMAT" }})

{% endblock %} {% block footer %}
{% if previous_customer_invoice_id %} {% else %} {% endif %} {% if previous_customer_invoice_id or next_customer_invoice_id %} {% trans "Invoice" %} {% endif %} {% if next_customer_invoice_id %} {% else %} {% endif %}
{% endblock %}