diff --git a/Empresas/119/Formatos/RepIVAAcreditable.rpt b/Empresas/119/Formatos/RepIVAAcreditable.rpt index 7ba21b50b..ce9d8faf0 100644 Binary files a/Empresas/119/Formatos/RepIVAAcreditable.rpt and b/Empresas/119/Formatos/RepIVAAcreditable.rpt differ diff --git a/Empresas/Grales/Formatos/RepIVA.rpt b/Empresas/Grales/Formatos/RepIVA.rpt index 1ff221782..cdd0ad6c0 100644 Binary files a/Empresas/Grales/Formatos/RepIVA.rpt and b/Empresas/Grales/Formatos/RepIVA.rpt differ diff --git a/Empresas/Grales/Formatos/RepIVAAcreditable.rpt b/Empresas/Grales/Formatos/RepIVAAcreditable.rpt index 26546bda5..e7e29a232 100644 Binary files a/Empresas/Grales/Formatos/RepIVAAcreditable.rpt and b/Empresas/Grales/Formatos/RepIVAAcreditable.rpt differ diff --git a/Inventarios/RecepcionUsados.aspx.vb b/Inventarios/RecepcionUsados.aspx.vb index 4d1b6a882..437cee0c5 100644 --- a/Inventarios/RecepcionUsados.aspx.vb +++ b/Inventarios/RecepcionUsados.aspx.vb @@ -159,6 +159,15 @@ Partial Class Inventarios_RecepcionUsados ViewState("TieneSalida") = value End Set End Property + + Private Property DTBCIUsados As DataTable + Get + Return If(IsNothing(ViewState("DTBCIUsados")), Nothing, CType(ViewState("DTBCIUsados"), DataTable)) + End Get + Set(value As DataTable) + ViewState("DTBCIUsados") = value + End Set + End Property Private Property DtBitacora As DataTable Get Return CType(ViewState("DtBitacora"), DataTable) @@ -2846,6 +2855,7 @@ Partial Class Inventarios_RecepcionUsados Dim CveMarca As Integer = -1 Dim CveClasificacion As Integer = -1 Dim PrecioSugerido As Decimal = 0 + Dim CveTamanio As Integer = -1 Dim drPS As DataRow = GlobalDTPS(UsuarioActual.CveEmpresa, CvePS:=CvePSParametro).FiltroPrimero("") If drPS IsNot Nothing Then @@ -2860,6 +2870,7 @@ Partial Class Inventarios_RecepcionUsados Dim PS As String = drPS("PS").ToString CveMarca = drPS("CveMarca").ToString.ToEntero CveClasificacion = drPS("CveClasificacion").ToString.ToEntero + CveTamanio = drPS("CveTamaƱo").ToString.ToEntero Dim Arr = PS.Split("-"c) If Arr.Count > 1 Then @@ -2921,6 +2932,19 @@ Partial Class Inventarios_RecepcionUsados 'CvePrecioLista = CvePrecioListaPS 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.DataSource = GlobalDTAcumGarantiasMesesTipoUso(UsuarioActual.CveEmpresa, CveMarca) DdlTipoUso.Items.Insert(0, New ListItem("Seleccione", "-1")) @@ -2964,6 +2988,7 @@ Partial Class Inventarios_RecepcionUsados If ObjGral.BCIUsadoGet(UsuarioActual.CveEmpresa) Then DdlBCIAjuste.DataSource = ObjGral.DtResultados DdlBCIAjuste.Items.Insert(0, New ListItem("Seleccione", "-1")) + DTBCIUsados = ObjGral.DtResultados.Copy() End If ObjGral.Dispose() DdlBCIAjuste.DataBind() diff --git a/Site.master b/Site.master index 24da7ea86..4fc0a780b 100644 --- a/Site.master +++ b/Site.master @@ -417,8 +417,7 @@