agregando 2 nuevos campos a los folios garantias y nueva validación en punto de venta
This commit is contained in:
@@ -5503,7 +5503,14 @@ Partial Class PV
|
||||
Dim ObjAcumuladores As New ClsAcumuladores
|
||||
If ObjAcumuladores.GetNuevoConsecutivoFolio(DdlFolioGarantia.SelectedValue.ToEntero) Then
|
||||
Dim resultado As Integer = ObjAcumuladores.DtResultados.FiltroPrimeroValor("NuevoConsecutivo").ToEntero
|
||||
TxtConsecutivoAjuste.Text = resultado.ToString
|
||||
If ObjAcumuladores.FoliosGarantiaGet(DdlFolioGarantia.SelectedValue.ToEntero, UsuarioActual.CveEmpresa) Then
|
||||
Dim Limite As Integer = If(ObjAcumuladores.DtResultados.FiltroPrimeroValor("Limite") IsNot Nothing, ObjAcumuladores.DtResultados.FiltroPrimeroValor("Limite").ToEntero, 0) 'ObjAcumuladores.DtResultados.FiltroPrimeroValor("Limite").ToEntero
|
||||
If resultado < Limite Or Limite = 0 Then
|
||||
TxtConsecutivoAjuste.Text = resultado.ToString
|
||||
Else
|
||||
Alert("limite de folios alcanzado")
|
||||
End If
|
||||
End If
|
||||
UpAjuste.Update()
|
||||
End If
|
||||
ObjAcumuladores.Dispose()
|
||||
|
||||
Reference in New Issue
Block a user