Correcion de error al calcular el BCI
This commit is contained in:
@@ -2980,6 +2980,9 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
Dim CveTamanio As Integer = -1
|
Dim CveTamanio As Integer = -1
|
||||||
Dim drPS As DataRow = GlobalDTPS(UsuarioActual.CveEmpresa, CvePS:=CvePSParametro).FiltroPrimero("")
|
Dim drPS As DataRow = GlobalDTPS(UsuarioActual.CveEmpresa, CvePS:=CvePSParametro).FiltroPrimero("")
|
||||||
|
|
||||||
|
DdlBCIAjuste.SelectedValue = Nothing
|
||||||
|
DdlBCIAjuste.Items.Clear()
|
||||||
|
|
||||||
If drPS IsNot Nothing Then
|
If drPS IsNot Nothing Then
|
||||||
Dim CvePrecioListaPS As Integer = GlobalDTCliente(UsuarioActual.CveEmpresa, Estatus:=-1, CveCliente:=DdlClientes.SelectedValue.ToEntero).FiltroPrimeroValor("CvePrecioLista").ToEntero()
|
Dim CvePrecioListaPS As Integer = GlobalDTCliente(UsuarioActual.CveEmpresa, Estatus:=-1, CveCliente:=DdlClientes.SelectedValue.ToEntero).FiltroPrimeroValor("CvePrecioLista").ToEntero()
|
||||||
If CvePrecioListaPS > 0 Then
|
If CvePrecioListaPS > 0 Then
|
||||||
@@ -2994,6 +2997,17 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
CveClasificacion = drPS("CveClasificacion").ToString.ToEntero
|
CveClasificacion = drPS("CveClasificacion").ToString.ToEntero
|
||||||
CveTamanio = drPS("CveTamaño").ToString.ToEntero
|
CveTamanio = drPS("CveTamaño").ToString.ToEntero
|
||||||
|
|
||||||
|
If DTBCIUsados IsNot Nothing AndAlso CveTamanio > 0 Then
|
||||||
|
DdlBCIAjuste.DataSource = DTBCIUsados.FiltraParametros($"CveTamaño={CveTamanio}")
|
||||||
|
DdlBCIAjuste.DataBind()
|
||||||
|
DdlBCIAjuste.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
If CveTamanio = 16 Then 'motobaterias
|
||||||
|
DdlBCIAjuste.Items.Insert(0, New ListItem(" - ", "0"))
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
DdlBCIAjuste.Items.Insert(0, New ListItem(" - ", "0"))
|
||||||
|
End If
|
||||||
|
|
||||||
Dim Arr = PS.Split("-"c)
|
Dim Arr = PS.Split("-"c)
|
||||||
If Arr.Count > 1 Then
|
If Arr.Count > 1 Then
|
||||||
If (DdlBCIAjuste.Items.FindByText(Arr(1).ToString) IsNot Nothing) Then
|
If (DdlBCIAjuste.Items.FindByText(Arr(1).ToString) IsNot Nothing) Then
|
||||||
@@ -3001,7 +3015,6 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
HdnPSAjusteMarca.Value = CveMarca.ToString()
|
HdnPSAjusteMarca.Value = CveMarca.ToString()
|
||||||
@@ -3054,19 +3067,6 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
'CvePrecioLista = CvePrecioListaPS
|
'CvePrecioLista = CvePrecioListaPS
|
||||||
End If
|
End If
|
||||||
|
|
||||||
DdlBCIAjuste.Items.Clear()
|
|
||||||
If DTBCIUsados IsNot Nothing AndAlso CveTamanio > 0 Then
|
|
||||||
DdlBCIAjuste.DataSource = DTBCIUsados.FiltraParametros($"CveTamaño={CveTamanio}")
|
|
||||||
DdlBCIAjuste.DataBind()
|
|
||||||
DdlBCIAjuste.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
|
||||||
If CveTamanio = 16 Then 'motobaterias
|
|
||||||
DdlBCIAjuste.Items.Insert(0, New ListItem(" - ", "0"))
|
|
||||||
End If
|
|
||||||
'UPPDatosUsado.Update() ''refresca el RFV
|
|
||||||
Else
|
|
||||||
DdlBCIAjuste.Items.Insert(0, New ListItem(" - ", "0"))
|
|
||||||
End If
|
|
||||||
|
|
||||||
DdlTipoUso.Items.Clear()
|
DdlTipoUso.Items.Clear()
|
||||||
DdlTipoUso.DataSource = GlobalDTAcumGarantiasMesesTipoUso(UsuarioActual.CveEmpresa, CveMarca)
|
DdlTipoUso.DataSource = GlobalDTAcumGarantiasMesesTipoUso(UsuarioActual.CveEmpresa, CveMarca)
|
||||||
DdlTipoUso.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlTipoUso.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
|||||||
Reference in New Issue
Block a user