@devlas/dte-sii 2.12.7 → 2.12.8
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/DTE.js +1 -1
- package/package.json +1 -1
package/DTE.js
CHANGED
|
@@ -199,7 +199,7 @@ class DTE {
|
|
|
199
199
|
this.documento = {
|
|
200
200
|
Documento: {
|
|
201
201
|
'@_ID': this.id,
|
|
202
|
-
Encabezado: { IdDoc: idDoc, Emisor: emisor, Receptor: receptor, Totales: enc.Totales },
|
|
202
|
+
Encabezado: { IdDoc: idDoc, Emisor: emisor, Receptor: receptor, ...(enc.Transporte ? { Transporte: enc.Transporte } : {}), Totales: enc.Totales },
|
|
203
203
|
Detalle: detalle,
|
|
204
204
|
...(this.datos.DscRcgGlobal ? { DscRcgGlobal: this.datos.DscRcgGlobal } : {}),
|
|
205
205
|
...(this.datos.Referencia ? { Referencia: this.datos.Referencia } : {}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devlas/dte-sii",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.8",
|
|
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",
|