{{ t.language_english }} {{ t.language_ukrainian }}

pg_accumulator

{{ t.subtitle }}

{{ t.registered_registers }} {% for r in registers %} {{ r.name }} ({{ r.kind }}){% if not loop.last %}, {% endif %} {% endfor %}
{% if ledger_sound %} {{ t.audit_sound }} {% else %} {{ t.audit_warning }} {% endif %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}

{{ t.ledger_form_heading }}

{{ t.ledger_cancel_heading }}

{{ t.ledger_cancel_description }}

{{ t.account_types_heading }}

  • {{ t.account_type_active }}: {{ t.account_type_active_desc }}
  • {{ t.account_type_passive }}: {{ t.account_type_passive_desc }}

{{ t.trial_balance_heading }}

{% if ledger_balances %} {% set ns = namespace(total_dr=0, total_cr=0, active_total=0, passive_total=0) %} {% for b in ledger_balances %} {% set ns.total_dr = ns.total_dr + (b.amount_dr | float) %} {% set ns.total_cr = ns.total_cr + (b.amount_cr | float) %} {% if b.acc_type == 'A' %} {% set ns.active_total = ns.active_total + (b.balance | float) %} {% else %} {% set ns.passive_total = ns.passive_total + (b.balance | float) %} {% endif %} {% endfor %}
{{ t.col_account }} {{ t.col_type }} {{ t.col_subconto }} {{ t.col_amount_dr }} {{ t.col_amount_cr }} {{ t.col_balance }} {{ t.col_currency }}
{{ b.account }} {% if b.acc_type == 'A' %} {{ t.account_type_active }} {% else %} {{ t.account_type_passive }} {% endif %} {{ b.subconto | tojson }} {{ "%.2f"|format(b.amount_dr | float) }} {{ "%.2f"|format(b.amount_cr | float) }} {{ "%.2f"|format(b.balance | float) }} {{ b.currency }}
{{ t.totals_label }} {{ "%.2f"|format(ns.total_dr) }} {{ "%.2f"|format(ns.total_cr) }} {% if ns.total_dr == ns.total_cr %}{{ t.totals_match }}{% else %}{{ t.totals_mismatch }}{% endif %}
{{ t.total_assets }} {{ t.total_assets }} {{ "%.2f"|format(ns.active_total) }} USD {{ t.total_passives }} {{ "%.2f"|format(ns.passive_total) }} USD
{% else %}
{{ t.no_balances }}
{% endif %}

{{ t.journal_heading }}

{% if ledger_movements %} {% for lm in ledger_movements %} {% endfor %}
{{ t.journal_doc }} {{ t.journal_date }} {{ t.journal_dr_account }} {{ t.journal_dr_subconto }} {{ t.journal_cr_account }} {{ t.journal_cr_subconto }} {{ t.journal_amount }} {{ t.col_currency }} {{ t.journal_recorded_at }}
{{ lm.recorder }} {{ lm.period.strftime('%Y-%m-%d') if lm.period else '' }} Dr {{ lm.account_dr }} {{ lm.subconto_dr | tojson }} Cr {{ lm.account_cr }} {{ lm.subconto_cr | tojson }} {{ "%.2f"|format(lm.amount) }} {{ lm.currency }} {{ lm.recorded_at.strftime('%H:%M:%S') if lm.recorded_at else '' }}
{% else %}
{{ t.journal_empty }}
{% endif %}

{{ t.inventory_form_heading }}

{{ t.inventory_cancel_heading }}

{{ t.inventory_balance_heading }}

{{ t.current_balances_heading }}

{% if balances %} {% for b in balances %} {% endfor %}
{{ t.inventory_warehouse_label }}{{ t.inventory_product_label }}{{ t.movement_quantity }}{{ t.inventory_amount_label }}
{{ t.inventory_warehouse_label }} {{ b.warehouse }} {{ t.inventory_product_label }} #{{ b.product }} {{ b.quantity }} {{ b.amount }}
{% else %}
{{ t.current_balances_empty }}
{% endif %}

{{ t.movements_heading }}

{% if movements %} {% for m in movements %} {% endfor %}
{{ t.journal_doc }}{{ t.journal_date }}{{ t.inventory_warehouse_label }}{{ t.inventory_product_label }}{{ t.movement_quantity }}{{ t.inventory_amount_label }}{{ t.movement_recorded_at }}
{{ m.recorder }} {{ m.period.strftime('%Y-%m-%d') if m.period else '' }} {{ t.inventory_warehouse_label }} {{ m.warehouse }} {{ t.inventory_product_label }} #{{ m.product }} {{ m.quantity }} {{ m.amount }} {{ m.recorded_at.strftime('%H:%M:%S') if m.recorded_at else '' }}
{% else %}
{{ t.movement_empty }}
{% endif %}