From ee0e77c986fee90974dce306af39a3db8eca53f6 Mon Sep 17 00:00:00 2001 From: rakcsle Date: Thu, 2 Jun 2022 10:57:41 -0700 Subject: [PATCH] Formatos 4.0 , cat unidades placas, Inventario Fisico Serie 6 digitos minimo --- App_Code/ClsInventarios.vb | 18 +++- Empresas/119/Formatos/Cotizacion.rdlc | 13 ++- Empresas/119/Formatos/Factura.rdlc | 100 +++++++++++---------- Empresas/119/Formatos/Remision.rdlc | 13 ++- Empresas/140/Formatos/Cotizacion.rdlc | 5 +- Empresas/140/Formatos/Factura.rdlc | 4 +- Empresas/140/Formatos/Remision.rdlc | 4 +- Inventarios/CatUnidades.aspx.vb | 6 +- Inventarios/InventarioFisicoDetalle.aspx | 25 +++++- Ventas/Ventas.aspx.vb | 110 +++++++++++++++++++++-- 10 files changed, 230 insertions(+), 68 deletions(-) diff --git a/App_Code/ClsInventarios.vb b/App_Code/ClsInventarios.vb index 8402fca44..e3f5320b7 100644 --- a/App_Code/ClsInventarios.vb +++ b/App_Code/ClsInventarios.vb @@ -5600,7 +5600,13 @@ Public Class ClsInventarios SqlAdapter.Fill(Data) Retorno = True Catch ex As Exception - OnError("Ocurrió un error al momento de insertar el nuevo camion", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo()) + + If ex.Message.Contains("UN_Inv_Camiones_CveEmpresa_Placa") Then + Alert("La Placa ya se encuentra registrada." & Almacen & ".", TipoMensaje.MsgAdvertencia) + Else + OnError("Ocurrió un error al momento de insertar el nuevo camion", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo()) + End If + End Try Return Retorno End Function @@ -5654,7 +5660,15 @@ Public Class ClsInventarios SqlAdapter.Fill(Data) Retorno = True Catch ex As Exception - OnError("Ocurrió un error al momento de actualizar el camion", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo()) + + + If ex.Message.Contains("UN_Inv_Camiones_CveEmpresa_Placa") Then + Alert("La Placa ya se encuentra registrada." & Almacen & ".", TipoMensaje.MsgAdvertencia) + Else + OnError("Ocurrió un error al momento de actualizar el camion", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo()) + End If + + End Try Return Retorno End Function diff --git a/Empresas/119/Formatos/Cotizacion.rdlc b/Empresas/119/Formatos/Cotizacion.rdlc index d5c0ac872..fa3ba2a96 100644 --- a/Empresas/119/Formatos/Cotizacion.rdlc +++ b/Empresas/119/Formatos/Cotizacion.rdlc @@ -1212,7 +1212,6 @@ 2pt - true @@ -2853,6 +2852,18 @@ true ReportParameter1 + + String + true + true + ReportParameter1 + + + String + true + true + ReportParameter1 + diff --git a/Empresas/119/Formatos/Factura.rdlc b/Empresas/119/Formatos/Factura.rdlc index cab74d0ae..7a5502e98 100644 --- a/Empresas/119/Formatos/Factura.rdlc +++ b/Empresas/119/Formatos/Factura.rdlc @@ -552,7 +552,7 @@ Start true - 7.78895in + 7.66395in 0.18226in 4.422in 7.87128in @@ -882,7 +882,7 @@ - Regimen fiscal: + Reg.fiscal: @@ -1150,7 +1150,7 @@ true - 3.57076in + 3.44576in 0.02339in 1.21305in 8.22763in @@ -1243,12 +1243,33 @@ + + + + + + + - - Regimen General de Ley Personas Morales - - - - - - - true @@ -2324,7 +2328,7 @@ - =iif(cdbl(Fields!ImporteIVA.Value) > 0, Fields!ImporteIVA.Value & "(" & cdbl(Fields!PorcentajeIVA.Value) * 100 & "%)","") + =iif(cdbl(Fields!ImporteIVA.Value) > 0, Format(Fields!ImporteIVA.Value,"###,###,###.00") & "(" & cdbl(Fields!PorcentajeIVA.Value) * 100 & "%)","") - 31.01581cm + 30.69831cm diff --git a/Empresas/119/Formatos/Remision.rdlc b/Empresas/119/Formatos/Remision.rdlc index 9837dce62..fbe07cd55 100644 --- a/Empresas/119/Formatos/Remision.rdlc +++ b/Empresas/119/Formatos/Remision.rdlc @@ -791,7 +791,6 @@ 2pt - true @@ -2334,6 +2333,18 @@ true ReportParameter1 + + String + true + true + ReportParameter1 + + + String + true + true + ReportParameter1 + diff --git a/Empresas/140/Formatos/Cotizacion.rdlc b/Empresas/140/Formatos/Cotizacion.rdlc index e6842a3a0..a1e70d57d 100644 --- a/Empresas/140/Formatos/Cotizacion.rdlc +++ b/Empresas/140/Formatos/Cotizacion.rdlc @@ -297,7 +297,7 @@ =Parameters!Serie.Value @@ -313,7 +313,7 @@ =Parameters!Folio.Value @@ -1214,7 +1214,6 @@ 2pt - true diff --git a/Empresas/140/Formatos/Factura.rdlc b/Empresas/140/Formatos/Factura.rdlc index 4f4fd52e8..38de1d8fd 100644 --- a/Empresas/140/Formatos/Factura.rdlc +++ b/Empresas/140/Formatos/Factura.rdlc @@ -646,7 +646,7 @@ =Parameters!Serie.Value @@ -670,7 +670,7 @@ =Parameters!Folio.Value diff --git a/Empresas/140/Formatos/Remision.rdlc b/Empresas/140/Formatos/Remision.rdlc index 3001212dd..052dfa688 100644 --- a/Empresas/140/Formatos/Remision.rdlc +++ b/Empresas/140/Formatos/Remision.rdlc @@ -446,7 +446,7 @@ =Parameters!Serie.Value @@ -462,7 +462,7 @@ =Parameters!Folio.Value diff --git a/Inventarios/CatUnidades.aspx.vb b/Inventarios/CatUnidades.aspx.vb index 38720e266..245342d76 100644 --- a/Inventarios/CatUnidades.aspx.vb +++ b/Inventarios/CatUnidades.aspx.vb @@ -231,11 +231,13 @@ Partial Class Inventarios_CatUnidades If Not ErrorPrceso Then GlobalDTInvCamiones(UsuarioActual.CveEmpresa) = Nothing CargaDatos() + RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAgregarUnidad")) + UpDatos.Update() End If - UpDatos.Update() - RegistraScript(String.Format("$('#{0}').modal('hide');", "DivAgregarUnidad")) + + End Sub diff --git a/Inventarios/InventarioFisicoDetalle.aspx b/Inventarios/InventarioFisicoDetalle.aspx index b44053b71..ffd60da82 100644 --- a/Inventarios/InventarioFisicoDetalle.aspx +++ b/Inventarios/InventarioFisicoDetalle.aspx @@ -339,8 +339,18 @@
- + + + + + + + + + +
@@ -361,9 +371,11 @@