Downloads issued invoices
The invoices downloaded from the xunnel-app
also needs to be issued (emitidas).
Modules to modify:
xunnel-invoice
In - The wizard
xunnel.attachments.wizard
must have ainvoice_type
selection field (withrelated=False
,default='recibidas'
) storing the values[('emitidas', 'Issued invoices'), ('recibidas', 'Invoices received')]
. - That value must be passed to the method
_sync_xunnel_attachments
and update the dictionary sent inself._xunnel('get_invoices_sat', values)
xunnel-app
In - The method
_get_invoices_sat
is going to receive the key/value you updated inxunnel-invoice
step 2. - Change the way the keywords are sent in this line, must be either
'recibidas,vigente'
or'emitidas,vigente'
. To make this, use the parameter you just sent.
More info in the docs