This commit is contained in:
Mauricio Baeza 2018-09-12 13:35:03 -05:00
parent 12297b9479
commit 5e6d86cb6b
1 changed files with 3 additions and 1 deletions

View File

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