diff --git a/App_Code/Modelos.vb b/App_Code/Modelos.vb index 9897b9d96..68016bc72 100644 --- a/App_Code/Modelos.vb +++ b/App_Code/Modelos.vb @@ -301,6 +301,40 @@ Namespace Modelos #Region " OBJETOS Ventas" + + Public Class VentaDescuentos + Public Consec As Integer + Public ImporteDescuento As Decimal = 0 + Public CvePromocionDetalle As Integer = -1 + Public PU As Decimal = 0 + Public EsPUModificado As Boolean = False + Public ImporteProntoPago As Decimal = 0 + Public NombrePromo As String = "" + Public CveMarca As Integer = -1 + Public ObsDescuento As String = "" + End Class + + Public Class VentasBonificaciones + Public CveVentaRNCCargo As Integer = -1 + Public CveVentaBonificacion As Integer = -1 + Public ImporteBonificacion As Decimal = 0 + Public IVABonificacion As Decimal = 0 + End Class + + Public Class MensajeProntoPago + Public Property ObjFacturaProntoPago As Modelos.Factura + Public Property Mensaje As Modelos.Factura.MMensajeFactura + End Class + + Public Class MAnticipoRelacionado + Public Property CveVenta As Integer + Public Property FolioFiscal As String + End Class + + Public Class MVentaDetalleCotizacion + Public Property CveVentaDetalle As Integer + Public Property Cantidad As Decimal + End Class Public Enum TipoMensajeRespuesta TextoLimpio = 0 HTML = 1 @@ -5508,6 +5542,14 @@ Namespace Modelos AutoConta = False End If + + If Not ErrorCancelar AndAlso ObjConta.ValidacionPrePolizaCuadre(CvePrePoliza, -1) Then + If ObjConta.ValorPolizaDescuadre > 0 Then + GuardaLogAD($"Modelos/RecepcionEntrega | Error{ObjConta.MensajePolizaDescuadre} Diferencia{ObjConta.ValorDiferencia} | CvePrePoliza:{CvePrePoliza}", "LogPrePolizas") + ErrorCancelar = True + End If + End If + If AutoConta And Not ErrorCancelar Then If IdCtaContable > 0 Then diff --git a/Ashx/E141.ashx b/Ashx/E141.ashx index 99589c70f..dbca48046 100644 --- a/Ashx/E141.ashx +++ b/Ashx/E141.ashx @@ -1711,7 +1711,7 @@ Public Class E141 : Implements IHttpHandler Dim DtPS As DataTable = Nothing Using ObjPS As New ClsProductosServicios 'OBTERNER PRECIOS DE PUBLICO GENERAL - If ObjPS.GetProductosModificados(CveEmpresa, 44, If(Todos, -1, 1)) Then + If ObjPS.GetProductosModificados(CveEmpresa, 44, If(Todos, -1, 26)) Then DtPS = ObjPS.DtResultados.Copy() End If End Using diff --git a/Bancos/IE.aspx.vb b/Bancos/IE.aspx.vb index 15c9ae491..5e3f93992 100644 --- a/Bancos/IE.aspx.vb +++ b/Bancos/IE.aspx.vb @@ -5845,6 +5845,8 @@ Partial Class Bancos_IE TxtObservaciones.Text = $"SOLICITUD DE VIÁTICOS - FOLIO {ObjBancos.DtResultados.FiltroPrimeroValor("Folio").ToString()}: {ObjBancos.DtResultados.FiltroPrimeroValor("Asunto").ToString()}." End If ObjBancos.Dispose() + + RBL_SelectedIndexChanged(Nothing, Nothing) End If End Sub #End Region diff --git a/Bancos/PagoAcreedor.aspx b/Bancos/PagoAcreedor.aspx index fb07433fd..2bb7b8143 100644 --- a/Bancos/PagoAcreedor.aspx +++ b/Bancos/PagoAcreedor.aspx @@ -377,7 +377,7 @@ - + diff --git a/Bancos/PagoAcreedor.aspx.cs b/Bancos/PagoAcreedor.aspx.cs index df4599748..5dbf0ec6c 100644 --- a/Bancos/PagoAcreedor.aspx.cs +++ b/Bancos/PagoAcreedor.aspx.cs @@ -351,30 +351,32 @@ public partial class Bancos_PagoAcreedor : ClsPaginas ImporteBancosMN = (Importe * TCPago).RoundSQL(); ImporteAcreedorMN = (Importe * TC).RoundSQL(); - //if (CveMonedaPago == 1 && tCveMoneda == 1) - //{ - // ImporteMN = Importe; - // ImporteComisionMN = ImporteComision; - //} - //else if (CveMonedaPago == 1 && tCveMoneda == 2) - //{ - // ImporteComisionMN = ImporteComision; - - // ImporteMN = Importe; - // ImporteComplementaria = (Importe * TC - Importe).RoundSQL(); - //} - //else if (CveMonedaPago == 2 && tCveMoneda == 1) - //{ - // ImporteMN = Importe; - // ImporteComisionMN = ImporteComision; - // ImporteComplementaria = 0; - //} - //else if (CveMonedaPago == 2 && tCveMoneda == 2) - //{ - // ImporteComisionMN = ImporteComision; - // ImporteMN = Importe; - // ImporteComplementaria = (Importe * TC - Importe).RoundSQL(); - //} + if (CveMonedaPago == 1 && tCveMoneda == 1) + { + //ImporteMN = Importe; + //ImporteComisionMN = ImporteComision; + } + else if (CveMonedaPago == 1 && tCveMoneda == 2) + { + //ImporteComisionMN = ImporteComision; + + //ImporteMN = Importe; + //ImporteComplementaria = (Importe * TC - Importe).RoundSQL(); + } + else if (CveMonedaPago == 2 && tCveMoneda == 1) + { + ImporteBancosMN = Importe; + ImporteMN = Importe; + //ImporteComisionMN = ImporteComision; + //ImporteComplementaria = 0; + } + else if (CveMonedaPago == 2 && tCveMoneda == 2) + { + + //ImporteComisionMN = ImporteComision; + //ImporteMN = Importe; + //ImporteComplementaria = (Importe * TC - Importe).RoundSQL(); + } //ImporteMN = ImporteMN.RoundSQL(); //ImporteComplementaria = ImporteComplementaria.RoundSQL(); diff --git a/Empresas/119/Formatos/RepIVA.rpt b/Empresas/119/Formatos/RepIVA.rpt index c09e9e811..214b40af6 100644 Binary files a/Empresas/119/Formatos/RepIVA.rpt and b/Empresas/119/Formatos/RepIVA.rpt differ diff --git a/Empresas/119/Formatos/RepIVAAcreditable.rpt b/Empresas/119/Formatos/RepIVAAcreditable.rpt index a1124d4e7..5b9781196 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 46c367c4c..629f1ee5d 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 25fec2118..9b6052ed7 100644 Binary files a/Empresas/Grales/Formatos/RepIVAAcreditable.rpt and b/Empresas/Grales/Formatos/RepIVAAcreditable.rpt differ diff --git a/Inventarios/EntradasSalidas.aspx.vb b/Inventarios/EntradasSalidas.aspx.vb index 73704b612..9ecfe5bbe 100644 --- a/Inventarios/EntradasSalidas.aspx.vb +++ b/Inventarios/EntradasSalidas.aspx.vb @@ -1910,6 +1910,9 @@ Partial Class Inventarios_EntradasSalidas If UsuarioActual.Empresa.Funcionalidad(342).ToEntero > 0 Then IdCtaContableOtro = UsuarioActual.Empresa.Funcionalidad(342).ToEntero End If + Case 34 + CveConceptoContable = 51 + EsContabilizable = True Case 13, 29 CveConceptoContable = 69 TipoMovtoOtro = True @@ -1930,7 +1933,7 @@ Partial Class Inventarios_EntradasSalidas Else 'Dim Total As Decimal = 0 - If CveConceptoContable.Contiene(181, 78) Then + If CveConceptoContable.Contiene(181, 78, 51) Then Dim Dt As DataTable = ObjInventario.DtResultados.FiltraParametros("", "", {"CveClasificacion"}).Copy 'Dim IdCuentaGasto As Integer = 0 For Each Dr As DataRow In Dt.Rows diff --git a/Inventarios/EntregaAlmacen.aspx.vb b/Inventarios/EntregaAlmacen.aspx.vb index 9c4e09413..c011b8eb8 100644 --- a/Inventarios/EntregaAlmacen.aspx.vb +++ b/Inventarios/EntregaAlmacen.aspx.vb @@ -3137,7 +3137,7 @@ Partial Class Inventarios_EntregaAlmacen If Not ErrorMovInv AndAlso ObjConta.ValidacionPrePolizaCuadre(CvePrePoliza, -1) Then If ObjConta.ValorPolizaDescuadre > 0 Then - GuardaLogAD($"Compras/Compras-Guardar | Error{ObjConta.MensajePolizaDescuadre} Diferencia{ObjConta.ValorDiferencia} | CvePrePoliza:{CvePrePoliza}", "LogPrePolizas") + GuardaLogAD($"Inventario/EntregaAlmacen | Error{ObjConta.MensajePolizaDescuadre} Diferencia{ObjConta.ValorDiferencia} | CvePrePoliza:{CvePrePoliza}", "LogPrePolizas") ErrorMovInv = True End If End If diff --git a/RH/SolicitudViaticos.aspx.cs b/RH/SolicitudViaticos.aspx.cs index 39f049ba5..341ed2e16 100644 --- a/RH/SolicitudViaticos.aspx.cs +++ b/RH/SolicitudViaticos.aspx.cs @@ -151,10 +151,12 @@ public partial class RH_SolicitudViaticos : ClsPaginas } else { - if ((UsuarioActual.CveEmpresa == 72 || UsuarioActual.CveEmpresa == 1 || UsuarioActual.CveEmpresa == 2) && UsuarioActual.CvePersonal > 0) + + if ((UsuarioActual.CveEmpresa.Contiene(1,2,72, 172, 173, 174)) && UsuarioActual.CvePersonal > 0) { CargaFolio(); } + BtnGuardar.Text = "Guardar"; LnkImprimirExcel.Visible = false; diff --git a/Sistemas/CatSesiones.aspx b/Sistemas/CatSesiones.aspx index 1fa95012e..f52c824f5 100644 --- a/Sistemas/CatSesiones.aspx +++ b/Sistemas/CatSesiones.aspx @@ -63,7 +63,8 @@ - + +    diff --git a/Sistemas/CatSesiones.aspx.vb b/Sistemas/CatSesiones.aspx.vb index 1e88d9a3e..86e0d8236 100644 --- a/Sistemas/CatSesiones.aspx.vb +++ b/Sistemas/CatSesiones.aspx.vb @@ -106,12 +106,16 @@ Partial Class Sistemas_CatSesiones ElseIf DdlVariable.SelectedItem.Value = "GlobalDTVendedoresOld" Then CargaActivoFijos() ElseIf DdlVariable.SelectedItem.Value = "GlobalDTAC" Then - cargaAC() + cargaAC() + ElseIf DdlVariable.SelectedItem.Value = "GlobalDTSATUsosCFDI" Then + CargaUsosCFDI() End If End Sub - + Private Sub CargaUsosCFDI() + HttpContext.Current.Application("GlobalDTSATUsosCFDI") = Nothing + End Sub Private Sub CargaGlobalDTVendedoresOld() Dim AppNombre As String = $"GlobalDTVendedores-{-1}" If HttpContext.Current.Application(AppNombre) Is Nothing Then diff --git a/Ventas/ClientesAbonar.aspx.vb b/Ventas/ClientesAbonar.aspx.vb index 031d14147..754b9d656 100644 --- a/Ventas/ClientesAbonar.aspx.vb +++ b/Ventas/ClientesAbonar.aspx.vb @@ -630,7 +630,7 @@ Partial Class Ventas_ClientesAbonar e.Row.FCRangeValidator("RVComision").MaximumValue = e.Row.DBCampo("Saldo") End If - If e.Row.DBCampo("DescuentoProntoPago").ToDecimal() > 0 AndAlso e.Row.DBCampo("DiasVencidos").ToEntero() <= 0 Then + If e.Row.DBCampo("DescuentoProntoPago").ToDecimal() > 0 AndAlso e.Row.DBCampo("DiasVencidos").ToEntero() <= 5 Then e.Row.FCCheckBox("ChkGenerarNC").Visible = True e.Row.FCCheckBox("ChkGenerarNC").Attributes.Add("onclick", String.Format("FnSuma(this,{0},{1},{5}); FnCambia({2},this,{1},0,{3},{4}); FnEditarImporte({2}, {0});", e.Row.FCTextBox("TxtAbonar").ClientID, e.Row.DBCampo("Saldo").ToDecimal - e.Row.DBCampo("DescuentoProntoPago").ToDecimal, e.Row.FCCheckBox("ChkGenerarNC").ClientID, CveMonedaFiltro, moneda, e.Row.DBCampo("CveVenta"))) End If diff --git a/Ventas/PV.aspx.vb b/Ventas/PV.aspx.vb index ee059d485..15461fbff 100644 --- a/Ventas/PV.aspx.vb +++ b/Ventas/PV.aspx.vb @@ -2623,6 +2623,10 @@ Partial Class PV DdlAlmacenAsignado.SelectedValueExist(GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveAlmacen", $"CveSubProyecto = {DdlSubProyectoDatos.SelectedValue}").ToString.ToEntero) End If + If ChkServicioDomicilio.Checked Then + PreparaServicioDomicilio() + End If + UpINV.Update() End Sub Private Sub CargaFormaEntrega() diff --git a/Ventas/Ventas.aspx b/Ventas/Ventas.aspx index 4448e8232..45e3ad0ea 100644 --- a/Ventas/Ventas.aspx +++ b/Ventas/Ventas.aspx @@ -1724,6 +1724,7 @@ +