BDH.No arroja total o cambio en pago diferido, ejemplo si el pago se va hacer 50% con tarjeta y el otro 50% en efectivó.Usados no se ordenan al momento de registrar una venta.

This commit is contained in:
2021-03-30 10:12:17 -07:00
parent 1b7c0e0e03
commit 3e84c752fb
3 changed files with 32 additions and 7 deletions

View File

@@ -1229,7 +1229,7 @@
<div class="row">
<div class="col-md-6">
</div>
<label class="col-md-2">Cambio:</label>
<label id="lblCambio" class="col-md-2">Cambio:</label>
<div class="col-md-4 input-icon">
<i style="margin: 0px;">$</i>
<asp:TextBox ID="TxtCambio" CssClass="form-control input-sm " Enabled="false" runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
@@ -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;

View File

@@ -3366,7 +3366,7 @@
<div class="row">
<div class="col-md-6">
</div>
<label class="col-md-2">Cambio:</label>
<label id="lblCambio" class="col-md-2">Cambio:</label>
<div class="col-md-4 input-icon">
<i style="margin: 0px;">$</i>
<asp:TextBox ID="TxtCambio" CssClass="form-control input-sm " Enabled="false" runat="server" MaxLength="12" Width="100px" ClientIDMode="Static" Style="text-align: right;"></asp:TextBox>
@@ -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);
}
// ****************************************************************************************************************************************************************************

View File

@@ -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")