@devlas/dte-sii 2.12.2 → 2.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CafSolicitor.js +4 -0
- package/DTE.js +1 -1
- package/FolioService.js +1 -0
- package/package.json +1 -1
package/CafSolicitor.js
CHANGED
|
@@ -395,6 +395,10 @@ class CafSolicitor {
|
|
|
395
395
|
response = await this.session.submitForm('/cvc_cgi/dte/of_solicita_folios_dcto', selectFields);
|
|
396
396
|
currentHtml = response.body || '';
|
|
397
397
|
this._saveDebug(debugDir, 'select.html', currentHtml);
|
|
398
|
+
|
|
399
|
+
if (currentHtml.includes('NO SE AUTORIZA')) {
|
|
400
|
+
return response; // solicitar() detectará el bloqueo en response.body
|
|
401
|
+
}
|
|
398
402
|
}
|
|
399
403
|
|
|
400
404
|
// Paso 3: Solicitar numeración
|
package/DTE.js
CHANGED
package/FolioService.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devlas/dte-sii",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.4",
|
|
4
4
|
"description": "Facturación y boletas electrónicas para el SII de Chile. Genera, timbra, firma y envía DTEs, libros electrónicos y automatiza la certificación.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "dte-sii.d.ts",
|