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

error validar factura en afip en moneda extranjera, no toma cotización correcta #58

Open
gbhadolfo opened this issue Feb 2, 2024 · 2 comments

Comments

@gbhadolfo
Copy link

Al validar una factura en moneda extranjera, la cotizacion del campo l10n_ar_currency_rate es 0, linea 396 de

https://github.com/ingadhoc/odoo-argentina-ce/blob/16.0/l10n_ar_afipws_fe/models/account_move_ws.py#L396

    invoice_info["moneda_ctz"] = self.l10n_ar_currency_rate or 1

Debiera tomar la del campo computed_currency_rate

Sugiero modificar esa linea por la siguiente: invoice_info["moneda_ctz"] = self.computed_currency_rate or self.l10n_ar_currency_rate or 1

@maq-adhoc
Copy link
Contributor

@jjscarafia no estoy seguro de esto. ¿que opinas?

@jjscarafia
Copy link
Member

lo charlamos y vimos que en realidad depende de cuando llamamos a super.
si llamamos a super antes de mandar a validar se asigna cotizacion

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

No branches or pull requests

3 participants