Cancelar movimientos de usados

This commit is contained in:
2020-12-28 12:41:41 -07:00
parent 52515527df
commit d72e542415
3 changed files with 89 additions and 18 deletions

View File

@@ -7791,6 +7791,7 @@
var totalCheque = ToDouble($get("TxtImporteCheque").value);
var totalTransferencia = ToDouble($get("TxtImporteTransferencia").value);
var totalRNC = ToDouble($get("HdnTotalRNC").value);
var totalAmortizado = ToDouble($get("HdnAnticipos").value);
var TotalOtrosContado = 0;
@@ -7800,7 +7801,7 @@
}
} catch (e) { }
var total = totalEfectivo + totalCredito + totalDebito + totalCheque + totalTransferencia + TotalOtrosContado + totalRNC;
var total = totalEfectivo + totalCredito + totalDebito + totalCheque + totalTransferencia + TotalOtrosContado + totalRNC + totalAmortizado;
var totalVenta = ToDouble($get('TxtTotal').value);
if (total > totalVenta) {
@@ -7809,7 +7810,7 @@
$get("TxtCambio").value = "0.00";
}
$get("TxtImporteContado").value = total - totalRNC;
$get("TxtImporteContado").value = total - totalRNC - totalAmortizado;
}
// ****************************************************************************************************************************************************************************