Commit 43535c9d7434bbf43899eee7249507290136b035

Authored by Eric Fernandez
1 parent f9bfaadbc2
Exists in master

parse planex

Showing 2 changed files with 14 additions and 3 deletions   Show diff stats
planex/identificaxMensaje.js
1 module.exports = function(comprobante) { 1 module.exports = function(comprobante) {
2 2
3 return ''; 3 var comprobanteArr = comprobante.split(';');
4 4
5 return {
6 idMensaje: comprobanteArr[1]
7 };
5 } 8 }
6 9
1 module.exports = function(comprobante) { 1 module.exports = function(comprobante) {
2 2
3 return { 3 return {
4 identificaxComprobante: require('./identificaxComprobante')(comprobante),// 010 4 identificaxComprobante: require('./identificaxComprobante')(comprobante),// 010
5 identificaxMensaje: require('./identificaxMensaje')(comprobante),// 012 5 identificaxMensaje: require('./identificaxMensaje')(comprobante),// 012
6 comprobantesReferencia: require('./comprobantesReferencia')(comprobante), // 020 6 comprobantesReferencia: require('./comprobantesReferencia')(comprobante), // 020
7 identificaxEmisor: require('./identificaxEmisor')(comprobante), // 030 7 identificaxEmisor: require('./identificaxEmisor')(comprobante), // 030
8 informaxRepresentanteEmisor: require('./informaxRepresentanteEmisor')(comprobante), // 035 8 informaxRepresentanteEmisor: require('./informaxRepresentanteEmisor')(comprobante), // 035
9 identificaxReceptorFactura: require('./identificaxReceptorFactura')(comprobante), // 040 9 identificaxReceptorFactura: require('./identificaxReceptorFactura')(comprobante), // 040
10 identificaxSucursalReceptorFactura: require('./identificaxSucursalReceptorFactura')(comprobante), // 045 10 identificaxSucursalReceptorFactura: require('./identificaxSucursalReceptorFactura')(comprobante), // 045
11 } 11 importesTotales: require('./importesTotales')(comprobante), // 050
12 detallesImportesIVA: require('./detallesImportesIVA')(comprobante), // 060
13 detallePercepcionesIIBB: require('./detallePercepcionesIIBB')(comprobante), // 070
14 descuentosGlobalesFactura: require('./descuentosGlobalesFactura')(comprobante), // 080
15 detalleOtrosImpuestosComprobante: require('./detalleOtrosImpuestosComprobante')(comprobante), // 090
16 itemsFactura: require('./itemsFactura')(comprobante), // 100
17 detalleDescuentosItemFactura: require('./detalleDescuentosItemFactura')(comprobante), // 110
18 detalleImpuestosItemFactura: require('./detalleImpuestosItemFactura')(comprobante), // 120
19 };
12 } 20 }
13 21