Skip to content

Commit 8e77156

Browse files
committed
Updated Impuestos Logic
1 parent c4c3887 commit 8e77156

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

satcfdi/create/cfd/cfdi40.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ def _make_conceptos(conceptos, decimals):
338338
rnd_tracker_instance = RoundTrackerManager(decimals)
339339

340340
def make_concepto(concepto):
341-
impuestos = concepto.get("Impuestos") or {}
342341
valor_unitario = concepto['ValorUnitario']
343342

344343
importe = rnd_fn(concepto["Cantidad"] * valor_unitario)
@@ -351,7 +350,7 @@ def make_concepto(concepto):
351350
rnd_fn=rnd_tracker_instance[imp_k + strcode(i["Impuesto"])]) for i
352351
in iterate(imp_v)
353352
]
354-
for imp_k, imp_v in impuestos.items() if imp_v
353+
for imp_k, imp_v in (concepto.get("Impuestos") or {}).items() if imp_v
355354
} or None
356355

357356
if not concepto.get("ObjetoImp"):

0 commit comments

Comments
 (0)