--validacion saldo =0

This commit is contained in:
2025-05-15 06:11:40 -07:00
parent f12d8407a9
commit 7b35d724c1

View File

@@ -125,11 +125,11 @@ Partial Class Bancos_PopIEVentas
End Set End Set
End Property End Property
Private Property SaldoVenta As Double Private Property SaldoVenta As Decimal
Get Get
Return ViewState("SaldoVenta").ToString.ToDouble Return ViewState("SaldoVenta").ToString.ToDecimal
End Get End Get
Set(value As Double) Set(value As Decimal)
ViewState("SaldoVenta") = value ViewState("SaldoVenta") = value
End Set End Set
End Property End Property
@@ -543,8 +543,12 @@ Partial Class Bancos_PopIEVentas
TxtImporte.Text = dr("Saldo").ToString.ToDouble.FormatoNumero TxtImporte.Text = dr("Saldo").ToString.ToDouble.FormatoNumero
FechaVenta = dr("Fecha").ToString.ToDate FechaVenta = dr("Fecha").ToString.ToDate
SaldoVenta = dr("Saldo").ToString.ToDouble SaldoVenta = dr("Saldo").ToString.ToDecimal
'si ya está pagada, bloquear.
If SaldoVenta <= 0 Then Validada = False
If Validada Then
Me.CveCorte = CargaCorteCaja(pCveVenta, UsuarioActual) Me.CveCorte = CargaCorteCaja(pCveVenta, UsuarioActual)
If RFCCliente.ToUpper <> "XAXX010101000" Then If RFCCliente.ToUpper <> "XAXX010101000" Then
@@ -560,10 +564,8 @@ Partial Class Bancos_PopIEVentas
Mov.Dispose() Mov.Dispose()
End If End If
End If End If
Else
If Not Validada Then
BtnGuardar.Visible = False BtnGuardar.Visible = False
End If End If
End If End If