Skip to content

Commit

Permalink
updated test requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
satcfdi committed Apr 11, 2024
1 parent be711f8 commit aa7ec83
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions satcfdi/accounting/contabilidad.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ def calcular_saldos(cuentas, polizas):
for t in p["Transaccion"]:
num_cta = t["NumCta"]
cuenta = cuentas[num_cta]
t['DesCta'] = cuenta['Desc']
assert cuenta["_Lowest"], f"Account {num_cta} is not a lowest level account"
cuenta["Debe"] += t["Debe"]
cuenta["Haber"] += t["Haber"]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_contabilidad.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test_generate_contabilidad_empty():
transaccion=[
Transaccion(
num_cta="1020.01",
des_cta="Bancos",
des_cta='',
concepto="Nal",
debe=10000,
haber=0,
Expand All @@ -93,7 +93,7 @@ def test_generate_contabilidad_empty():
),
Transaccion(
num_cta="1020.02",
des_cta="Bancos",
des_cta='',
concepto="Ext",
debe=0,
haber=10000,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version='1.0' encoding='UTF-8'?>
<PLZ:Polizas xmlns:PLZ="http://www.sat.gob.mx/esquemas/ContabilidadE/1_3/PolizasPeriodo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="1.3" RFC="CACX7605101P8" Mes="02" Anio="2024" TipoSolicitud="AF" xsi:schemaLocation="http://www.sat.gob.mx/esquemas/ContabilidadE/1_3/PolizasPeriodo http://www.sat.gob.mx/esquemas/ContabilidadE/1_3/PolizasPeriodo/PolizasPeriodo_1_3.xsd">
<PLZ:Poliza NumUnIdenPol="1" Fecha="2024-02-01" Concepto="Compra de equipo de computo">
<PLZ:Transaccion NumCta="1020.01" DesCta="Bancos" Concepto="Nal" Debe="10000" Haber="0">
<PLZ:Transaccion NumCta="1020.01" DesCta="Bancos Nacionales" Concepto="Nal" Debe="10000" Haber="0">
<PLZ:CompNal UUID_CFDI="a4f4fea5-e798-4ab3-a2e5-75f741f4ecca" RFC="CACX7605101P8" MontoTotal="10000"/>
</PLZ:Transaccion>
<PLZ:Transaccion NumCta="1020.02" DesCta="Bancos" Concepto="Ext" Debe="0" Haber="10000">
<PLZ:Transaccion NumCta="1020.02" DesCta="Bancos Extranjeros" Concepto="Ext" Debe="0" Haber="10000">
<PLZ:CompNal UUID_CFDI="a4f4fea5-e798-4ab3-a2e5-75f741f4ecca" RFC="CACX7605101P8" MontoTotal="10000"/>
</PLZ:Transaccion>
</PLZ:Poliza>
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit aa7ec83

Please sign in to comment.