Commit 353b333eb48554079ab165756341a6c1abe0fbf0
1 parent
f80242782c
Exists in
master
cantidad por numero de unidades por embalaje
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
debo/cuerpoDebo.js
... | ... | @@ -12,7 +12,7 @@ module.exports = function(comprobante, afipTablas, entities, item) { |
12 | 12 | RUB: item.CodRub, // [int] NOT NULL, CODIGO DE RUBRO SE OBTIENE DE LA TABLA ARTICULOS SELECT DET_LAR,CODRUB FROM ARTICULOS WHERE CODSEC=SECTOR AND CODART=ARTICULO (DATOS OBTENIDOS EN NOTA ANTERIOR |
13 | 13 | TIO: item.DET_LAR, // [varchar](60) NOT NULL DESCRIPCION DEL PRODUCTO DEL PUNTO ANTERIOR DET_LAR |
14 | 14 | LI0: item.descripcion, // [varchar](60) NOT NULL, DESCRIPCION ENVIADA POR EL PROVEEDOR |
15 | - CAN: item.cantidad, // [money] NOT NULL, CANTIDAD DEL ITEM | |
15 | + CAN: item.cantidad * item.numeroUnidadesPorUnidadEmbalaje, // [money] NOT NULL, CANTIDAD DEL ITEM | |
16 | 16 | PUN: item.precioUnitario, // [decimal](20, 8) NOT NULL PRECIO UNITARIO DEL PRODUCTO ITEM |
17 | 17 | IMI: item.impuestoInterno ? item.impuestoInterno.importeImpuesto : 0, // [money] NOT NULL, IMPORTE IMPUESTOS INTERNOS DEL ITEM |
18 | 18 | IVA: item.alicuotaIVAAplicable ? (item.precioUnitario * item.alicuotaIVAAplicable) / 100 : 0, |
index.js
... | ... | @@ -49,7 +49,7 @@ function onGetFile(fileString, nameFile) { |
49 | 49 | |
50 | 50 | entities.proveedores = result.values[0]; |
51 | 51 | entities.empresa = result.values[1]; |
52 | - | |
52 | + console.log(planex); | |
53 | 53 | var debo = require('./debo/index')(planex, entities); |
54 | 54 | |
55 | 55 | require('./db/index')(debo, nameFile); |