diff --git a/AC/RepProgramasOperativosAvances.aspx b/AC/RepProgramasOperativosAvances.aspx index 20fd5c81e..f1cfb142d 100644 --- a/AC/RepProgramasOperativosAvances.aspx +++ b/AC/RepProgramasOperativosAvances.aspx @@ -127,7 +127,7 @@ - NavigateUrl="/AC/ProgramaOperativo.aspx?CveProgramaOperativo=703&EsProyecto=1,&Bloqueado=1" + diff --git a/AC/RepProgramasOperativosAvances.aspx.vb b/AC/RepProgramasOperativosAvances.aspx.vb index 94d2c5f5b..312da416f 100644 --- a/AC/RepProgramasOperativosAvances.aspx.vb +++ b/AC/RepProgramasOperativosAvances.aspx.vb @@ -191,8 +191,12 @@ Partial Class AC_RepProgramasOperativosAvances cell.ColumnSpan = 2 cell.Text = "" row.Controls.Add(cell) + Try + GVD.HeaderRow.Parent.Controls.AddAt(0, row) + Catch ex As Exception + + End Try - GVD.HeaderRow.Parent.Controls.AddAt(0, row) diff --git a/App_Code/ClsGenerales.vb b/App_Code/ClsGenerales.vb index 4212d5715..fa1c9f6d7 100644 --- a/App_Code/ClsGenerales.vb +++ b/App_Code/ClsGenerales.vb @@ -3,7 +3,8 @@ Option Explicit On Imports System.Data Imports System.Data.SqlClient Imports Extensiones - +Imports Stimulsoft.Base.Analysis + Public Class ClsGenerales Implements IDisposable @@ -1621,7 +1622,14 @@ Public Class ClsGenerales ' Me.OnError("Ocurrió un error al Guardar el registro.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo()) ' End If Catch ex As Exception - OnError("Ocurrió un error al Guardar la cuenta", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + + If ex.Message.Contains("IX_Gral_CuentasDepositos_CLABE") Then + OnError($"Ocurrió un error al Guardar la cuenta, la CLABE {CLABE} ya esta registrada en otra cuenta.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + Else + OnError("Ocurrió un error al Guardar la cuenta", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + End If + + End Try Return Retorno @@ -1678,11 +1686,21 @@ Public Class ClsGenerales Catch Ex1 As SqlException If Ex1.Message.Contains("Número: 2627;") Then Alert("Ya existe un registro con el mismo nombre", TipoMensaje.MsgAdvertencia) + ElseIf Ex1.Message.Contains("IX_Gral_CuentasDepositos_CLABE") Then + OnError($"Ocurrió un error al actualizar la cuenta, la CLABE {CLABE} ya esta registrada en otra cuenta.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) Else + Me.OnError("Ocurrió un error al guardar los cambios", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo()) End If Catch ex As Exception - OnError("Ocurrió un error al guardar los cambios.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + + If ex.Message.Contains("IX_Gral_CuentasDepositos_CLABE") Then + OnError($"Ocurrió un error al actualizar la cuenta, la CLABE {CLABE} ya esta registrada en otra cuenta.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + Else + OnError("Ocurrió un error al guardar los cambios.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + End If + + End Try Return Retorno @@ -1727,12 +1745,19 @@ Public Class ClsGenerales Retorno = True Catch Ex1 As SqlException If Ex1.Message.Contains("Número: 2627;") Then - Alert("Ya existe un registro con el mismo nombre", TipoMensaje.MsgAdvertencia) + Alert("Ya existe un registro con el mismo nombre", TipoMensaje.MsgAdvertencia) + ElseIf Ex1.Message.Contains("IX_Gral_CuentasDepositos_CLABE") Then + OnError($"Ocurrió un error al actualizar la cuenta, la CLABE {CLABE} ya esta registrada en otra cuenta.", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) Else Me.OnError("Ocurrió un error al guardar los cambios", Ex1, SqlAdapter.SelectCommand.Parameters.ParametrosInfo()) End If - Catch ex As Exception - OnError("Ocurrió un error al guardar los cambios.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + Catch ex As Exception + + If ex.Message.Contains("IX_Gral_CuentasDepositos_CLABE") Then + OnError($"Ocurrió un error al actualizar la cuenta, la CLABE {CLABE} ya esta registrada en otra cuenta.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + Else + OnError("Ocurrió un error al guardar los cambios.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo) + End If End Try Return Retorno diff --git a/Bancos/ProveedoresAbonar.aspx.vb b/Bancos/ProveedoresAbonar.aspx.vb index 1160ede4b..a6e121345 100644 --- a/Bancos/ProveedoresAbonar.aspx.vb +++ b/Bancos/ProveedoresAbonar.aspx.vb @@ -1939,29 +1939,31 @@ Partial Class Bancos_ProveedoresAbonar End If End If - If MsgError = "" AndAlso ObjConta.ValidacionPrePolizaCuadre(CvePrePoliza, 5) Then - If ObjConta.ValorPolizaDescuadre > 0 Then - MsgError = ObjConta.MensajePolizaDescuadre + " " + ObjConta.ValorDiferencia - GuardaLogAD($"Bancos/ProveedoresAbonar | Error:{ObjConta.MensajePolizaDescuadre} Diferencia:{ObjConta.ValorDiferencia} | CvePrePoliza:{CvePrePoliza}", "LogPrePolizas") - Exit For - Else + End If + Next - If UsuarioActual.Empresa.Funcionalidad(200) = "1" AndAlso MsgError = "" Then - If ObjConta.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then - ' Alert(alertaContabilizacion, ModExtensiones.TipoMensaje.MsgInformacion) - Else - 'Alert("Ocurrio un error al contabilizar, pongase en contacto con Soporte Técnico", TipoMensaje.MsgError) - MsgError = "Ocurrio un error al contabilizar, pongase en contacto con Soporte Técnico" - End If + If MsgError.Trim.Length = 0 AndAlso CvePrePoliza > 0 Then + If MsgError = "" AndAlso ObjConta.ValidacionPrePolizaCuadre(CvePrePoliza, 5) Then + If ObjConta.ValorPolizaDescuadre > 0 Then + MsgError = ObjConta.MensajePolizaDescuadre + " " + ObjConta.ValorDiferencia + GuardaLogAD($"Bancos/ProveedoresAbonar | Error:{ObjConta.MensajePolizaDescuadre} Diferencia:{ObjConta.ValorDiferencia} | CvePrePoliza:{CvePrePoliza}", "LogPrePolizas") + Else + If UsuarioActual.Empresa.Funcionalidad(200) = "1" AndAlso MsgError = "" Then + + If ObjConta.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then + ' Alert(alertaContabilizacion, ModExtensiones.TipoMensaje.MsgInformacion) + Else + 'Alert("Ocurrio un error al contabilizar, pongase en contacto con Soporte Técnico", TipoMensaje.MsgError) + MsgError = "Ocurrio un error al contabilizar, pongase en contacto con Soporte Técnico" End If End If - End If + End If End If - Next + End If diff --git a/Compras/Compras.aspx.vb b/Compras/Compras.aspx.vb index 642b778e6..9a557b9a8 100644 --- a/Compras/Compras.aspx.vb +++ b/Compras/Compras.aspx.vb @@ -8139,7 +8139,7 @@ Partial Class Compras_Compras If UsuarioActual.TienePermisoProceso(354) Then 'visualizar la póliza al registros Msg.AppendFormat("

Ver Póliza. ", CvePrePoliza) Dim TempParametros = Encripta(String.Format("OP=PREPO&CvePrePoliza={0}", CvePrePoliza)) - Msg.Append($" Descargar PDF ") + Msg.Append($" Imprimir PDF ") @@ -8263,7 +8263,6 @@ Partial Class Compras_Compras If listaUUIDSRelacionados.Count > 0 Then DoctosRelacionados = String.Join(",", listaUUIDSRelacionados.ToArray()) - DoctosRelacionados = DoctosRelacionados.Substring(0, DoctosRelacionados.Length - 2) End If Return DoctosRelacionados diff --git a/Compras/Proveedores.aspx.vb b/Compras/Proveedores.aspx.vb index b542189c3..15dc5bff8 100644 --- a/Compras/Proveedores.aspx.vb +++ b/Compras/Proveedores.aspx.vb @@ -3123,15 +3123,22 @@ Partial Class Compras_Proveedores Alert("No se pudieron cargar las cuentas bancarias. Por favor intente nuevamente.", TipoMensaje.MsgAdvertencia) End If ObjCuentasBancos.Dispose() - End If + Else - - If CveProveedor < 0 Then - 'Alert("No hay proveedor", TipoMensaje.MsgInformacion) - TempDTCuentasBancos = DTCuentasBancos.Clone + 'SE USA CUANDO SE REGISTRA UN PROVEEDOR NUEVO + 'ESTE ELSE ES PARA OBTENER LA ESTRUCTURA DE LA TABLA + Dim ObjCuentasBancos As New ClsGenerales + If ObjCuentasBancos.GetCuentasDepositos(0, CveEmpresa:=-2) Then + DTCuentasBancos.Merge(ObjCuentasBancos.DtResultados) + Else + Alert("No se pudieron cargar las cuentas bancarias. Por favor intente nuevamente.", TipoMensaje.MsgAdvertencia) + End If + ObjCuentasBancos.Dispose() End If + TempDTCuentasBancos = DTCuentasBancos.Clone + CargaPSGridCuentasBancos(ViewState("OrdenCuentasBancos").ToString) End Sub diff --git a/Contabilidad2/CatCuentasAsignaciones.aspx.vb b/Contabilidad2/CatCuentasAsignaciones.aspx.vb index 2ae4ea7c8..3ec01dd77 100644 --- a/Contabilidad2/CatCuentasAsignaciones.aspx.vb +++ b/Contabilidad2/CatCuentasAsignaciones.aspx.vb @@ -11,8 +11,20 @@ Partial Class Contabilidad2_CatCuentasAsignaciones Set ViewState("CveConceptoAsignacion") = Value End Set - End Property - + End Property + + Public Property OpAgregar As Boolean + Get + If ViewState("OpAgregar") Is Nothing Then + ViewState("OpAgregar") = False + End If + Return Boolean.Parse(ViewState("OpAgregar").ToString) + End Get + Set(value As Boolean) + ViewState("OpAgregar") = value + End Set + End Property + Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load If Not Page.IsPostBack Then @@ -116,7 +128,8 @@ Partial Class Contabilidad2_CatCuentasAsignaciones DdlAlmacen.Items.Insert(0, New ListItem("Seleccione", "-1")) End Sub - Protected Sub ActualizaModulo(sender As Object, e As EventArgs) + Protected Sub ActualizaModulo(sender As Object, e As EventArgs) + OpAgregar = False LimpiarDatos() Dim GvRow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow) Dim Dr As DataRow = GlobalDTContaConceptosContables(GvRow.DataKey("CveConceptoContable").ToEntero).FiltroPrimero("") @@ -149,6 +162,8 @@ Partial Class Contabilidad2_CatCuentasAsignaciones DdlSubProyectos.SelectedValueExist(GvRow.DataKey("CveSubProyecto").ToEntero) DdlTipoGasto.SelectedValueExist(GvRow.DataKey("CveTipoGasto").ToEntero) DdlActivoFijo.SelectedValueExist(GvRow.DataKey("CveActivoFijo").ToEntero) + DdlActivoFijo.Enabled = False + Dim CveCliente As Integer = GvRow.DataKey("CveCliente").ToEntero Dim CvePersonal As Integer = GvRow.DataKey("CvePersonal").ToEntero @@ -176,29 +191,31 @@ Partial Class Contabilidad2_CatCuentasAsignaciones If Dr IsNot Nothing Then - divCliente.Visible = Dr("AplicaCliente").ToString = "True" + divCliente.Visible = Boolean.Parse(Dr("AplicaCliente").ToString) + divProveedor.Visible = Boolean.Parse(Dr("AplicaProveedor").ToString) + divPersonal.Visible = Boolean.Parse(Dr("AplicaPersonal").ToString) + divPorcentajeIVA.Visible = Boolean.Parse(Dr("AplicaImpuesto").ToString) + divClasificacion.Visible = Boolean.Parse(Dr("AplicaClasificacion").ToString) + divBancos.Visible = Boolean.Parse(Dr("AplicaBancos").ToString) + divAlmacen.Visible = Boolean.Parse(Dr("AplicaAlmacen").ToString) + divSubProyectos.Visible = Boolean.Parse(Dr("AplicaSubProyecto").ToString) + divActivoFijo.Visible = Boolean.Parse(Dr("AplicaActivoFijo").ToString) - divProveedor.Visible = Dr("AplicaProveedor").ToString = "True" - - divPersonal.Visible = Dr("AplicaPersonal").ToString = "True" - - divPorcentajeIVA.Visible = Dr("AplicaImpuesto").ToString = "True" - - divClasificacion.Visible = Dr("AplicaClasificacion").ToString = "True" - - divBancos.Visible = Dr("AplicaBancos").ToString = "True" - - divAlmacen.Visible = Dr("AplicaAlmacen").ToString = "True" - - divSubProyectos.Visible = Dr("AplicaSubProyecto").ToString = "True" + DdlActivoFijo.Enabled = False If Dr("AplicaActivoFijo").ToString = "True" Then - divActivoFijo.Visible = True DdlActivoFijo.DataSource = GlobalDTActivoFijos(UsuarioActual.CveEmpresa) - DdlActivoFijo.DataBind() - ' DdlActivoFijo.SelectedValueExist(GvRow.DataKey("CveActivoFijo")) + DdlActivoFijo.DataBind() ' DdlActivoFijo.SelectedValueExist(GvRow.DataKey("CveActivoFijo")) + + If OpAgregar Then + DdlActivoFijo.Enabled = True + Else + DdlActivoFijo.Enabled = False + End If + End If + divConceptoNomina.Visible = Dr("AplicaNomina").ToString = "True" If CveConceptoContable = 51 Then @@ -244,6 +261,8 @@ Partial Class Contabilidad2_CatCuentasAsignaciones End Sub Protected Sub BtnAgregarAsignacion_Click(sender As Object, e As EventArgs) Handles BtnAgregarAsignacion.Click + OpAgregar = True + LimpiarDatos() DdlCconceptosContables.Enabled = True DdlSubProyectos.Enabled = True @@ -272,6 +291,23 @@ Partial Class Contabilidad2_CatCuentasAsignaciones DdlPersonal.ddl.DataBind() DdlPersonal.setEsWebService(True) HdnCveCuentaAsignacion.Value = "" + + If OpAgregar Then + divCliente.Visible = False + divProveedor.Visible = False + divPersonal.Visible = False + divPorcentajeIVA.Visible = False + divClasificacion.Visible = False + divBancos.Visible = False + divAlmacen.Visible = False + divSubProyectos.Visible = False + divActivoFijo.Visible = False + End If + + + + + End Sub Protected Sub LbAgregar_Click(sender As Object, e As EventArgs) Handles LbAgregar.Click diff --git a/Empresas/Grales/Formatos/PolizasResumen.rdlc b/Empresas/Grales/Formatos/PolizasResumen.rdlc new file mode 100644 index 000000000..a5287f9f5 --- /dev/null +++ b/Empresas/Grales/Formatos/PolizasResumen.rdlc @@ -0,0 +1,1380 @@ + + + 0 + + + + System.Data.DataSet + /* Local Connection */ + + 7ef92796-1755-4a85-b80c-8c8266256a94 + + + + + + DataSet1 + /* Local Query */ + + + + CveCuenta + System.Int16 + + + CveSubProyecto + System.Int16 + + + TipoPol + System.Boolean + + + Codigo + System.String + + + Nombre + System.String + + + SubProyecto + System.String + + + Concepto + System.String + + + Referencia + System.String + + + Parcial + System.Double + + + Cargo + System.Double + + + Abono + System.Double + + + CuentaFormato + System.String + + + + DataSet1 + C:\inetpub\wwwroot\ADSistemas\Ventas.root\Reportes\DataSet1.xsd + DataTable1 + + + + + + + + + + + + + + + 1.04101in + + + 1.64453in + + + 1.25976in + + + 1.03754in + + + 1.00976in + + + 1.00976in + + + 1.00976in + + + + + 0.1875in + + + + + true + true + + + + + Cuenta + + + + + + + Textbox1 + + + Silver + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Nombre + + + + + + + Textbox3 + + + Silver + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Referencia + + + + + + + Textbox10 + + + Silver + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Seg + + + + + + + Textbox12 + + + Silver + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Parcial + + + + + + + Textbox6 + + + Silver + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Cargo + + + + + + + Textbox2 + + + Silver + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Abono + + + + + + + Textbox8 + + + Silver + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.17708in + + + + + true + true + + + + + =Fields!Codigo.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Nombre.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Referencia.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!SubProyecto.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Parcial.Value + + + + + + + Parcial + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Cargo.Value + + + + + + + Cargo + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Abono.Value + + + + + + + Abono + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.25in + + + + + true + true + + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Total + + + + + + + Textbox14 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(IIF(IsNothing(Fields!Referencia.Value),0,cdbl(Fields!Cargo.Value))) + + + + + + + Textbox15 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(IIF(IsNothing(Fields!Referencia.Value),0,cdbl(Fields!Abono.Value))) + + + + + + + Textbox16 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + + After + + + + + + Before + + + + true + true + true + true + DataSet1 + 0.61458in + 8.01212in + + + + + + 0.61458in + + + + + + + + + Impreso de póliza del + + + + =Parameters!Finicio.Value + + + + al + + + + =Parameters!FFin.Value + + + + + + + + + Moneda: + + + + =Parameters!Moneda.Value + + + + + + + Textbox4 + 0.61055cm + 1.8125in + 1.26472cm + 9.94376cm + + + 2pt + 2pt + + + + true + + + + + Hoja: + + + + =Globals!PageNumber + + + + + + + + + Fecha: + + + + =Parameters!Fecha.Value + + + + + + + + + + + + Textbox4 + 0.61055cm + 5.94612in + 0.89872cm + 4.22452cm + 1 + + + + + + External + = Parameters!pImg.Value + FitProportional + 2.08251cm + 2.64415cm + 2 + + + + + + true + true + + + + + Concepto: + + + + =Parameters!ConceptoPoliza.Value + + + + + + + Textbox103 + 2.11779cm + 0.72758cm + 16.28503cm + 3 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + ="Folio: " & Parameters!Folio.Value + + + + + + + Textbox7 + 1.78707cm + 16.35558cm + 0.6cm + 3.6205cm + 4 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Fecha: + + + + =Parameters!Fecha.Value + + + + + + + + + + + Textbox107 + 2.42235cm + 16.35558cm + 0.6cm + 3.6205cm + 5 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + 0.23958in + true + true + + + true + true + + + + + Fecha Impresión: + + + + =Today + + + + + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.19685in + 0.19685in + 0.01181in + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Cant + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + U. Medida + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Descripcion + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Precio + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Importe + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Descto. + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.25in + + + + + true + true + + + + + =IIF(First(Fields!NoIdentificacion.Value, "Concepto") = "", +First(Fields!ClaveProdServ.Value, "Concepto"), +First(Fields!ClaveProdServ.Value, "Concepto") + " - " + First(Fields!NoIdentificacion.Value, "Concepto")) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Cantidad.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =IIF(First(Fields!Unidad.Value, "Concepto") = "", +First(Fields!ClaveUnidad.Value, "Concepto"), +First(Fields!ClaveUnidad.Value, "Concepto") + " - " + First(Fields!Unidad.Value, "Concepto")) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Descripcion.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =CDbl(Fields!ValorUnitario.Value) + + + + + + + ValorUnitario + + + 2pt + 2pt + 2pt + 2pt + en-US + + + + + + + + true + true + + + + + =CDbl(Fields!Importe.Value) + + + + + + + Importe1 + + + 2pt + 2pt + 2pt + 2pt + en-US + + + + + + + + true + true + + + + + =CDbl(IIF(First(Fields!Descuento.Value, "Concepto") Is Nothing, + "0", + First(Fields!Descuento.Value, "Concepto"))) + + + + + + + Descuento + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + + true + After + true + + + + + + + Concepto + 0.06944in + 0.00012in + 0.5in + 7.71262in + + + + + + true + true + + + + + Tipo Relación Cfdi: + + + + + + + Textbox48 + 7.26368cm + 0.51592cm + 2.7201cm + 1 + + =First(Fields!TipoRelacion.Value, "CfdiRelacionados") is Nothing + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!TipoRelacion.Value, "CfdiRelacionados") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + 5.50118cm + + + + + 0.51592cm + + + + + true + true + + + + + =Fields!UUID.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + CfdiRelacionado + 7.26368cm + 8.92912cm + 0.51592cm + 5.50118cm + 3 + + + + + + true + true + + + + + UUID(s): + + + + + + + Textbox48 + 7.26368cm + 7.63774cm + 0.51592cm + 1.29138cm + 4 + + =First(Fields!UUID.Value, "CfdiRelacionado") is Nothing + + + + 2pt + 2pt + 2pt + 2pt + + + + + + true + true + + + + + Fecha Pago: + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!FechaPago.Value, "Pago") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Forma de Pago: + + + + + + + LightGrey + + 1pt + + + LightGrey + + 1pt + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!FormaDePagoP.Value, "Pago") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Moneda: + + + + + + + LightGrey + + 1pt + + + LightGrey + + 1pt + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =IIF(First(Fields!TipoCambioP.Value, "Pago") Is Nothing, +First(Fields!MonedaP.Value, "Pago"), +First(Fields!MonedaP.Value, "Pago") + " - " + First(Fields!TipoCambioP.Value, "Pago")) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Monto: + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =CDbl(First(Fields!Monto.Value, "Pago")) + + + + + + + Textbox52 + 0.52063cm + 2.54372cm + 0.52062cm + 3.06704cm + 7 + + + 2pt + 2pt + 2pt + 2pt + en-US + + + + true + true + + + + + Num. Operacion: + + + + + + + LightGrey + + 1pt + + + LightGrey + + 1pt + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!NumOperacion.Value, "Pago") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Rfc Emi. Cta Ord: + + + + + + + LightGrey + + 1pt + + + LightGrey + + 1pt + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!RfcEmisorCtaOrd.Value, "Pago") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Banco Ord. Ext: + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!NomBancoOrdExt.Value, "Pago") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Cta. Ordenante: + + + + + + + LightGrey + + 1pt + + + LightGrey + + 1pt + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!CtaOrdenante.Value, "Pago") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Rfc Emi. Cta Ben: + + + + + + + LightGrey + + 1pt + + + LightGrey + + 1pt + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!RfcEmisorCtaBen.Value, "Pago") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Cta. Beneficiario: + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!CtaBeneficiario.Value, "Pago") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Tipo Cad. Pago: + + + + + + + LightGrey + + 1pt + + + LightGrey + + 1pt + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =IIF(First(Fields!TipoCadPago.Value, "Pago") is Nothing, +"", +"01 - SPEI") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Cert. Pago: + + + + + + + LightGrey + + 1pt + + + LightGrey + + 1pt + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!CertPago.Value, "Pago") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Cad. Pago: + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!CadPago.Value, "Pago") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Sello Pago: + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!SelloPago.Value, "Pago") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + 3.83418cm + 2.54327cm + -3.83417cm + 0cm + 28 + + + + + + true + 1.73173cm + 3.86946cm + 19.59037cm + 5 + + + + + + 3.81424cm + 2.54411cm + 0cm + 17.04626cm + 6 + + + + + + + + + 5.83898cm + + + 1.25217cm + + + 2.39283cm + + + 1.46313cm + + + 1.41102cm + + + 1.07186cm + + + 2.07761cm + + + 2.10269cm + + + 1.97924cm + + + + + 0.6cm + + + + + true + true + + + + + UUID + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Serie + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Folio + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Moneda + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Método + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Parc. + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Saldo Ant. + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Pagado + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Saldo + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + =Fields!IdDocumento.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Serie.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Folio.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!MonedaDR.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!MetodoDePagoDR.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!NumParcialidad.Value + + + + + + + NumParcialidad + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =CDbl(Fields!ImpSaldoAnt.Value) + + + + + + + ImpSaldoAnt + + + 2pt + 2pt + 2pt + 2pt + en-US + + + + + + + + true + true + + + + + =CDbl(Fields!ImpPagado.Value) + + + + + + + ImpPagado + + + 2pt + 2pt + 2pt + 2pt + en-US + + + + + + + + true + true + + + + + =CDbl(Fields!ImpSaldoInsoluto.Value) + + + + + + + ImpSaldoInsoluto + + + 2pt + 2pt + 2pt + 2pt + en-US + + + + + + + + + + + + + + + + + + + + + + + + + After + + + + + + + DoctoRelacionado + 5.88729cm + 1.2cm + 19.58953cm + 7 + + + + + + 7.93837cm + + + + + + + + true + true + + + + + Folio Fiscal: + + + + + + + Textbox35 + 0.07055cm + 0.00002cm + 0.44125cm + 5.15982cm + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!UUID.Value, "TimbreFiscalDigital") + + + + + + + Textbox35 + 0.5118cm + 0.00002cm + 0.44125cm + 5.15982cm + 1 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + No. de serie del CFD: + + + + + + + Textbox35 + 0.95305cm + 0.00002cm + 0.44125cm + 5.15982cm + 2 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!NoCertificado.Value, "Comprobante") + + + + + + + Textbox35 + 1.3943cm + 0.00002cm + 0.44125cm + 5.15982cm + 3 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Fecha y hora de emisión + + + + + + + Textbox35 + 1.82571cm + 0.44125cm + 5.15982cm + 4 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!Fecha.Value, "Comprobante") + + + + + + + Textbox35 + 2.2768cm + 0.44125cm + 5.15982cm + 5 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!TipoDeComprobante.Value, "Comprobante") + + + + + + + Textbox17 + 3.1593cm + 0.44243cm + 5.15982cm + 6 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Efecto del comprobante + + + + + + + Textbox35 + 2.71805cm + 0.44125cm + 5.15982cm + 7 + + + 2pt + 2pt + 2pt + 2pt + + + + true + 14.43035cm + 3.60173cm + 5.15991cm + 1 + + + + LightGrey + + + LightGrey + + + LightGrey + + + LightGrey + + + + + true + true + + + + + =First(Fields!Nombre.Value, "Emisor") + + + + + + + Textbox11 + 4.7676cm + 1.61405cm + 9.66283cm + 2 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!Rfc.Value, "Emisor") + + + + + + + Textbox15 + 1.62389cm + 4.7676cm + 0.54708cm + 9.66283cm + 3 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!RegimenFiscal.Value, "Emisor") + + + + + + + Textbox16 + 3.2553cm + 4.76759cm + 0.54708cm + 9.66281cm + 4 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Régimen fiscal: + + + + + + + Textbox19 + 2.70821cm + 4.76759cm + 0.54708cm + 9.66281cm + 5 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + ="Lugar de expedición: " + First(Fields!LugarExpedicion.Value, "Comprobante") + + + + + + + Textbox22 + 2.17097cm + 4.76762cm + 0.53724cm + 9.66281cm + 6 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Serie/Folio: + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!Serie.Value, "Comprobante") + " - " + First(Fields!Folio.Value, "Comprobante") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + true + true + + + + + RFC: + + + + + + + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Razón social: + + + + + + + + + + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!Nombre.Value, "Receptor") + + + + + + + LightGrey + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Uso de CFDI: + + + + + + + + + + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!UsoCFDI.Value, "Receptor") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!Rfc.Value, "Receptor") + + + + + + + LightGrey + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =IIF(First(Fields!DireccionReceptor.Value, "DatosAdicionales") = "", First(Fields!DomicilioFiscalReceptor.Value, "Receptor"), First(Fields!DireccionReceptor.Value, "DatosAdicionales")) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Domicilio fiscal: + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Régimen fiscal: + + + + + + WhiteSmoke + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!RegimenFiscalReceptor.Value, "Receptor") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + 4.21537cm + 0.00007cm + 2.27198cm + 19.59023cm + 9 + + + + + + + + + + + 5.10291cm + true + true + + + Database + =First(Fields!QrCode.Value, "DatosAdicionales") + image/jpeg + FitProportional + 0.00086cm + 0.00012in + 1.5in + 1.5in + QrCode + + + + + + true + true + + + + + Este documento es una representación impresa de un CFDI + + + + + + + Textbox23 + 1.56978in + 0.25in + 7.7126in + 1 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Página + + + + =Globals!PageNumber + + + + de + + + + =Globals!TotalPages + + + + + + + Textbox24 + 1.56978in + 5.08934in + 0.25in + 2.62326in + 2 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Cadena Original del complemento de certificación digital del SAT: + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + ="||" + First(Fields!Version.Value, "TimbreFiscalDigital") + "|" + +First(Fields!UUID.Value, "TimbreFiscalDigital") + "|" + +First(Fields!FechaTimbrado.Value, "TimbreFiscalDigital") + "|" + +First(Fields!RfcProvCertif.Value, "TimbreFiscalDigital") + "|" + +First(Fields!SelloCFD.Value, "TimbreFiscalDigital") + "|" + +First(Fields!NoCertificadoSAT.Value, "TimbreFiscalDigital") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + RFC del prov. de certificación: + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!RfcProvCertif.Value, "TimbreFiscalDigital") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Fecha y hora de certificación: + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!FechaTimbrado.Value, "TimbreFiscalDigital") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + No. de certificado SAT: + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!NoCertificadoSAT.Value, "TimbreFiscalDigital") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!SelloCFD.Value, "TimbreFiscalDigital") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Sello digital del CFDI: + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Sello digital del SAT: + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!SelloSAT.Value, "TimbreFiscalDigital") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 27.94cm + 21.59cm + 1cm + 1cm + 1cm + 1cm + 1.27cm +