Skip to content

Commit

Permalink
fix #29: fill TasaOCuotaP with zeros for comparison (#30)
Browse files Browse the repository at this point in the history
Co-authored-by: Alfredo Altamirano <Ahuahuachi@users.noreply.github.com>
  • Loading branch information
Ahuahuachi and Ahuahuachi authored Dec 10, 2024
1 parent f6701a9 commit 5623321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satcfdi/create/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def make_pago_totales(pagos):
impuestos[RETENCIONES_MAP[retencion["ImpuestoP"]]] += retencion["ImporteP"] * tipo_cambio

for traslado in iterate((p["ImpuestosP"] or {}).get("TrasladosP")):
match (traslado["ImpuestoP"], traslado["TipoFactorP"], str(traslado["TasaOCuotaP"])):
match (traslado["ImpuestoP"], traslado["TipoFactorP"], str(traslado["TasaOCuotaP"]).ljust(8, '0')):
case ("002", "Tasa", "0.160000"):
impuestos['TotalTrasladosBaseIVA16'] += traslado["BaseP"] * tipo_cambio
impuestos['TotalTrasladosImpuestoIVA16'] += traslado["ImporteP"] * tipo_cambio
Expand Down

0 comments on commit 5623321

Please sign in to comment.