Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The currency quote is not set when create export invoices in other currency than ARS #6

Open
lukio opened this issue Dec 26, 2017 · 2 comments
Labels

Comments

@lukio
Copy link
Contributor

lukio commented Dec 26, 2017

When the invoice is in other currency than ARS, we search the currency quote inside the approve xml response. If we do not have the xml reponse, throws an error like this:

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 47, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 41, in rpc
    request, database_name, *request.rpc_params)
  File "/trytond/wsgi.py", line 39, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 106, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 163, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/wizard/wizard.py", line 287, in execute
    return wizard._execute(state_name)
  File "/trytond/wizard/wizard.py", line 318, in _execute
    result = self._execute(transition())
  File "/trytond/modules/citi_afip/citi.py", line 161, in transition_exportar_citi
    self.export_citi_comprobante_ventas()
  File "/trytond/modules/citi_afip/citi.py", line 334, in export_citi_comprobante_ventas
    ctz = Currency.round(invoice.currency, Decimal(ctz))
UnboundLocalError: local variable 'ctz' referenced before assignment

If we do not have the xml reponse, we should try to search the currency quote inside the currency.

@lukio lukio added the bug label Dec 26, 2017
@lukio
Copy link
Contributor Author

lukio commented Jun 26, 2020

Actualmente tenemos el campo tasa de cambio cargada en el comprobante, asi que debemos utilizar esa información a informar en el citi.

commit: tryton-ar/account_invoice_ar@994b623

@lukio
Copy link
Contributor Author

lukio commented Apr 13, 2021

REL #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant