diff --git a/Ventas/PV.aspx b/Ventas/PV.aspx index 5075a5c9c..266060f25 100644 --- a/Ventas/PV.aspx +++ b/Ventas/PV.aspx @@ -3273,8 +3273,8 @@ var totalVenta = ToDouble($get('TxtTotal').value); - if (totalEfectivo > totalVenta) { - $get("TxtCambio").value = FormatoNumero(totalEfectivo - totalVenta); + if (total > totalVenta) { + $get("TxtCambio").value = FormatoNumero(total - totalVenta); } else { $get("TxtCambio").value = "0.00"; } diff --git a/Ventas/Ventas.aspx b/Ventas/Ventas.aspx index f8ac7c2d6..fcf1ed714 100644 --- a/Ventas/Ventas.aspx +++ b/Ventas/Ventas.aspx @@ -2952,26 +2952,24 @@ -
+
-
+
MSI 3M 6M 9M 12M - + <%-- --%> - -
-
+
@@ -3004,8 +3002,8 @@
- -
+ +
@@ -3022,11 +3020,11 @@
-
+
- + Otros Credito Debito @@ -3040,12 +3038,12 @@
-
- +
+
- +
Meses @@ -3053,13 +3051,13 @@ 6M 9M 12M - +
- +
@@ -3077,9 +3075,20 @@

+
+
+
+ +
+ $ + + +

+
+
- + @@ -3434,7 +3443,7 @@
- +
@@ -5763,7 +5772,7 @@
-
+
@@ -5812,13 +5821,13 @@
- +
$ - +
@@ -5841,7 +5850,7 @@
@@ -5954,7 +5963,7 @@ " style="display: inline-block; margin-right: -20px; width: 150px;" /> " style="margin-top: -3px;" class="btn btn-circle btn-sm label-info">
-
+
@@ -6370,8 +6379,7 @@ $get('TxtTotalGv').value = FormatoNumero(TotalImportes, 2); $get('TxtNCImporte').value = FormatoNumero(total, 2); - if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') - { + if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') { CompararNC(); } @@ -6400,8 +6408,7 @@ TxtImporte.value = ""; } - if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') - { + if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') { CompararNC(); } } @@ -6413,13 +6420,12 @@ TxtImporte.value = ""; } - if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') - { + if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') { CompararNC(); } } - function LimitaCantidadRNCMasivo(TxtImporte,Saldo, Chk) { + function LimitaCantidadRNCMasivo(TxtImporte, Saldo, Chk) { var ImporteNuevo = TxtImporte.value; Chk.checked = true; @@ -6432,8 +6438,7 @@ TxtImporte.value = FormatoNumero(ImporteNuevo, 2); } - if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') - { + if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') { CompararNC(); } } @@ -6476,8 +6481,7 @@ TxtTotal.value = FormatoNumero(TotalConPorcentaje, 2); - if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') - { + if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') { CompararNC(); } } @@ -6812,15 +6816,20 @@ var TotalOtrosContado = 0; - try{ + try { if ($('#DdlOtroFormaPago').val() != "-1") { TotalOtrosContado = ToDouble($get("TxtImporteOtrosContado").value); - } - } catch (e) {} - - + } + } catch (e) { } var total = totalEfectivo + totalCredito + totalDebito + totalCheque + totalTransferencia + TotalOtrosContado; + var totalVenta = ToDouble($get('TxtTotal').value); + + if (total > totalVenta) { + $get("TxtCambio").value = FormatoNumero(total - totalVenta); + } else { + $get("TxtCambio").value = "0.00"; + } $get("TxtImporteContado").value = total; } @@ -7431,7 +7440,7 @@ } } - + function showDivEC() { $('#<%= TxtRFCCliente.ClientID %>').val(''); $('#<%= TxtNombreCliente.ClientID %>').val(''); @@ -7463,7 +7472,7 @@ document.getElementById('<%= TxtNCImporte.ClientID %>').style.border = "2px solid #04B431"; document.getElementById('<%= TxtImportesRemisionesNC.ClientID %>').style.color = ""; document.getElementById('<%= TxtNCImporte.ClientID %>').style.color = ""; - + } else { @@ -7475,8 +7484,7 @@ } function CerrarModalRemNC() { - if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') - { + if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') { CompararNC(); } $('#ModalAplicarRemisionesNC').modal('hide');