Skip to content

Commit

Permalink
fix #165 no volver a contabilizar en AFIP al desconciliar pago.
Browse files Browse the repository at this point in the history
En el caso de WSFEX, si el comprobante tiene tiene pyafipws_cae,
significa que ya fue registrado en AFIP, y no debemos volver a
contabilizarlo en AFIP. Si es así, lo saltamos y se continua
normalmente.

REL #155 y #125 y #123.
  • Loading branch information
lukio committed Sep 27, 2019
1 parent 0c7216b commit 2504118
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,8 @@ def post(cls, invoices):
for invoice in invoices_nowsfe:
if invoice.pos:
if invoice.pos.pos_type == 'electronic':
if invoice.pyafipws_cae:
continue
ws = cls.get_ws_afip(invoice)
(ws, error) = invoice.create_pyafipws_invoice(ws,
batch=False)
Expand Down

0 comments on commit 2504118

Please sign in to comment.