You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extends the Argentinean Electronic Invoicing (l10n_ar_edi) to add support for the WSMTXCA webservice (RG2904 - Codificación de producto).
18
+
19
+
Installation
20
+
============
21
+
22
+
To install this module, you need to:
23
+
24
+
#. Install the module from the Apps menu.
25
+
26
+
Configuration
27
+
=============
28
+
29
+
To configure this module, you need to:
30
+
31
+
#. Configure your AFIP certificate in *Accounting > Configuration > Settings* (inherited from l10n_ar_edi).
32
+
#. Create or edit a Sales Journal and set **AFIP POS System** to ``Codificación de producto - Web Service (WSMTXCAWS)``.
33
+
#. Set the **AFIP POS Number** according to your AFIP portal configuration.
34
+
35
+
Usage
36
+
=====
37
+
38
+
Once configured, the module handles WSMTXCA electronic invoicing automatically when validating invoices
39
+
from a journal with the ``WSMTXCAWS`` POS system:
40
+
41
+
#. Create an invoice in a journal configured with the WSMTXCAWS POS system.
42
+
#. Validate the invoice. The module will contact the WSMTXCA webservice and request a CAE.
43
+
#. To consult a previously authorized invoice, use *Accounting > Reporting > AFIP WS Consult*.
44
+
#. To check available AFIP POS numbers for the webservice, use the **Check Available AFIP PoS** button on the journal (production mode only).
45
+
#. To consult the exchange rate for a currency via WSMTXCA, use the currency rate consultation feature on the currency record.
46
+
47
+
Technical
48
+
=========
49
+
50
+
The module implements the following model extensions:
51
+
52
+
* ``account.move``: overrides ``_l10n_ar_do_afip_ws_request_cae`` to handle WSMTXCA-specific CAE requests (``autorizarComprobante``), response parsing, and tribute/tax formatting.
53
+
* ``account.journal``: adds the ``WSMTXCAWS`` POS system option, maps it to the ``wsmtxca`` webservice, implements ``_wsmtxca_convert_auth`` for WSMTXCA authentication, and overrides ``l10n_ar_check_afip_pos_number`` and ``_l10n_ar_get_afip_last_invoice_number`` for WSMTXCA.
54
+
* ``res.currency``: overrides ``_l10n_ar_get_afip_ws_currency_rate`` to query exchange rates via the WSMTXCA ``consultarCotizacionMoneda`` service.
55
+
* ``l10n_ar.afipws.connection``: overrides ``_l10n_ar_get_afip_ws_url`` to register the WSMTXCA WSDL endpoints for production and testing environments.
56
+
* ``l10n_ar_afip.ws.consult`` (wizard): extends the invoice consultation wizard to support the ``WSMTXCAWS`` POS system, delegating to ``consultarComprobante`` on the WSMTXCA service.
0 commit comments