Skip to content

Commit

Permalink
Merge 299b8d2 into b44441c
Browse files Browse the repository at this point in the history
  • Loading branch information
zaoral committed Feb 4, 2020
2 parents b44441c + 299b8d2 commit bb88182
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions l10n_ar_afipws_fe/models/invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,10 +772,12 @@ def do_pyafipws_request_cae(self):
ws.AutorizarComprobante()
vto = ws.Vencimiento
elif afip_ws == 'wsfex':
ws.Authorize(inv.id)
last_id = ws.GetLastID()
ws.Authorize(last_id+1)
vto = ws.FchVencCAE
elif afip_ws == 'wsbfe':
ws.Authorize(inv.id)
last_id = ws.GetLastID()
ws.Authorize(last_id+1)
vto = ws.Vencimiento
except SoapFault as fault:
msg = 'Falla SOAP %s: %s' % (
Expand Down

0 comments on commit bb88182

Please sign in to comment.