Contratos Ventas, en amortizacion sugerir importe de a porcentje de anticipo y validar seleccion de estimacion y contrato.
This commit is contained in:
@@ -7908,7 +7908,7 @@
|
||||
$get('HdnTotalVenta').value = FormatoNumero(totalVenta, 2);
|
||||
}
|
||||
|
||||
function chkAnt(t, txt, importe) {
|
||||
function chkAnt(t, txt, importe, AmorContrato = 0) {
|
||||
debugger;
|
||||
var totalAnt = 0;
|
||||
|
||||
@@ -7925,6 +7925,8 @@
|
||||
|
||||
if (SaldoCompra > 0) {
|
||||
|
||||
|
||||
|
||||
//if (SaldoCompra > importe) {
|
||||
// txt.value = importe.toFixed(2);
|
||||
// SaldoCompra = SaldoCompra - importe;
|
||||
@@ -7935,7 +7937,14 @@
|
||||
// //SaldoCompra = 0.00;
|
||||
// $get('HdnVentaSaldo').value = SaldoCompra;
|
||||
//}
|
||||
txt.value = importe.toFixed(2);
|
||||
|
||||
if(AmorContrato > 0){
|
||||
txt.value = AmorContrato.toFixed(2);
|
||||
}else{
|
||||
txt.value = importe.toFixed(2);
|
||||
}
|
||||
|
||||
|
||||
|
||||
totalAnt = FnSumaValoresAnt();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user