Commit 59960b78976880d01bb388cb7226c003861d88f0
1 parent
b36cbe778b
Exists in
master
recadv
Showing
1 changed file
with
2 additions
and
4 deletions
Show diff stats
recadv/datosCantidadArticulos.js
1 | 1 | module.exports = function(cuerpo, index, decimalToFijo) { |
2 | 2 | |
3 | - cuerpo.estado == 'rechazado' ? cuerpo.CAN = 0 : false; | |
4 | - | |
5 | - var cantidadRecibida = cuerpo.recibido ? cuerpo.recibido : cuerpo.CAN; | |
3 | + var cantidad = cuerpo.estado == 'rechazado' ? cuerpo.cantidadRecibida = 0 : cuerpo.cantidadRecibida; | |
6 | 4 | |
7 | 5 | return '111;' + |
8 | 6 | (index + 1) + ';' + |
9 | 7 | 45 + ';' + |
10 | - decimalToFijo(cantidadRecibida, 5, 15) + ';'; | |
8 | + decimalToFijo(cantidad, 5, 15) + ';'; | |
11 | 9 | } |