UNPKG

facturacionelectronicapy-ts-xmlgen

Version:

Genera el contenido del archivo XML del Documento electrónico exigido por la SET

46 lines (44 loc) 2.57 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.EDocumentType = void 0; const Table_1 = __importDefault(require("../helpers/Table")); var EDocumentType; (function (EDocumentType) { EDocumentType[EDocumentType["FACTURA_ELECTRONICA"] = 1] = "FACTURA_ELECTRONICA"; EDocumentType[EDocumentType["FACTURA_ELECTRONICA_DE_EXPORTACION"] = 2] = "FACTURA_ELECTRONICA_DE_EXPORTACION"; EDocumentType[EDocumentType["FACTURA_ELECTRONICA_DE_IMPORTACION"] = 3] = "FACTURA_ELECTRONICA_DE_IMPORTACION"; EDocumentType[EDocumentType["AUTOFACTURA_ELECTRONICA"] = 4] = "AUTOFACTURA_ELECTRONICA"; EDocumentType[EDocumentType["NOTA_DE_CREDITO_ELECTRONICA"] = 5] = "NOTA_DE_CREDITO_ELECTRONICA"; EDocumentType[EDocumentType["NOTA_DE_DEBITO_ELECTRONICA"] = 6] = "NOTA_DE_DEBITO_ELECTRONICA"; EDocumentType[EDocumentType["NOTA_DE_REMISION_ELECTRONICA"] = 7] = "NOTA_DE_REMISION_ELECTRONICA"; EDocumentType[EDocumentType["COMPROBANTE_DE_RETENCION_ELECTRONICO"] = 8] = "COMPROBANTE_DE_RETENCION_ELECTRONICO"; })(EDocumentType || (exports.EDocumentType = EDocumentType = {})); // DELETE: Esto y los estados si ya no es necesario /* export enum ValidDocumentType { FACTURA_ELECTRONICA = AllDocumentTypes.FACTURA_ELECTRONICA, // Facturas de exportación // Facturas de importación AUTOFACTURA_ELECTRONICA = AllDocumentTypes.AUTOFACTURA_ELECTRONICA, NOTA_DE_CREDITO_ELECTRONICA = AllDocumentTypes.NOTA_DE_CREDITO_ELECTRONICA, NOTA_DE_DEBITO_ELECTRONICA = AllDocumentTypes.NOTA_DE_DEBITO_ELECTRONICA, NOTA_DE_REMISION_ELECTRONICA = AllDocumentTypes.NOTA_DE_REMISION_ELECTRONICA, // Comprobantes de retención } export enum FutureDocumentType { FACTURA_ELECTRONICA_DE_EXPORTACION = AllDocumentTypes.FACTURA_ELECTRONICA_DE_EXPORTACION, FACTURA_ELECTRONICA_DE_IMPORTACION = AllDocumentTypes.FACTURA_ELECTRONICA_DE_IMPORTACION, COMPROBANTE_DE_RETENCION_ELECTRONICO = AllDocumentTypes.COMPROBANTE_DE_RETENCION_ELECTRONICO, } */ exports.default = new Table_1.default(['_id', 'description', 'state'], [ [1, 'Factura electrónica', 0], [2, 'Factura electrónica de exportación', 1], [3, 'Factura electrónica de importación', 1], [4, 'Autofactura electrónica', 0], [5, 'Nota de crédito electrónica', 0], [6, 'Nota de débito electrónica', 0], [7, 'Nota de remisión electrónica', 0], [8, 'Comprobante de retención electrónico', 1], ]);