{% extends 'base.html' %} {% block title %}Plan de Cuentas{% endblock %} {% block content %}

Plan de Cuentas PGC

Plan General Contable simplificado. Las cuentas del sistema no son eliminables.

Balance sumas y saldos Libro Diario Nueva cuenta
{% with msgs = get_flashed_messages(with_categories=true) %} {% for cat, msg in msgs %} {% endfor %} {% endwith %} {% for grupo_num in [1,2,3,4,5,6,7] %} {% if grupos.get(grupo_num) %}
Grupo {{ grupo_num }} {{ grupos_nombres.get(grupo_num, '') }} {{ grupos[grupo_num]|length }} cuenta(s)
{% for c in grupos[grupo_num] %} {% set s = saldos.get(c.id, {}) %} {% set td = s.get('debe', 0) %} {% set th = s.get('haber', 0) %} {% set saldo = td - th if c.naturaleza == 'deudora' else th - td %} {% endfor %}
Código Nombre Suma Debe Suma Haber Saldo Tipo
{{ c.codigo }} {{ c.nombre }} {% if not c.activo %}Inactiva{% endif %} {% if c.es_sistema %}PGC{% endif %} {% if td %}{{ "%.2f €"|format(td) }}{% else %}{% endif %} {% if th %}{{ "%.2f €"|format(th) }}{% else %}{% endif %} {% if saldo != 0 %} {{ "%.2f €"|format(saldo) }} {% else %}{% endif %} {{ c.tipo }} {% if not c.es_sistema %} {% set movs = saldos.get(c.id) %} {% if movs %} {% else %} {% endif %} {% endif %}
{% endif %} {% endfor %} {% endblock %}