This commit is contained in:
Mauricio Baeza 2018-09-12 17:59:17 -05:00
parent b8f5dbd421
commit 30fab23c0d
1 changed files with 2 additions and 1 deletions

View File

@ -372,7 +372,7 @@ function actualizar_deposito(grid){
suma += obj.importe.to_float()
})
$$('txt_deposito_importe').setValue(suma.round(2))
$$('txt_deposito_importe').setValue(suma.round(DECIMALES))
$$('deposito_descripcion').setValue(descripcion.slice(0, -1))
grid.refresh()
}
@ -503,6 +503,7 @@ function validate_deposito(values){
}
suma += tmp
})
suma = suma.round(DECIMALES)
if(suma > importe){
msg = 'La suma del pago de facturas, no puede ser mayor al deposito'