{{extend 'plantilla.html'}} {{from decimal import Decimal}} {{ import locale locale.setlocale( locale.LC_ALL, '' ) }}

Acumulado de ingresos

{{=forma}} {{=excel}} {{=pdf}}
Bancos
Cheques {{=locale.format('%.2f', cheques, True)}}
Transferencia {{=locale.format('%.2f', transferencia, True)}}
Tarjeta {{=locale.format('%.2f', tarjeta, True)}}
Total {{=locale.format('%.2f', totalbancos, True)}}


Caja
Efectivo {{=locale.format('%.2f', efectivo, True)}}


{{ totalgp=0 ivagp=0 subtotalgp=0 for r in gastospendientes: ivagp=ivagp+r.iva subtotalgp=subtotalgp+r.subtotal totalgp=totalgp+r.total =TR(TD(r.fecha),TD(r.proveedor),TD(r.numdocumento),TD(r.tipodocumento),TD(r.comentarios),TD(locale.format('%.2f', r.subtotal, True),_style="text-align:right"),TD(locale.format('%.2f', r.iva, True),_style="text-align:right"),TD(locale.format('%.2f', r.total, True), _style="text-align:right")) pass =TR(TD('Totales'),TD('',_colspan="4"),TD(locale.format('%.2f', subtotalgp, True),_style="text-align:right"),TD(locale.format('%.2f', ivagp, True),_style="text-align:right"),TD(locale.format('%.2f', totalgp, True),_style="text-align:right"),_style="background-color: yellow") }}

Gastos Pendientes

Fecha Proveedor Num Docto Tipo Docto Comentarios Subtotal IVA Total


{{ totalg=0 ivag=0 subtotalg=0 for r in gastos: ivag=ivag+r.iva subtotalg=subtotalg+r.subtotal totalg=totalg+r.total =TR(TD(r.fecha),TD(r.proveedor),TD(r.numdocumento),TD(r.tipodocumento),TD(r.comentarios),TD('%.2f'%r.subtotal,_style="text-align:right"),TD('%.2f'%r.iva, _style="text-align:right"),TD('%.2f'%r.total,_style="text-align:right")) pass =TR(TD('Totales'),TD('',_colspan="4"),TD(locale.format('%.2f', subtotalg, True),_style="text-align:right"),TD(locale.format('%.2f', ivag, True), _style="text-align:right"),TD(locale.format('%.2f', totalg, True), _style="text-align:right"),_style="background-color: yellow") }}

Gastos Pagados

Fecha Proveedor Num Docto Tipo Docto Comentarios Subtotal IVA Total