-
Notifications
You must be signed in to change notification settings - Fork 70
[ADD] l10n_ar_edi_ux, l10n_ar_currency_update: Re use AFIP connection #681
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
base: 18.0
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR improves the company selection logic for AFIP currency updates by not only checking for valid certificates but also verifying that companies have valid connections to the required web services.
- Extracts certificate validation logic into a reusable method
_find_company_with_valid_certificate - Adds web service connection validation to ensure companies can actually connect to AFIP services
- Simplifies the main currency parsing logic by using the new helper method
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
f78f7e6 to
6adac78
Compare
64ea5a7 to
cce04d7
Compare
91faaad to
e1a9dd3
Compare
Improves the company selection logic for AFIP currency updates by not only checking for valid certificates but also verifying that companies have valid connections to the required web services. * Extracts certificate validation logic into a reusable method _find_company_with_valid_certificate * Adds web service connection validation to ensure companies can actually connect to AFIP services * FIX: Only ask this once outsite for loop
Update From Padron AFIP is only working when * my login company has a valid certificate and connection to ws_sr_constancia_inscripcion webservice * my login company has not certificate and there is only one other company with certificate and connection to the ws_sr_constancia_inscripcion webservice. This PR changes the logic to always try to find a company that actually can connect to the webserive and use that one in order to connect to AFIP to get padron data.
e1a9dd3 to
29ee0aa
Compare

Update From Padron AFIP and "Currency rate sincronization are only working if:
wsbe/ws_sr_constancia_inscripcion webservices.
This PR changes the logic to always try to find a company that actually can connect to the webserive and use that one in order
to connect to AFIP, avoiding trying to connect with an invalid connection which results on not working padron an rate syncronization (mostly silence errors)