diff --git a/Ventas/PV.aspx b/Ventas/PV.aspx index 785aa3c2f..2786cb0f2 100644 --- a/Ventas/PV.aspx +++ b/Ventas/PV.aspx @@ -1229,7 +1229,7 @@
- +
$ @@ -3483,9 +3483,15 @@ var totalVenta = ToDouble($get('TxtTotal').value); if (total > totalVenta) { + lblCambio.innerHTML = "Cambio:" $get("TxtCambio").value = FormatoNumero(total - totalVenta); } else { - $get("TxtCambio").value = "0.00"; + if ('<%= UsuarioActual.Empresa.Funcionalidad(531) %>' == '1') { + lblCambio.innerHTML = "Faltante:" + $get("TxtCambio").value = FormatoNumero(total - totalVenta); + } else { + $get("TxtCambio").value = "$0.00" + } } $get("TxtImporteContado").value = total; diff --git a/Ventas/Ventas.aspx b/Ventas/Ventas.aspx index f7efff712..c0658934e 100644 --- a/Ventas/Ventas.aspx +++ b/Ventas/Ventas.aspx @@ -3366,7 +3366,7 @@
- +
$ @@ -7827,12 +7827,18 @@ var totalVenta = ToDouble($get('TxtTotal').value); if (total > totalVenta) { + lblCambio.innerHTML = "Cambio:" $get("TxtCambio").value = FormatoNumero(total - totalVenta); } else { - $get("TxtCambio").value = "0.00"; + if ('<%= UsuarioActual.Empresa.Funcionalidad(531) %>' == '1') { + lblCambio.innerHTML = "Faltante:" + $get("TxtCambio").value = FormatoNumero(total - totalVenta, 2); + } else { + $get("TxtCambio").value = "$0.00" + } } - $get("TxtImporteContado").value = total - totalRNC - totalAmortizado - totalProntoPago; + $get("TxtImporteContado").value = FormatoNumero(total - totalRNC - totalAmortizado - totalProntoPago,2); } // **************************************************************************************************************************************************************************** diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb index 91f8bf7fb..360018adf 100644 --- a/Ventas/Ventas.aspx.vb +++ b/Ventas/Ventas.aspx.vb @@ -16743,7 +16743,16 @@ Partial Class Ventas Row("SubProyecto") = SubProyecto Row("Serie") = Serie Row("TiempoEntrega") = TiempoEntrega - Row("Orden") = TmpDT.Rows.Count + 1 + If Modalidad = "U" Then + Row("Orden") = Index + Else + Dim ConsecutivoActual As Integer = TmpDT.MAX("Consec").ToEntero() + If ConsecutivoActual < 0 Then + ConsecutivoActual = 0 + End If + Row("Orden") = ConsecutivoActual + 1 + End If + Row("Cantidad") = Cantidad Row("CveUM") = CveUM Row("UM") = UM @@ -16823,7 +16832,11 @@ Partial Class Ventas If Modalidad = "U" Then Row("Consec") = Index Else - Row("Consec") = TmpDT.Rows.Count + 1 + Dim ConsecutivoActual As Integer = TmpDT.MAX("Consec").ToEntero() + If ConsecutivoActual < 0 Then + ConsecutivoActual = 0 + End If + Row("Consec") = ConsecutivoActual + 1 End If Row("PS") = DrPS("PS")