forked from elmau/empresa-libre
Fix - Issue #194
This commit is contained in:
parent
cc56139665
commit
8acc4fe6bc
|
@ -1079,6 +1079,16 @@ function grid_details_before_edit_stop(state, editor){
|
||||||
}
|
}
|
||||||
var cantidad = parseFloat(row['cantidad'])
|
var cantidad = parseFloat(row['cantidad'])
|
||||||
var valor_unitario = parseFloat(row['valor_unitario'])
|
var valor_unitario = parseFloat(row['valor_unitario'])
|
||||||
|
|
||||||
|
if(descuento>=valor_unitario){
|
||||||
|
msg = 'El descuento debe ser menor al Valor Unitario'
|
||||||
|
msg_error(msg)
|
||||||
|
grid.blockEvent()
|
||||||
|
state.value = state.old
|
||||||
|
grid.editCancel()
|
||||||
|
grid.unblockEvent()
|
||||||
|
return true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var precio_final = valor_unitario - descuento
|
var precio_final = valor_unitario - descuento
|
||||||
|
|
Loading…
Reference in New Issue