Skip to content

Commit

Permalink
Added support for contabilidad
Browse files Browse the repository at this point in the history
  • Loading branch information
satcfdi committed Mar 20, 2024
1 parent 51d3fa7 commit 8f28f47
Show file tree
Hide file tree
Showing 207 changed files with 4,061 additions and 4 deletions.
69 changes: 69 additions & 0 deletions satcfdi/render/templates/AuxiliarCtas.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<h3>Auxiliar de Cuentas</h3>
<table>
<tr>
<th style="width: 25%">RFC</th>
<th style="width: 25%">Año</th>
<th style="width: 25%">Mes</th>
<th style="width: 25%">Tipo Solicitud</th>
</tr>
<tr>
<td class="cen">{{ c.RFC }}</td>
<td class="cen">{{ c.Anio }}</td>
<td class="cen">{{ c.Mes }}</td>
<td class="cen">{{ c.TipoSolicitud }}</td>
</tr>
</table>
<br>
<table>
<thead>
<tr>
<th style="width: 15%;">NumCta</th>
<th style="width: 61%;">DesCta</th>
<th style="width: 12%;">SaldoIni</th>
<th style="width: 12%;">SaldoFin</th>
</tr>
</thead>
<tbody>
{% for c in iterate(c.Cuenta) %}
<tr>
<td class="l">
{{ c.NumCta }}
</td>
<td class="l">
{{ c.DesCta }}
</td>
<td class="r">
{{ c.SaldoIni }}
</td>
<td class="r">
{{ c.SaldoFin }}
</td>
</tr>
{% if c.DetalleAux %}
<tr style="break-before: avoid;">
<td colspan="4" style="padding-left: 5%; padding-right: 0%; background-color:#ffffff;">
<table >
<tr>
<th style="width: 10%;">Fecha</th>
<th style="width: 20%;">NumUnIdenPol</th>
<th style="width: 46%;">Concepto</th>
<th style="width: 12%;">Debe</th>
<th style="width: 12%;">Haber</th>
</tr>
{% for c in c.DetalleAux %}
<tr>
<td class="l">{{ c.Fecha }}</td>
<td class="l">{{ c.NumUnIdenPol }}</td>
<td class="l">{{ c.Concepto }}</td>
<td class="r">{{ c.Debe }}</td>
<td class="r">{{ c.Haber }}</td>
</tr>
{% endfor %}
</table>
<br>
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
3 changes: 2 additions & 1 deletion satcfdi/render/templates/Polizas.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h3>Pólizas</h3>
</tr>
{% if c.Transaccion %}
<tr style="break-before: avoid;">
<td colspan="3" style="padding-left: 5%; padding-right: 0%;">
<td colspan="3" style="padding-left: 5%; padding-right: 0%; background-color:#ffffff;">
<table >
<tr>
<th style="width: 10%;">NumCta</th>
Expand All @@ -56,6 +56,7 @@ <h3>Pólizas</h3>
</tr>
{% endfor %}
</table>
<br>
</td>
</tr>
{% endif %}
Expand Down
57 changes: 57 additions & 0 deletions satcfdi/render/templates/RepAuxFol.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<h3>Auxiliar de Folios</h3>
<table>
<tr>
<th style="width: 25%">RFC</th>
<th style="width: 25%">Año</th>
<th style="width: 25%">Mes</th>
<th style="width: 25%">Tipo Solicitud</th>
</tr>
<tr>
<td class="cen">{{ c.RFC }}</td>
<td class="cen">{{ c.Anio }}</td>
<td class="cen">{{ c.Mes }}</td>
<td class="cen">{{ c.TipoSolicitud }}</td>
</tr>
</table>
<br>
<table>
<thead>
<tr>
<th style="width: 15%;">NumUnIdenPol</th>
<th style="width: 61%;">Fecha</th>
</tr>
</thead>
<tbody>
{% for c in iterate(c.DetAuxFol) %}
<tr>
<td class="l">
{{ c.NumUnIdenPol }}
</td>
<td class="l">
{{ c.Fecha }}
</td>
</tr>
{% if c.ComprNal %}
<tr style="break-before: avoid;">
<td colspan="2" style="padding-left: 5%; padding-right: 0%; background-color:#ffffff;">
<table >
<tr>
<th style="width: 40%;">UUID_CFDI</th>
<th style="width: 40%;">RFC</th>
<th style="width: 20%;">MontoTotal</th>
</tr>
{% for c in c.ComprNal %}
<tr>
<td class="l">{{ c.UUID_CFDI }}</td>
<td class="l">{{ c.RFC }}</td>
<td class="r">{{ c.MontoTotal }}</td>
</tr>
{% endfor %}
</table>
<br>
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
12 changes: 12 additions & 0 deletions satcfdi/render/templates/_style.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@ table table table th {
table table table table th {
background-color:#f8f8f8;
}
table td {
background-color:#f0f0f0;
}
table td {
background-color:#f8f8f8;
}
table td {
background-color:#ffffff;
}
table td {
background-color:#ffffff;
}
.htd {
text-align: right;
width: 1px;
Expand Down
17 changes: 17 additions & 0 deletions tests/contabilidad_ejemplos/CACX7605101P8202312PL.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,21 @@
<PLZ:CompNal UUID_CFDI="a262228b-b105-4b90-9b02-ffe0e2d881cc" RFC="EWE1709045U0" MontoTotal="14911.94"/>
</PLZ:Transaccion>
</PLZ:Poliza>
<PLZ:Poliza NumUnIdenPol="2023-12-I-0001" Fecha="2023-12-01" Concepto="Ingreso - Venta">
<PLZ:Transaccion NumCta="4100.1" DesCta="INGRESOS" Concepto="Subtotal" Debe="0" Haber="13544.00">
<PLZ:CompNal UUID_CFDI="a262228b-b105-4b90-9b02-ffe0e2d881cc" RFC="EWE1709045U0" MontoTotal="14911.94"/>
</PLZ:Transaccion>
<PLZ:Transaccion NumCta="2152.1" DesCta="IVA TRASLADADO NO COBRADO" Concepto="IVA Trasladado" Debe="0" Haber="2167.04">
<PLZ:CompNal UUID_CFDI="a262228b-b105-4b90-9b02-ffe0e2d881cc" RFC="EWE1709045U0" MontoTotal="14911.94"/>
</PLZ:Transaccion>
<PLZ:Transaccion NumCta="2151.1.2" DesCta="IMPUESTOS RETENIDOS DE ISR PENDIENTE" Concepto="ISR Retenido" Debe="1354.40" Haber="0">
<PLZ:CompNal UUID_CFDI="a262228b-b105-4b90-9b02-ffe0e2d881cc" RFC="EWE1709045U0" MontoTotal="14911.94"/>
</PLZ:Transaccion>
<PLZ:Transaccion NumCta="1104.1" DesCta="IVA A FAVOR" Concepto="IVA Retenido" Debe="1444.70" Haber="0">
<PLZ:CompNal UUID_CFDI="a262228b-b105-4b90-9b02-ffe0e2d881cc" RFC="EWE1709045U0" MontoTotal="14911.94"/>
</PLZ:Transaccion>
<PLZ:Transaccion NumCta="1103.1" DesCta="CLIENTES NACIONALES" Concepto="Total" Debe="14911.94" Haber="0">
<PLZ:CompNal UUID_CFDI="a262228b-b105-4b90-9b02-ffe0e2d881cc" RFC="EWE1709045U0" MontoTotal="14911.94"/>
</PLZ:Transaccion>
</PLZ:Poliza>
</PLZ:Polizas>
54 changes: 54 additions & 0 deletions tests/contabilidad_ejemplos/CACX7605101P8202312XC.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version='1.0' encoding='UTF-8'?>
<AuxiliarCtas:AuxiliarCtas xmlns:AuxiliarCtas="http://www.sat.gob.mx/esquemas/ContabilidadE/1_3/AuxiliarCtas" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="1.3" RFC="CACX7605101P8" Mes="12" Anio="2023" TipoSolicitud="AF" xsi:schemaLocation="http://www.sat.gob.mx/esquemas/ContabilidadE/1_3/AuxiliarCtas http://www.sat.gob.mx/esquemas/ContabilidadE/1_3/AuxiliarCtas/AuxiliarCtas_1_3.xsd">
<AuxiliarCtas:Cuenta NumCta="1102.1.1" DesCta="MiBanco" SaldoIni="0" SaldoFin="10091.94">
<AuxiliarCtas:DetalleAux Fecha="2023-12-01" NumUnIdenPol="2023-12-C-0001" Concepto="Total" Debe="12911.94" Haber="0"/>
<AuxiliarCtas:DetalleAux Fecha="2023-12-27" NumUnIdenPol="2023-12-C-0002" Concepto="Total" Debe="0" Haber="2420.00"/>
<AuxiliarCtas:DetalleAux Fecha="2023-12-22" NumUnIdenPol="2023-12-C-0003" Concepto="Total" Debe="0" Haber="400.00"/>
</AuxiliarCtas:Cuenta>
<AuxiliarCtas:Cuenta NumCta="1103.1" DesCta="Clientes Nacionales" SaldoIni="0" SaldoFin="0.00">
<AuxiliarCtas:DetalleAux Fecha="2023-12-01" NumUnIdenPol="2023-12-I-0001" Concepto="Total" Debe="12911.94" Haber="0"/>
<AuxiliarCtas:DetalleAux Fecha="2023-12-01" NumUnIdenPol="2023-12-C-0001" Concepto="Total" Debe="0" Haber="12911.94"/>
</AuxiliarCtas:Cuenta>
<AuxiliarCtas:Cuenta NumCta="1104.2" DesCta="Otros impuestos a favor" SaldoIni="0" SaldoFin="0.00">
<AuxiliarCtas:DetalleAux Fecha="2023-12-01" NumUnIdenPol="2023-12-I-0001" Concepto="ISR Retenido" Debe="1354.40" Haber="0"/>
<AuxiliarCtas:DetalleAux Fecha="2023-12-01" NumUnIdenPol="2023-12-I-0001" Concepto="IVA Retenido" Debe="1444.70" Haber="0"/>
<AuxiliarCtas:DetalleAux Fecha="2023-12-01" NumUnIdenPol="2023-12-C-0001" Concepto="ISR Retenido" Debe="0" Haber="1354.40"/>
<AuxiliarCtas:DetalleAux Fecha="2023-12-01" NumUnIdenPol="2023-12-C-0001" Concepto="IVA Retenido" Debe="0" Haber="1444.70"/>
</AuxiliarCtas:Cuenta>
<AuxiliarCtas:Cuenta NumCta="2153.1" DesCta="IVA Trasladado Cobrado" SaldoIni="0" SaldoFin="2167.04">
<AuxiliarCtas:DetalleAux Fecha="2023-12-01" NumUnIdenPol="2023-12-C-0001" Concepto="IVA Trasladado" Debe="0" Haber="2167.04"/>
</AuxiliarCtas:Cuenta>
<AuxiliarCtas:Cuenta NumCta="2152.1" DesCta="IVA Trasladado No Cobrado" SaldoIni="0" SaldoFin="2167.04">
<AuxiliarCtas:DetalleAux Fecha="2023-12-01" NumUnIdenPol="2023-12-I-0001" Concepto="IVA Trasladado" Debe="0" Haber="2167.04"/>
</AuxiliarCtas:Cuenta>
<AuxiliarCtas:Cuenta NumCta="2151.1" DesCta="Impuestos Retenidos de ISR" SaldoIni="0" SaldoFin="-1354.40">
<AuxiliarCtas:DetalleAux Fecha="2023-12-01" NumUnIdenPol="2023-12-C-0001" Concepto="ISR Retenido" Debe="1354.40" Haber="0"/>
</AuxiliarCtas:Cuenta>
<AuxiliarCtas:Cuenta NumCta="2151.2" DesCta="Impuestos Retenidos de IVA" SaldoIni="0" SaldoFin="-1444.70">
<AuxiliarCtas:DetalleAux Fecha="2023-12-01" NumUnIdenPol="2023-12-C-0001" Concepto="IVA Retenido" Debe="1444.70" Haber="0"/>
</AuxiliarCtas:Cuenta>
<AuxiliarCtas:Cuenta NumCta="4100.1" DesCta="Ingresos" SaldoIni="0" SaldoFin="11376.96">
<AuxiliarCtas:DetalleAux Fecha="2023-12-01" NumUnIdenPol="2023-12-I-0001" Concepto="Subtotal" Debe="0" Haber="13544.00"/>
<AuxiliarCtas:DetalleAux Fecha="2023-12-01" NumUnIdenPol="2023-12-C-0001" Concepto="IVA Trasladado" Debe="2167.04" Haber="0"/>
</AuxiliarCtas:Cuenta>
<AuxiliarCtas:Cuenta NumCta="5202.1" DesCta="Otros Gastos de Administración" SaldoIni="0" SaldoFin="2431.04">
<AuxiliarCtas:DetalleAux Fecha="2023-12-27" NumUnIdenPol="2023-12-E-0001" Concepto="Subtotal" Debe="2086.21" Haber="0"/>
<AuxiliarCtas:DetalleAux Fecha="2023-12-22" NumUnIdenPol="2023-12-E-0002" Concepto="Subtotal" Debe="344.83" Haber="0"/>
</AuxiliarCtas:Cuenta>
<AuxiliarCtas:Cuenta NumCta="1152.1" DesCta="IVA Acreditable Pagado" SaldoIni="0" SaldoFin="388.96">
<AuxiliarCtas:DetalleAux Fecha="2023-12-27" NumUnIdenPol="2023-12-C-0002" Concepto="IVA Trasladado" Debe="333.79" Haber="0"/>
<AuxiliarCtas:DetalleAux Fecha="2023-12-22" NumUnIdenPol="2023-12-C-0003" Concepto="IVA Trasladado" Debe="55.17" Haber="0"/>
</AuxiliarCtas:Cuenta>
<AuxiliarCtas:Cuenta NumCta="1153.1" DesCta="IVA Pendiente de Pago" SaldoIni="0" SaldoFin="0.00">
<AuxiliarCtas:DetalleAux Fecha="2023-12-27" NumUnIdenPol="2023-12-E-0001" Concepto="IVA Trasladado" Debe="333.79" Haber="0"/>
<AuxiliarCtas:DetalleAux Fecha="2023-12-22" NumUnIdenPol="2023-12-E-0002" Concepto="IVA Trasladado" Debe="55.17" Haber="0"/>
<AuxiliarCtas:DetalleAux Fecha="2023-12-27" NumUnIdenPol="2023-12-C-0002" Concepto="IVA Trasladado" Debe="0" Haber="333.79"/>
<AuxiliarCtas:DetalleAux Fecha="2023-12-22" NumUnIdenPol="2023-12-C-0003" Concepto="IVA Trasladado" Debe="0" Haber="55.17"/>
</AuxiliarCtas:Cuenta>
<AuxiliarCtas:Cuenta NumCta="2101.1" DesCta="Proveedores nacionales" SaldoIni="0" SaldoFin="0.00">
<AuxiliarCtas:DetalleAux Fecha="2023-12-27" NumUnIdenPol="2023-12-E-0001" Concepto="Total" Debe="0" Haber="2420.00"/>
<AuxiliarCtas:DetalleAux Fecha="2023-12-22" NumUnIdenPol="2023-12-E-0002" Concepto="Total" Debe="0" Haber="400.00"/>
<AuxiliarCtas:DetalleAux Fecha="2023-12-27" NumUnIdenPol="2023-12-C-0002" Concepto="Total" Debe="2420.00" Haber="0"/>
<AuxiliarCtas:DetalleAux Fecha="2023-12-22" NumUnIdenPol="2023-12-C-0003" Concepto="Total" Debe="400.00" Haber="0"/>
</AuxiliarCtas:Cuenta>
</AuxiliarCtas:AuxiliarCtas>
21 changes: 21 additions & 0 deletions tests/contabilidad_ejemplos/CACX7605101P8202312XF.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version='1.0' encoding='UTF-8'?>
<RepAux:RepAuxFol xmlns:RepAux="http://www.sat.gob.mx/esquemas/ContabilidadE/1_3/AuxiliarFolios" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="1.3" RFC="CACX7605101P8" Mes="12" Anio="2023" TipoSolicitud="AF" xsi:schemaLocation="http://www.sat.gob.mx/esquemas/ContabilidadE/1_3/AuxiliarFolios http://www.sat.gob.mx/esquemas/ContabilidadE/1_3/AuxiliarFolios/AuxiliarFolios_1_3.xsd">
<RepAux:DetAuxFol NumUnIdenPol="2023-12-I-0001" Fecha="2023-12-01">
<RepAux:ComprNal UUID_CFDI="8f03c0b1-766c-4785-b89f-5cd4edac4a71" MontoTotal="12911.94" RFC="EWE1709045U0"/>
</RepAux:DetAuxFol>
<RepAux:DetAuxFol NumUnIdenPol="2023-12-E-0001" Fecha="2023-12-27">
<RepAux:ComprNal UUID_CFDI="fd8b18a0-89e3-4099-8753-fe92d1dc3b98" MontoTotal="2420.00" RFC="CACX7605101P8"/>
</RepAux:DetAuxFol>
<RepAux:DetAuxFol NumUnIdenPol="2023-12-E-0002" Fecha="2023-12-22">
<RepAux:ComprNal UUID_CFDI="648abbdd-4bb0-4c29-8917-d97de1783396" MontoTotal="400.00" RFC="CACX7605101P8"/>
</RepAux:DetAuxFol>
<RepAux:DetAuxFol NumUnIdenPol="2023-12-C-0001" Fecha="2023-12-01">
<RepAux:ComprNal UUID_CFDI="8f03c0b1-766c-4785-b89f-5cd4edac4a71" MontoTotal="12911.94" RFC="EWE1709045U0"/>
</RepAux:DetAuxFol>
<RepAux:DetAuxFol NumUnIdenPol="2023-12-C-0002" Fecha="2023-12-27">
<RepAux:ComprNal UUID_CFDI="fd8b18a0-89e3-4099-8753-fe92d1dc3b98" MontoTotal="2420.00" RFC="CACX7605101P8"/>
</RepAux:DetAuxFol>
<RepAux:DetAuxFol NumUnIdenPol="2023-12-C-0003" Fecha="2023-12-22">
<RepAux:ComprNal UUID_CFDI="648abbdd-4bb0-4c29-8917-d97de1783396" MontoTotal="400.00" RFC="CACX7605101P8"/>
</RepAux:DetAuxFol>
</RepAux:RepAuxFol>
12 changes: 12 additions & 0 deletions tests/test_cfdi/comprobante32/cfdv32-ejemplo.xml.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@
table table table table th {
background-color:#f8f8f8;
}
table td {
background-color:#f0f0f0;
}
table td {
background-color:#f8f8f8;
}
table td {
background-color:#ffffff;
}
table td {
background-color:#ffffff;
}
.htd {
text-align: right;
width: 1px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@
table table table table th {
background-color:#f8f8f8;
}
table td {
background-color:#f0f0f0;
}
table td {
background-color:#f8f8f8;
}
table td {
background-color:#ffffff;
}
table td {
background-color:#ffffff;
}
.htd {
text-align: right;
width: 1px;
Expand Down
12 changes: 12 additions & 0 deletions tests/test_cfdi/comprobante32/cfdv32-nomina.xml.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@
table table table table th {
background-color:#f8f8f8;
}
table td {
background-color:#f0f0f0;
}
table td {
background-color:#f8f8f8;
}
table td {
background-color:#ffffff;
}
table td {
background-color:#ffffff;
}
.htd {
text-align: right;
width: 1px;
Expand Down
12 changes: 12 additions & 0 deletions tests/test_cfdi/comprobante33/cfdv-33-addenda.xml.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@
table table table table th {
background-color:#f8f8f8;
}
table td {
background-color:#f0f0f0;
}
table td {
background-color:#f8f8f8;
}
table td {
background-color:#ffffff;
}
table td {
background-color:#ffffff;
}
.htd {
text-align: right;
width: 1px;
Expand Down
12 changes: 12 additions & 0 deletions tests/test_cfdi/comprobante33/cfdv33-base.xml.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@
table table table table th {
background-color:#f8f8f8;
}
table td {
background-color:#f0f0f0;
}
table td {
background-color:#f8f8f8;
}
table td {
background-color:#ffffff;
}
table td {
background-color:#ffffff;
}
.htd {
text-align: right;
width: 1px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@
table table table table th {
background-color:#f8f8f8;
}
table td {
background-color:#f0f0f0;
}
table td {
background-color:#f8f8f8;
}
table td {
background-color:#ffffff;
}
table td {
background-color:#ffffff;
}
.htd {
text-align: right;
width: 1px;
Expand Down
12 changes: 12 additions & 0 deletions tests/test_cfdi/comprobante33/cfdv33-cce11-min.xml.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@
table table table table th {
background-color:#f8f8f8;
}
table td {
background-color:#f0f0f0;
}
table td {
background-color:#f8f8f8;
}
table td {
background-color:#ffffff;
}
table td {
background-color:#ffffff;
}
.htd {
text-align: right;
width: 1px;
Expand Down
Loading

0 comments on commit 8f28f47

Please sign in to comment.