From 2dc9346e259e880ab36ade54c8b313b30d2b15af Mon Sep 17 00:00:00 2001 From: Jonathan Alexis Perez Morales Date: Thu, 15 Jun 2023 17:52:50 -0700 Subject: [PATCH 01/37] Correcion en aplicacion de anticipos con descuentos, filtro de subproyectos --- Ventas/Ventas.aspx.vb | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb index 61dbf6af5..986cfb108 100644 --- a/Ventas/Ventas.aspx.vb +++ b/Ventas/Ventas.aspx.vb @@ -6320,7 +6320,7 @@ Partial Class Ventas UpINV.Update() End Sub - Private Sub CargaSubProyecto(Optional CveSubProyecto As Integer = -1) + Private Sub CargaSubProyecto(Optional CveSubProyecto As Integer = -1, Optional FiltraPorProyecto As Boolean = False) 'DdlSubProyecto.Items.Clear() 'DdlSubProyecto.SelectedValue = Nothing 'If DdlProyecto.SelectedValue.ToEntero() > 0 Then @@ -6329,6 +6329,20 @@ Partial Class Ventas 'End If 'DdlSubProyecto.DataBind() 'DdlSubProyecto.Items.Insert(0, New ListItem("Sin SubProyecto Asignado", "-1")) + + If FiltraPorProyecto Then + DdlSubProyecto.Items.Clear() + + Using ObjSubP As New ClsSubProyectos + If ObjSubP.GetSubProyectos(UsuarioActual.CveEmpresa) Then + DdlSubProyecto.DataSource = ObjSubP.DtResultados.FiltraParametros(String.Format("CveProyecto = {0}", DdlProyecto.SelectedValue)) + End If + End Using + + DdlSubProyecto.DataBind() + DdlSubProyecto.Items.Insert(0, New ListItem("Sin SubProyecto Asignado", "-1")) + End If + If CveSubProyecto > 0 Then DdlSubProyecto.SelectedValueExist(CveSubProyecto) End Sub @@ -18089,7 +18103,7 @@ Partial Class Ventas End If End Sub Protected Sub DdlProyecto_SelectedIndexChanged(sender As Object, e As System.EventArgs) Handles DdlProyecto.SelectedIndexChanged - CargaSubProyecto() + CargaSubProyecto(FiltraPorProyecto:=True) End Sub #End Region @@ -30131,11 +30145,7 @@ Partial Class Ventas For Each Dr As DataRow In DtImpuestosLocal.Rows FiltroStr = String.Format("ISNULL(PorcentajeIVA,0) = {0} AND ISNULL(PorcentajeRetIVA,0) = {1} AND ISNULL(PorcentajeRetISR,0) = {2} AND ISNULL(PorcentajeIEPS,0) = {3} AND ISNULL(CveSubProyecto,0) = {4} ", Dr("PorcentajeIVA").ToString().ToDecimal, Dr("PorcentajeRetIVA").ToString().ToDecimal, Dr("PorcentajeRetISR").ToString().ToDecimal, Dr("PorcentajeIEPS").ToString().ToDecimal, Dr("CveSubProyecto")) Dim importePuTemp As Decimal = 0 - If AplicaDescuentos Then - importePuTemp = (Porcentaje * (TmpDT.SUMD("TotalImporte", FiltroStr))) - Else - importePuTemp = (Porcentaje * (TmpDT.SUMD("TotalImporte", FiltroStr) - TmpDT.SUMD("Descuento", FiltroStr))) - End If + importePuTemp = (Porcentaje * (TmpDT.SUMD("TotalImporte", FiltroStr) - TmpDT.SUMD("Descuento", FiltroStr))) If Not AplicaImpuestosLocales Then importePuTemp = importePuTemp - TotalImpuestosLocalesVentaOriginal @@ -30154,10 +30164,13 @@ Partial Class Ventas Dr("ImporteRetIVA") = (importePuTemp * Dr("PorcentajeRetIVA").ToString().ToDecimal()) Dr("ImporteRetISR") = (importePuTemp * Dr("PorcentajeRetISR").ToString().ToDecimal()) - Dr("ImportePU") = importePuTemp If AplicaDescuentos Then + Dr("ImportePU") = importePuTemp + TmpDT.SUMD("Descuento", FiltroStr) Dr("Descuento") = Porcentaje * TmpDT.SUMD("Descuento", FiltroStr) + Dr("ImporteTotal") = Dr("ImportePU").ToString().ToDecimal().RoundSQL(2) + Else + Dr("ImportePU") = importePuTemp End If If AplicaRedondeo Then @@ -30172,11 +30185,14 @@ Partial Class Ventas End If End If - Next Dim importeNC = (DtImpuestosLocal.SUMD("ImporteTotal") + DtImpuestosLocal.SUMD("ImporteIVA") + DtImpuestosLocal.SUMD("ImporteIEPS") - DtImpuestosLocal.SUMD("ImporteRetIVA") - DtImpuestosLocal.SUMD("ImporteRetISR")) + If AplicaDescuentos Then + importeNC -= DtImpuestosLocal.SUMD("Descuento") + End If + If AplicaImpuestosLocales Then Importe = Importe + TotalImpuestosLocalesRecalculado End If From 6ebbe2e2374f711e4d74c36d82946be37f6a5d63 Mon Sep 17 00:00:00 2001 From: Jonathan Alexis Perez Morales Date: Thu, 15 Jun 2023 18:40:06 -0700 Subject: [PATCH 02/37] --Correciones en validaciones de publico general --- Ventas/Ventas.aspx.vb | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb index 986cfb108..b3aca70b0 100644 --- a/Ventas/Ventas.aspx.vb +++ b/Ventas/Ventas.aspx.vb @@ -2326,6 +2326,15 @@ Partial Class Ventas ViewState("HabilitaRemisionPublicoGeneral") = value End Set End Property + + Private Property TieneBloqueoPorAutorizacion As Integer + Get + Return IfNull(ViewState("TieneBloqueoPorAutorizacion"), "0", ViewState("TieneBloqueoPorAutorizacion")).ToString().ToEntero() + End Get + Set(value As Integer) + ViewState("TieneBloqueoPorAutorizacion") = value + End Set + End Property #End Region '#Region "AuxiliarConta" @@ -6977,6 +6986,11 @@ Partial Class Ventas HabilitaRemisionPublicoGeneral = 1 End If + 'SI TUVO HABILITADO EL BLOQUEO POR AUTORIZACION PERO DESPUES SE CAMBIO MANUAL A REMISION + If DdlTipoComprobante.SelectedValue.Contiene("Rem") AndAlso TieneBloqueoPorAutorizacion = 1 Then + HabilitaRemisionPublicoGeneral = 1 + End If + 'SI TIENE LA HABILITACION DE REMISION ACTIVA Y LA SUCURSAL NO LO PERMITE If Not DeshabilitarAutorizacion AndAlso HabilitaRemisionPublicoGeneral = 1 Then HabilitaRemisionPublicoGeneral = 0 @@ -6997,7 +7011,7 @@ Partial Class Ventas Private Function ValidaImportePublicoGeneral() As Boolean Dim retorno As Boolean = False - If DdlTipoComprobante.SelectedValue = "Rem" AndAlso HabilitaRemisionPublicoGeneral = 1 Then + If DdlTipoComprobante.SelectedValue = "Rem" AndAlso HabilitaRemisionPublicoGeneral = 1 AndAlso UsuarioActual.Empresa.Funcionalidad(381).Trim() = CveCliente.ToString() Then Dim Total As Decimal = TxtTotal.Text.ToDecimal() If DdlMoneda.SelectedValue = "1" Then @@ -7209,6 +7223,8 @@ Partial Class Ventas Else DdlTipoComprobante.SelectedValueExistInsert("PA", "Autorización") DdlTipoComprobante.SelectedValue = "PA" + + TieneBloqueoPorAutorizacion = 1 End If TxtFechaPago.Text = Now.AddDays(PlazoCobranza).ToShortDateString @@ -7271,6 +7287,8 @@ Partial Class Ventas If UsuarioActual.Empresa.Funcionalidad(531) <> "1" Then DdlTipoComprobante.SelectedValueExistInsert("PA", "Autorización") DdlTipoComprobante.SelectedValue = "PA" + + TieneBloqueoPorAutorizacion = 1 End If End If @@ -7398,6 +7416,8 @@ Partial Class Ventas UPCondicionesPago.Update() DdlTipoComprobante.SelectedValueExistInsert("PA", "Autorización") DdlTipoComprobante.SelectedValue = "PA" + TieneBloqueoPorAutorizacion = 1 + TxtFechaPago.Text = Now.AddDays(PlazoCobranza).ToShortDateString 'si llegó por la opción de cotización no debe de restringuir If IfNull(Request("Op"), "").ToString() = "Cot" OrElse (DdlTipoComprobante.SelectedValue = "Cot" AndAlso CveVenta > 0) Then DdlTipoComprobante.SelectedValue = "Cot" @@ -7550,7 +7570,7 @@ Partial Class Ventas DdlTipoComprobante.Items.Remove(DdlTipoComprobante.Items.FindByValue("Pd2")) End If End If - HabilitaRemisionPublicoGeneral = 0 + HabilitarRemisionesPublicoGeneral() End If From 4930efb938918350f7ef4a70472a9ca0db00bf93 Mon Sep 17 00:00:00 2001 From: rrene Date: Thu, 15 Jun 2023 18:43:00 -0700 Subject: [PATCH 03/37] =?UTF-8?q?--=20tama=C3=B1o=20texto=20asistenca?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Nomina/Nomina.aspx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Nomina/Nomina.aspx b/Nomina/Nomina.aspx index c6f01e8bc..6199599af 100644 --- a/Nomina/Nomina.aspx +++ b/Nomina/Nomina.aspx @@ -2240,19 +2240,19 @@ % Pago - + Hrs Dob. - + Hrs Trip. - + @@ -2266,7 +2266,7 @@ Obs. - + From d5e26f429ec2ba4c70affe9909c3cd52d074f726 Mon Sep 17 00:00:00 2001 From: rrene Date: Fri, 16 Jun 2023 14:27:04 -0700 Subject: [PATCH 04/37] -- pub general 5000 --- Planeacion/CatSubProyectos.aspx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Planeacion/CatSubProyectos.aspx b/Planeacion/CatSubProyectos.aspx index fb428da68..90295d72b 100644 --- a/Planeacion/CatSubProyectos.aspx +++ b/Planeacion/CatSubProyectos.aspx @@ -224,7 +224,7 @@
- +
From 4d63280ac467b7d29565a8eac401fe0288d302ce Mon Sep 17 00:00:00 2001 From: rrene Date: Fri, 16 Jun 2023 14:28:28 -0700 Subject: [PATCH 05/37] -- otros ingresos con moneda diferente --- Ventas/ClientesAbonar.aspx.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ventas/ClientesAbonar.aspx.vb b/Ventas/ClientesAbonar.aspx.vb index ec9df92c6..2286cfb44 100644 --- a/Ventas/ClientesAbonar.aspx.vb +++ b/Ventas/ClientesAbonar.aspx.vb @@ -1010,7 +1010,7 @@ Partial Class Ventas_ClientesAbonar End If tipoCambioPago = Pago.TCPago - If gvr.FCTextBox("TxtComision").Text.ToDecimal <> 0 Then Pago.OtroGastoIngreso = gvr.FCTextBox("TxtComision").Text.ToDecimal + If gvr.FCTextBox("TxtComision").Text.ToDecimal <> 0 Then Pago.OtroGastoIngreso = gvr.FCTextBox("TxtComision").Text.ToDecimal * Pago.TCPago 'If gvr.DataKey("TipoDocto") = "Ant" AndAlso UsuarioActual.CveEmpresa.Contiene(1, 119, 158) Then ' EsAnticipoEspecial = True From 9bf9fbbd5a626eb210c18589017aba770da6e174 Mon Sep 17 00:00:00 2001 From: Jonathan Alexis Perez Morales Date: Fri, 16 Jun 2023 20:46:16 -0700 Subject: [PATCH 06/37] Correciones y redondeos para aplicacion de NC por anticipos con descuentos --- Ventas/Ventas.aspx.vb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb index b3aca70b0..dfed40166 100644 --- a/Ventas/Ventas.aspx.vb +++ b/Ventas/Ventas.aspx.vb @@ -14287,6 +14287,7 @@ Partial Class Ventas If DdlTipoAmortizacionAnticipo.SelectedValue = "2" Then Dim DescuentosAnticipos As Decimal = row2.DataKey("Descuentos").ToDecimal ImporteAnticipo = row2.FCTextBox("TxtAnticipo" & row2.RowIndex).Text.ToDecimal / (row2.DataKey("TotalAnticipo").ToDecimal - DescuentosAnticipos) * row2.DataKey("SubTotalAnticipo").ToDecimal + ImporteAnticipo = ImporteAnticipo.RoundSQL(2) End If Dim Importe11MX As Decimal = ImporteAnticipo @@ -30167,6 +30168,11 @@ Partial Class Ventas Dim importePuTemp As Decimal = 0 importePuTemp = (Porcentaje * (TmpDT.SUMD("TotalImporte", FiltroStr) - TmpDT.SUMD("Descuento", FiltroStr))) + Dim DescuentoAplicado As Decimal = 0 + If AplicaDescuentos Then + DescuentoAplicado = Porcentaje * TmpDT.SUMD("Descuento", FiltroStr) + End If + If Not AplicaImpuestosLocales Then importePuTemp = importePuTemp - TotalImpuestosLocalesVentaOriginal End If @@ -30186,8 +30192,8 @@ Partial Class Ventas Dr("ImporteRetISR") = (importePuTemp * Dr("PorcentajeRetISR").ToString().ToDecimal()) If AplicaDescuentos Then - Dr("ImportePU") = importePuTemp + TmpDT.SUMD("Descuento", FiltroStr) - Dr("Descuento") = Porcentaje * TmpDT.SUMD("Descuento", FiltroStr) + Dr("ImportePU") = importePuTemp + DescuentoAplicado + Dr("Descuento") = DescuentoAplicado Dr("ImporteTotal") = Dr("ImportePU").ToString().ToDecimal().RoundSQL(2) Else Dr("ImportePU") = importePuTemp From ea5ea34ad06007e579b0199901e24ee9693a888a Mon Sep 17 00:00:00 2001 From: Oscar Irigoyen Date: Sat, 17 Jun 2023 12:27:10 -0700 Subject: [PATCH 07/37] RecepcionAlmacen.aspx.vb igualar a productivo --- Inventarios/RecepcionAlmacen.aspx.vb | 50 ++++++++++++++++------------ 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/Inventarios/RecepcionAlmacen.aspx.vb b/Inventarios/RecepcionAlmacen.aspx.vb index 3ce600fa2..cff3c95ad 100644 --- a/Inventarios/RecepcionAlmacen.aspx.vb +++ b/Inventarios/RecepcionAlmacen.aspx.vb @@ -3,6 +3,7 @@ Option Explicit On Imports System.Data Imports System.IO +Imports System.Text Imports Extensiones Imports GemBox.Spreadsheet Imports Microsoft.Reporting.WebForms @@ -2299,36 +2300,41 @@ Partial Class Inventarios_RecepcionAlmacen 'VERIFICA EXISTENCIAS If TipoMovimiento > 1 Then - Dim MensajeExistencias As New StringBuilder - Dim ObjInventarios As New ClsInventarios - For Each gvr As GridViewRow In GvInv.Rows - Dim ExistenciaActual = DtInv.SUM("CantidadSurtidaPantalla", $"CvePS = {gvr.DataKey("CvePS").ToEntero} AND CveUM = {gvr.DataKey("CveUM").ToEntero} ") + Dim CveTipoAlmacen As Integer = GlobalDTAlmacen(UsuarioActual.CveEmpresa, CveAlmacen:=DdlAlmacen.SelectedValue.ToEntero).FiltroPrimeroValor("CveTipoAlmacen", "").ToEntero + Dim ValidaExistencia As Boolean = True + If CveTipoAlmacen.Contiene(6, 21) AndAlso UsuarioActual.CveEmpresa = 140 Then ValidaExistencia = False ' si es garantia no valida existencia + If ValidaExistencia Then + Dim MensajeExistencias As New StringBuilder + Dim ObjInventarios As New ClsInventarios + For Each gvr As GridViewRow In GvInv.Rows + Dim ExistenciaActual = DtInv.SUM("CantidadSurtidaPantalla", $"CvePS = {gvr.DataKey("CvePS").ToEntero} AND CveUM = {gvr.DataKey("CveUM").ToEntero} ") - If TipoMovimiento = 2 Then - 'If gvr.DataKey("CantidadC").ToString.ToDecimal <> ExistenciaActual Then - ' Alert("La devolución debe de ser completa.", TipoMensaje.MsgAdvertencia) - ' Exit Sub - 'End If + If TipoMovimiento = 2 Then + 'If gvr.DataKey("CantidadC").ToString.ToDecimal <> ExistenciaActual Then + ' Alert("La devolución debe de ser completa.", TipoMensaje.MsgAdvertencia) + ' Exit Sub + 'End If - If DtExistencias.SUM("Existencia", $"CvePS = {gvr.DataKey("CvePS").ToEntero} AND CveUM = {gvr.DataKey("CveUM").ToEntero}") < ExistenciaActual Then + If DtExistencias.SUM("Existencia", $"CvePS = {gvr.DataKey("CvePS").ToEntero} AND CveUM = {gvr.DataKey("CveUM").ToEntero}") < ExistenciaActual Then + MensajeExistencias.Append($"Producto: {GlobalDTPS(UsuarioActual.CveEmpresa, CvePS:=gvr.DataKey("CvePS").ToString.ToEntero).FiltroPrimeroValor("PSCodigo")}.
") + Continue For + End If + End If + + Dim Existencia = ObjInventarios.GetExistenciasPS(gvr.DataKey("CvePS").ToEntero, gvr.DataKey("CveUM").ToEntero, UsuarioActual.CveEmpresa, DdlAlmacen.SelectedValue.ToEntero, FechaMovto:=(TxtFecha.Text & " " & Now.ToShortTimeString).ToDateTime.ToString("yyyy/MM/dd HH:mm")) + If Existencia < ExistenciaActual Then MensajeExistencias.Append($"Producto: {GlobalDTPS(UsuarioActual.CveEmpresa, CvePS:=gvr.DataKey("CvePS").ToString.ToEntero).FiltroPrimeroValor("PSCodigo")}.
") Continue For End If + Next + ObjInventarios.Dispose() + + If MensajeExistencias.ToString <> "" Then + Alert($"Los siguientes productos no cuentan con la existencia suficiente para hacer la devolución.

{MensajeExistencias.ToString}", TipoMensaje.MsgAdvertencia) + Return False End If - Dim Existencia = ObjInventarios.GetExistenciasPS(gvr.DataKey("CvePS").ToEntero, gvr.DataKey("CveUM").ToEntero, UsuarioActual.CveEmpresa, DdlAlmacen.SelectedValue.ToEntero, FechaMovto:= (TxtFecha.Text & " " & Now.ToShortTimeString).ToDateTime.ToString("yyyy/MM/dd HH:mm")) - If Existencia < ExistenciaActual Then - MensajeExistencias.Append($"Producto: {GlobalDTPS(UsuarioActual.CveEmpresa, CvePS:=gvr.DataKey("CvePS").ToString.ToEntero).FiltroPrimeroValor("PSCodigo")}.
") - Continue For - End If - Next - ObjInventarios.Dispose() - - If MensajeExistencias.ToString <> "" Then - Alert($"Los siguientes productos no cuentan con la existencia suficiente para hacer la devolución.

{MensajeExistencias.ToString}", TipoMensaje.MsgAdvertencia) - Return False End If - End If Return True From b873136dbd0b8f7d0b6ae6b1b1ae62a5dd0c5008 Mon Sep 17 00:00:00 2001 From: rrene Date: Sat, 17 Jun 2023 12:41:56 -0700 Subject: [PATCH 08/37] =?UTF-8?q?--=20se=20quit=C3=B3=20llamado=20a=20cont?= =?UTF-8?q?paq,=20en=20guarda=20=20importaci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Inventarios/RecepcionAlmacen.aspx.vb | 33 +++++++++++----------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/Inventarios/RecepcionAlmacen.aspx.vb b/Inventarios/RecepcionAlmacen.aspx.vb index 3ce600fa2..ee356f67d 100644 --- a/Inventarios/RecepcionAlmacen.aspx.vb +++ b/Inventarios/RecepcionAlmacen.aspx.vb @@ -3926,7 +3926,6 @@ Partial Class Inventarios_RecepcionAlmacen Dim ObjCompras As New ClsCompras(ObjInventario.IniciaTransacSQL()) Dim ObjConta As New ClsContabilidad(ObjInventario.IniciaTransacSQL()) Dim ObjOC As New ClsOC(ObjInventario.IniciaTransacSQL()) - Dim ObjContaAC As ClsContPAQi = Nothing 'ENTRADA ALMACÉN CveMovimiento = ObjInventario.AddMovimiento(DdlAlmacen.SelectedValue.ToEntero, 2, 1, FechaMovto, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveImportacionCompra, -1, -1, -1, Observaciones:=TxtObservaciones.Text.Trim, TipoCambio:=-1, Remision:=TxtRemision.Text, Modulo:="RA/G6") @@ -4075,9 +4074,6 @@ Partial Class Inventarios_RecepcionAlmacen ImporteAbono = SubTotalPartida ImporteAbonoME = (SubTotalPartida * dr("TipoCambio").ToString.ToDecimal) - SubTotalPartida End If - - - If ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, ImporteAbono, ConceptoPartida, CveConceptoCostoIndirecto, ConceptoPartida, FechaMovto, IdCtaContableCostoInd, -1, CveCompra:=CveComp, CveProveedor:=dr("CveProveedor").ToString.ToEntero, CveMovimientoAlmacen:=CveMovimiento, ImporteMX:=ImporteAbono, CveSubProyecto:=CveSubProyecto) Then ' si tiene valor es que hay complementaria If ImporteAbonoME > 0 Then @@ -4092,7 +4088,6 @@ Partial Class Inventarios_RecepcionAlmacen End If End If - 'DOCUMENTOS RELACIONADOS AL MOVIMIENTO If Not ErrorMovInv AndAlso UsuarioActual.Empresa.Funcionalidad(594) = "1" AndAlso Not UsuarioActual.TienePermisoProceso(314) Then If Not ErrorMovInv AndAlso Not GuardaDocumentoBitacora(ObjBitacora, CveMovimiento) Then @@ -4100,8 +4095,6 @@ Partial Class Inventarios_RecepcionAlmacen Alert("Ocurrió un error al guardar los datos adjuntos de la bitácora", TipoMensaje.MsgError) End If End If - - Else ErrorMovInv = True End If @@ -4114,16 +4107,16 @@ Partial Class Inventarios_RecepcionAlmacen End If End If - If Not ErrorMovInv AndAlso UsuarioActual.Empresa.Funcionalidad(200) = "1" Then - ObjContaAC = New ClsContPAQi(UsuarioActual.Empresa) - ObjContaAC.IniciaTransacSQL() - If ObjConta.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa, ObjConta:=ObjContaAC) Then - MensajeError = $"
Movimiento contabilizado en el folio: {ObjConta.ContaFolio}
" - Else - ErrorMovInv = True - MensajeError = "Error al contabilizar los conceptos contables" - End If - End If + 'If Not ErrorMovInv AndAlso UsuarioActual.Empresa.Funcionalidad(200) = "1" Then + ' ObjContaAC = New ClsContPAQi(UsuarioActual.Empresa) + ' ObjContaAC.IniciaTransacSQL() + ' If ObjConta.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa, ObjConta:=ObjContaAC) Then + ' MensajeError = $"
Movimiento contabilizado en el folio: {ObjConta.ContaFolio}
" + ' Else + ' ErrorMovInv = True + ' MensajeError = "Error al contabilizar los conceptos contables" + ' End If + 'End If If Not ErrorMovInv AndAlso CveImportacionSeleccionada > 0 Then @@ -4145,7 +4138,7 @@ Partial Class Inventarios_RecepcionAlmacen 'FINAL If Not ErrorMovInv Then ObjInventario.Commit() ' aplica los movimientos insertados - If ObjContaAC IsNot Nothing Then ObjContaAC.Commit() + ' If ObjContaAC IsNot Nothing Then ObjContaAC.Commit() RegistraScript("playsonidito('beep-07.wav')") Dim Msg As New StringBuilder @@ -4158,14 +4151,14 @@ Partial Class Inventarios_RecepcionAlmacen Limpia() Else ObjInventario.RollBack() - If ObjContaAC IsNot Nothing Then ObjContaAC.RollBack() + ' If ObjContaAC IsNot Nothing Then ObjContaAC.RollBack() RegistraScript("playsonidito('142608__autistic-lucario__error.wav')") GuardaLog(MensajeError) Alert("Error al guardar el movimiento de almacen. Por favor vuelva a intentar.", TipoMensaje.MsgError) End If ObjInventario.Dispose() - If ObjContaAC IsNot Nothing Then ObjContaAC.Dispose() + ' If ObjContaAC IsNot Nothing Then ObjContaAC.Dispose() End Sub Private Sub Limpia() CveCompraSurtir = -1 From c35883fdc882b8bdf5ba3704cc93e3a14cde5dbe Mon Sep 17 00:00:00 2001 From: rrene Date: Mon, 19 Jun 2023 10:09:34 -0700 Subject: [PATCH 09/37] =?UTF-8?q?--=20cambios=20-=20ocultar=20columna=20de?= =?UTF-8?q?=20amortizac=C3=B3n=20-=20columna=20de=20descuentos,=20sale=20s?= =?UTF-8?q?olo=20si=20tiene=20datos=20-=20columna=20de=20ieps,=20se=20visu?= =?UTF-8?q?aliza=20si=20la=20empresa=20la=20deduce=20--=20repventasetalle,?= =?UTF-8?q?=20reacomodo=20a=20modal=20de=20perosnalizar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ventas/RepVentaDetalle.aspx | 36 ++++------- Ventas/RepVentaDetalle.aspx.vb | 16 ++--- Ventas/RepVentas.aspx | 4 +- Ventas/RepVentas.aspx.vb | 106 ++++++++------------------------- 4 files changed, 44 insertions(+), 118 deletions(-) diff --git a/Ventas/RepVentaDetalle.aspx b/Ventas/RepVentaDetalle.aspx index 670edb5c3..91ec23517 100644 --- a/Ventas/RepVentaDetalle.aspx +++ b/Ventas/RepVentaDetalle.aspx @@ -379,7 +379,7 @@
- + @@ -580,8 +580,7 @@ - - + @@ -592,8 +591,7 @@ - - + @@ -605,8 +603,7 @@ - - + @@ -618,8 +615,7 @@ - - + @@ -630,8 +626,7 @@ - - + @@ -642,8 +637,7 @@ - - + @@ -654,8 +648,7 @@ - - + @@ -665,23 +658,16 @@ - - - + + - - + - - - - -