2007-11-05 18:00:22 +00:00
|
|
|
object RptFacturasCliente: TRptFacturasCliente
|
|
|
|
|
OldCreateOrder = True
|
|
|
|
|
OnCreate = DataModuleCreate
|
2009-01-27 18:25:51 +00:00
|
|
|
OnDestroy = DataModuleDestroy
|
2013-11-06 17:30:00 +00:00
|
|
|
Height = 965
|
|
|
|
|
Width = 1080
|
2007-11-05 18:00:22 +00:00
|
|
|
object schReport: TDASchema
|
|
|
|
|
ConnectionManager = dmServer.ConnectionManager
|
|
|
|
|
Datasets = <
|
2011-02-03 18:44:02 +00:00
|
|
|
item
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end>
|
|
|
|
|
Statements = <
|
|
|
|
|
item
|
|
|
|
|
Connection = 'IBX'
|
|
|
|
|
ConnectionType = 'Interbase'
|
|
|
|
|
Default = True
|
|
|
|
|
Name = 'IBX'
|
|
|
|
|
SQL =
|
|
|
|
|
'select VALOR, DESCRIPCION, periodo1.ANO as Ano1, periodo1.IMPORT' +
|
|
|
|
|
'E_TOTAL, periodo2.ANO as Ano2, periodo2.IMPORTE_TOTAL,'#10#10'(periodo' +
|
|
|
|
|
'1.IMPORTE_TOTAL - periodo2.IMPORTE_TOTAL) as Diferencia,'#10'/*SOLO ' +
|
|
|
|
|
'COMPARAREMOS CUANDO EL SEGUNDO A'#209'O SEA DIFERENTE DE 0, comparati' +
|
|
|
|
|
'va de A'#241'o1 respecto A'#241'o2*/'#10'case'#10'when (periodo1.IMPORTE_TOTAL = 0' +
|
2014-01-24 14:28:37 +00:00
|
|
|
') then (NULL)'#10'else (100 - ((periodo2.IMPORTE_TOTAL*100)/periodo1' +
|
|
|
|
|
'.IMPORTE_TOTAL))'#10'end as Porcentaje'#10#10'FROM'#10'periodos_aux'#10'left join'#10 +
|
|
|
|
|
'(select comp1.ID_EMPRESA, comp1.ANO, MES as NFILA, SUM(comp1.BAS' +
|
|
|
|
|
'E_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_CLIENTE comp1'#10'where' +
|
|
|
|
|
' ID_EMPRESA = :ID_EMPRESA1'#10'and (ANO = :ANO1)'#10'group by 1,2,3'#10'orde' +
|
|
|
|
|
'r by 1 desc,2 asc) periodo1 on (VALOR = periodo1.NFILA)'#10#10'left jo' +
|
|
|
|
|
'in'#10'(select comp2.ID_EMPRESA, comp2.ANO, MES as NFILA, SUM(comp2.' +
|
|
|
|
|
'BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_CLIENTE comp2'#10'wh' +
|
|
|
|
|
'ere ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'group by 1,2,3'#10'o' +
|
|
|
|
|
'rder by 1 desc,2 asc) periodo2 on (VALOR = periodo2.NFILA)'#10#10'wher' +
|
|
|
|
|
'e periodo= '#39'MENSUAL'#39#10'order by valor asc'#10#10
|
2011-02-03 18:44:02 +00:00
|
|
|
StatementType = stSQL
|
|
|
|
|
ColumnMappings = <
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'VALOR'
|
|
|
|
|
TableField = 'VALOR'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DESCRIPCION'
|
|
|
|
|
TableField = 'DESCRIPCION'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO1'
|
|
|
|
|
TableField = 'ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_TOTAL'
|
|
|
|
|
TableField = 'IMPORTE_TOTAL'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO2'
|
|
|
|
|
TableField = 'ANO2'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_TOTAL1'
|
|
|
|
|
TableField = 'IMPORTE_TOTAL1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DIFERENCIA'
|
|
|
|
|
TableField = 'DIFERENCIA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE'
|
|
|
|
|
TableField = 'PORCENTAJE'
|
|
|
|
|
end>
|
|
|
|
|
end>
|
|
|
|
|
Name = 'InformeListadoFacturasGrafCompMensual'
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'VALOR'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCRIPCION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 20
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NTOP'
|
|
|
|
|
Value = ''
|
|
|
|
|
end>
|
|
|
|
|
Statements = <
|
|
|
|
|
item
|
|
|
|
|
Connection = 'IBX'
|
|
|
|
|
ConnectionType = 'Interbase'
|
|
|
|
|
Default = True
|
|
|
|
|
Name = 'IBX'
|
|
|
|
|
SQL =
|
|
|
|
|
'select P.ANO, C.REFERENCIA, COALESCE(C.NOMBRE, P.NOMBRE) as NOMB' +
|
|
|
|
|
'RE,'#10'SUM(P.IMPORTE_DESCUENTO) as IMPORTE_DESCUENTO, SUM(P.IMPORTE' +
|
|
|
|
|
'_TOTAL) as IMPORTE_TOTAL,'#10'(SUM(P.IMPORTE_TOTAL) - SUM(P.IMPORTE_' +
|
|
|
|
|
'DESCUENTO)) as IMPORTE_COBRADO,'#10'case when SUM(P.IMPORTE_TOTAL) =' +
|
|
|
|
|
' 0 then 0'#10'else ((SUM(P.IMPORTE_DESCUENTO) * 100) / SUM(P.IMPORTE' +
|
|
|
|
|
'_TOTAL)) end as PORCENTAJE'#10#10'from V_INF_FAC_CLIENTE P'#10'left join C' +
|
|
|
|
|
'ONTACTOS C on P.ID_CLIENTE = C.ID'#10#10'where p.ID_EMPRESA = :ID_EMPR' +
|
|
|
|
|
'ESA'#10'and P.ANO = :ANO'#10'group by 1,2,3'#10'order by 1,5 desc'#10'rows 1 to ' +
|
|
|
|
|
':NTOP'#10#10
|
|
|
|
|
StatementType = stSQL
|
|
|
|
|
ColumnMappings = <
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO'
|
|
|
|
|
TableField = 'ANO'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'REFERENCIA'
|
|
|
|
|
TableField = 'REFERENCIA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'NOMBRE'
|
|
|
|
|
TableField = 'NOMBRE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_DESCUENTO'
|
|
|
|
|
TableField = 'IMPORTE_DESCUENTO'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_TOTAL'
|
|
|
|
|
TableField = 'IMPORTE_TOTAL'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_COBRADO'
|
|
|
|
|
TableField = 'IMPORTE_COBRADO'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE'
|
|
|
|
|
TableField = 'PORCENTAJE'
|
|
|
|
|
end>
|
|
|
|
|
end>
|
|
|
|
|
Name = 'InformeListadoClientesMayorDescuentoResumen'
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'REFERENCIA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NOMBRE'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_DESCUENTO'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_COBRADO'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
end
|
2007-11-05 18:00:22 +00:00
|
|
|
item
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
Value = '1'
|
|
|
|
|
ParamType = daptInput
|
|
|
|
|
end>
|
|
|
|
|
Statements = <
|
|
|
|
|
item
|
|
|
|
|
Connection = 'IBX'
|
|
|
|
|
SQL =
|
2008-01-15 10:31:41 +00:00
|
|
|
'select'#10' v_facturas_cliente.id, v_facturas_cliente.id_empresa,'#10 +
|
|
|
|
|
' v_facturas_cliente.referencia, v_facturas_cliente.tipo,'#10' v_' +
|
2009-01-15 13:05:03 +00:00
|
|
|
'facturas_cliente.fecha_factura, v_facturas_cliente.fecha_VENCIMI' +
|
|
|
|
|
'ENTO,'#10' v_facturas_cliente.base_imponible,'#10' v_facturas_client' +
|
|
|
|
|
'e.situacion, v_facturas_cliente.descuento,'#10' v_facturas_cliente' +
|
|
|
|
|
'.importe_descuento, v_facturas_cliente.iva,'#10' v_facturas_client' +
|
|
|
|
|
'e.importe_iva, v_facturas_cliente.re,'#10' v_facturas_cliente.impo' +
|
|
|
|
|
'rte_re, v_facturas_cliente.importe_total,'#10' v_facturas_cliente.' +
|
|
|
|
|
'observaciones, v_facturas_cliente.nif_cif,'#10' v_facturas_cliente' +
|
|
|
|
|
'.id_cliente, v_facturas_cliente.nombre,'#10' v_facturas_cliente.ca' +
|
|
|
|
|
'lle, v_facturas_cliente.provincia,'#10' v_facturas_cliente.poblaci' +
|
|
|
|
|
'on, v_facturas_cliente.codigo_postal,'#10' v_facturas_cliente.reca' +
|
|
|
|
|
'rgo_equivalencia, v_facturas_cliente.importe_neto,'#10' v_facturas' +
|
|
|
|
|
'_cliente.importe_porte, formas_pago.descripcion as FORMA_PAGO,'#10' ' +
|
|
|
|
|
' v_facturas_cliente.DATOS_BANCARIOS, v_facturas_cliente.RETENCI' +
|
2014-02-18 22:41:52 +00:00
|
|
|
'ON, v_facturas_cliente.IMPORTE_RETENCION,'#10' v_facturas_cliente.' +
|
|
|
|
|
'CERTIFICADO_ISO'#10'from v_facturas_cliente'#10' left outer join forma' +
|
|
|
|
|
's_pago on (formas_pago.id = v_facturas_cliente.id_forma_pago)'#10'WH' +
|
|
|
|
|
'ERE V_FACTURAS_CLIENTE.ID = :ID'#10
|
2007-11-05 18:00:22 +00:00
|
|
|
StatementType = stSQL
|
|
|
|
|
ColumnMappings = <
|
|
|
|
|
item
|
2008-06-11 16:35:39 +00:00
|
|
|
DatasetField = 'ID'
|
|
|
|
|
TableField = 'ID'
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
2008-06-11 16:35:39 +00:00
|
|
|
DatasetField = 'ID_EMPRESA'
|
|
|
|
|
TableField = 'ID_EMPRESA'
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'REFERENCIA'
|
|
|
|
|
TableField = 'REFERENCIA'
|
|
|
|
|
end
|
|
|
|
|
item
|
2008-06-11 16:35:39 +00:00
|
|
|
DatasetField = 'TIPO'
|
|
|
|
|
TableField = 'TIPO'
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'FECHA_FACTURA'
|
|
|
|
|
TableField = 'FECHA_FACTURA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'BASE_IMPONIBLE'
|
|
|
|
|
TableField = 'BASE_IMPONIBLE'
|
|
|
|
|
end
|
2008-06-11 16:35:39 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'SITUACION'
|
|
|
|
|
TableField = 'SITUACION'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DESCUENTO'
|
|
|
|
|
TableField = 'DESCUENTO'
|
|
|
|
|
end
|
2007-11-05 18:00:22 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_DESCUENTO'
|
|
|
|
|
TableField = 'IMPORTE_DESCUENTO'
|
|
|
|
|
end
|
2008-06-11 16:35:39 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'IVA'
|
|
|
|
|
TableField = 'IVA'
|
|
|
|
|
end
|
2007-11-05 18:00:22 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_IVA'
|
|
|
|
|
TableField = 'IMPORTE_IVA'
|
|
|
|
|
end
|
2008-06-11 16:35:39 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'RE'
|
|
|
|
|
TableField = 'RE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_RE'
|
|
|
|
|
TableField = 'IMPORTE_RE'
|
|
|
|
|
end
|
2007-11-05 18:00:22 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_TOTAL'
|
|
|
|
|
TableField = 'IMPORTE_TOTAL'
|
|
|
|
|
end
|
|
|
|
|
item
|
2008-06-11 16:35:39 +00:00
|
|
|
DatasetField = 'OBSERVACIONES'
|
|
|
|
|
TableField = 'OBSERVACIONES'
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'NIF_CIF'
|
|
|
|
|
TableField = 'NIF_CIF'
|
|
|
|
|
end
|
|
|
|
|
item
|
2008-06-11 16:35:39 +00:00
|
|
|
DatasetField = 'ID_CLIENTE'
|
|
|
|
|
TableField = 'ID_CLIENTE'
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
2008-06-11 16:35:39 +00:00
|
|
|
DatasetField = 'NOMBRE'
|
|
|
|
|
TableField = 'NOMBRE'
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
2008-06-11 16:35:39 +00:00
|
|
|
DatasetField = 'CALLE'
|
|
|
|
|
TableField = 'CALLE'
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
2008-06-11 16:35:39 +00:00
|
|
|
DatasetField = 'PROVINCIA'
|
|
|
|
|
TableField = 'PROVINCIA'
|
2008-01-15 10:31:41 +00:00
|
|
|
end
|
|
|
|
|
item
|
2008-06-11 16:35:39 +00:00
|
|
|
DatasetField = 'POBLACION'
|
|
|
|
|
TableField = 'POBLACION'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'CODIGO_POSTAL'
|
|
|
|
|
TableField = 'CODIGO_POSTAL'
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
2008-01-15 10:31:41 +00:00
|
|
|
DatasetField = 'RECARGO_EQUIVALENCIA'
|
|
|
|
|
TableField = 'RECARGO_EQUIVALENCIA'
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
2008-01-15 10:31:41 +00:00
|
|
|
DatasetField = 'IMPORTE_NETO'
|
|
|
|
|
TableField = 'IMPORTE_NETO'
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
2008-01-15 10:31:41 +00:00
|
|
|
DatasetField = 'IMPORTE_PORTE'
|
|
|
|
|
TableField = 'IMPORTE_PORTE'
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
2008-01-15 10:31:41 +00:00
|
|
|
DatasetField = 'FORMA_PAGO'
|
|
|
|
|
TableField = 'FORMA_PAGO'
|
2008-06-05 18:21:13 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DATOS_BANCARIOS'
|
|
|
|
|
TableField = 'DATOS_BANCARIOS'
|
2009-01-15 13:05:03 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'FECHA_VENCIMIENTO'
|
|
|
|
|
TableField = 'FECHA_VENCIMIENTO'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'RETENCION'
|
|
|
|
|
TableField = 'RETENCION'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_RETENCION'
|
|
|
|
|
TableField = 'IMPORTE_RETENCION'
|
2014-02-18 22:41:52 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'CERTIFICADO_ISO'
|
|
|
|
|
TableField = 'CERTIFICADO_ISO'
|
2007-11-05 18:00:22 +00:00
|
|
|
end>
|
|
|
|
|
end>
|
|
|
|
|
Name = 'InformeFacturasCliente'
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID'
|
2008-01-15 10:31:41 +00:00
|
|
|
DataType = datInteger
|
2007-11-05 18:00:22 +00:00
|
|
|
DictionaryEntry = 'FacturasCliente_ID'
|
|
|
|
|
InPrimaryKey = True
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_ID_EMPRESA'
|
|
|
|
|
end
|
2008-01-15 10:31:41 +00:00
|
|
|
item
|
|
|
|
|
Name = 'REFERENCIA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_REFERENCIA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'TIPO'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 1
|
|
|
|
|
end
|
2007-11-05 18:00:22 +00:00
|
|
|
item
|
|
|
|
|
Name = 'FECHA_FACTURA'
|
|
|
|
|
DataType = datDateTime
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_FECHA_FACTURA'
|
|
|
|
|
end
|
2009-01-15 13:05:03 +00:00
|
|
|
item
|
|
|
|
|
Name = 'FECHA_VENCIMIENTO'
|
|
|
|
|
DataType = datDateTime
|
|
|
|
|
end
|
2007-11-05 18:00:22 +00:00
|
|
|
item
|
|
|
|
|
Name = 'BASE_IMPONIBLE'
|
2008-01-15 10:31:41 +00:00
|
|
|
DataType = datCurrency
|
2007-11-05 18:00:22 +00:00
|
|
|
DictionaryEntry = 'FacturasCliente_BASE_IMPONIBLE'
|
|
|
|
|
end
|
|
|
|
|
item
|
2008-01-15 10:31:41 +00:00
|
|
|
Name = 'SITUACION'
|
2007-11-05 18:00:22 +00:00
|
|
|
DataType = datString
|
2008-01-15 10:31:41 +00:00
|
|
|
Size = 19
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
2008-01-15 10:31:41 +00:00
|
|
|
Name = 'DESCUENTO'
|
2014-02-18 22:41:52 +00:00
|
|
|
DataType = datCurrency
|
2008-01-15 10:31:41 +00:00
|
|
|
DictionaryEntry = 'FacturasCliente_DESCUENTO'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_DESCUENTO'
|
|
|
|
|
DataType = datCurrency
|
2007-11-05 18:00:22 +00:00
|
|
|
DictionaryEntry = 'FacturasCliente_IMPORTE_DESCUENTO'
|
|
|
|
|
end
|
|
|
|
|
item
|
2008-01-15 10:31:41 +00:00
|
|
|
Name = 'IVA'
|
2014-02-18 22:41:52 +00:00
|
|
|
DataType = datCurrency
|
2008-01-15 10:31:41 +00:00
|
|
|
DictionaryEntry = 'FacturasCliente_IVA'
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_IVA'
|
2008-01-15 10:31:41 +00:00
|
|
|
DataType = datCurrency
|
2007-11-05 18:00:22 +00:00
|
|
|
DictionaryEntry = 'FacturasCliente_IMPORTE_IVA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'RE'
|
2014-02-18 22:41:52 +00:00
|
|
|
DataType = datCurrency
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_RE'
|
2008-01-15 10:31:41 +00:00
|
|
|
DataType = datCurrency
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
2008-01-15 10:31:41 +00:00
|
|
|
DataType = datCurrency
|
2007-11-05 18:00:22 +00:00
|
|
|
DictionaryEntry = 'FacturasCliente_IMPORTE_TOTAL'
|
|
|
|
|
end
|
|
|
|
|
item
|
2008-01-15 10:31:41 +00:00
|
|
|
Name = 'OBSERVACIONES'
|
|
|
|
|
DataType = datMemo
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_OBSERVACIONES'
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NIF_CIF'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 15
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_NIF_CIF'
|
|
|
|
|
end
|
|
|
|
|
item
|
2008-01-15 10:31:41 +00:00
|
|
|
Name = 'ID_CLIENTE'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_ID_CLIENTE'
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NOMBRE'
|
|
|
|
|
DataType = datString
|
2008-01-15 10:31:41 +00:00
|
|
|
Size = 255
|
2007-11-05 18:00:22 +00:00
|
|
|
DictionaryEntry = 'FacturasCliente_NOMBRE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'CALLE'
|
|
|
|
|
DataType = datString
|
2008-01-15 10:31:41 +00:00
|
|
|
Size = 255
|
2007-11-05 18:00:22 +00:00
|
|
|
DictionaryEntry = 'FacturasCliente_CALLE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PROVINCIA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
2008-01-15 10:31:41 +00:00
|
|
|
DictionaryEntry = 'FacturasCliente_PROVINCIA'
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'POBLACION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
2008-01-15 10:31:41 +00:00
|
|
|
DictionaryEntry = 'FacturasCliente_POBLACION'
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
2008-01-15 10:31:41 +00:00
|
|
|
Name = 'CODIGO_POSTAL'
|
2007-11-05 18:00:22 +00:00
|
|
|
DataType = datString
|
|
|
|
|
Size = 10
|
2008-01-15 10:31:41 +00:00
|
|
|
DictionaryEntry = 'FacturasCliente_CODIGO_POSTAL'
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
2008-01-15 10:31:41 +00:00
|
|
|
Name = 'RECARGO_EQUIVALENCIA'
|
|
|
|
|
DataType = datSmallInt
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
2008-01-15 10:31:41 +00:00
|
|
|
Name = 'IMPORTE_NETO'
|
|
|
|
|
DataType = datCurrency
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
2008-01-15 10:31:41 +00:00
|
|
|
Name = 'IMPORTE_PORTE'
|
|
|
|
|
DataType = datCurrency
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
2008-01-15 10:31:41 +00:00
|
|
|
Name = 'FORMA_PAGO'
|
2007-11-05 18:00:22 +00:00
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
2008-06-05 18:21:13 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DATOS_BANCARIOS'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
2009-01-15 13:05:03 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'RETENCION'
|
2014-02-18 22:41:52 +00:00
|
|
|
DataType = datCurrency
|
2009-01-15 13:05:03 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_RETENCION'
|
|
|
|
|
DataType = datCurrency
|
2014-02-18 22:41:52 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'CERTIFICADO_ISO'
|
|
|
|
|
DataType = datSmallInt
|
2007-11-05 18:00:22 +00:00
|
|
|
end>
|
2008-06-05 18:21:13 +00:00
|
|
|
ReadOnly = True
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_FACTURA'
|
|
|
|
|
DataType = datInteger
|
2008-02-28 19:39:33 +00:00
|
|
|
Value = '2'
|
2007-11-05 18:00:22 +00:00
|
|
|
ParamType = daptInput
|
|
|
|
|
end>
|
|
|
|
|
Statements = <
|
|
|
|
|
item
|
|
|
|
|
Connection = 'IBX'
|
|
|
|
|
SQL =
|
2008-02-28 19:39:33 +00:00
|
|
|
'SELECT'#10' DET.ID, DET.ID_FACTURA, DET.POSICION, DET.TIPO_DETALL' +
|
2008-09-08 15:46:28 +00:00
|
|
|
'E, ARTICULOS.REFERENCIA,'#10' DET.CONCEPTO, DET.CANTIDAD, DET.UNI' +
|
2010-08-18 16:29:22 +00:00
|
|
|
'DAD_MEDIDA,'#10#10' case'#10' when (det.descuento <> 0) then (det.im' +
|
|
|
|
|
'porte_total / det.cantidad)'#10' else det.importe_unidad'#10' end ' +
|
|
|
|
|
'as importe_unidad,'#10#10' DET.DESCUENTO, DET.IMPORTE_TOTAL, DET.VI' +
|
|
|
|
|
'SIBLE'#10'FROM FACTURAS_CLIENTE_DETALLES AS DET'#10'LEFT OUTER JOIN ARTI' +
|
|
|
|
|
'CULOS ON (ARTICULOS.ID = DET.ID_ARTICULO)'#10'WHERE DET.ID_FACTURA =' +
|
|
|
|
|
' :ID_FACTURA AND DET.VISIBLE = 1 AND {Where}'#10'ORDER BY DET.ID_FAC' +
|
|
|
|
|
'TURA, DET.POSICION;'#10
|
2007-11-05 18:00:22 +00:00
|
|
|
StatementType = stSQL
|
|
|
|
|
ColumnMappings = <
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ID'
|
|
|
|
|
TableField = 'ID'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ID_FACTURA'
|
|
|
|
|
TableField = 'ID_FACTURA'
|
|
|
|
|
end
|
2008-06-11 16:35:39 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'POSICION'
|
|
|
|
|
TableField = 'POSICION'
|
|
|
|
|
end
|
2007-11-05 18:00:22 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'TIPO_DETALLE'
|
|
|
|
|
TableField = 'TIPO_DETALLE'
|
|
|
|
|
end
|
2008-06-11 16:35:39 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'REFERENCIA'
|
|
|
|
|
TableField = 'REFERENCIA'
|
|
|
|
|
end
|
2007-11-05 18:00:22 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'CONCEPTO'
|
|
|
|
|
TableField = 'CONCEPTO'
|
|
|
|
|
end
|
2008-06-11 16:35:39 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'CANTIDAD'
|
|
|
|
|
TableField = 'CANTIDAD'
|
|
|
|
|
end
|
2008-09-17 18:38:38 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'UNIDAD_MEDIDA'
|
|
|
|
|
TableField = 'UNIDAD_MEDIDA'
|
|
|
|
|
end
|
2007-11-05 18:00:22 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_UNIDAD'
|
|
|
|
|
TableField = 'IMPORTE_UNIDAD'
|
|
|
|
|
end
|
2008-06-11 16:35:39 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'DESCUENTO'
|
|
|
|
|
TableField = 'DESCUENTO'
|
|
|
|
|
end
|
2007-11-05 18:00:22 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_TOTAL'
|
|
|
|
|
TableField = 'IMPORTE_TOTAL'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'VISIBLE'
|
|
|
|
|
TableField = 'VISIBLE'
|
|
|
|
|
end>
|
|
|
|
|
end>
|
|
|
|
|
Name = 'InformeFacturasCliente_Detalles'
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID'
|
2008-01-15 10:31:41 +00:00
|
|
|
DataType = datInteger
|
2007-11-05 18:00:22 +00:00
|
|
|
InPrimaryKey = True
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_FACTURA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'POSICION'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'TIPO_DETALLE'
|
|
|
|
|
DataType = datString
|
2008-09-17 18:38:38 +00:00
|
|
|
Size = 25
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
2008-02-28 19:39:33 +00:00
|
|
|
item
|
|
|
|
|
Name = 'REFERENCIA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
2007-11-05 18:00:22 +00:00
|
|
|
item
|
|
|
|
|
Name = 'CONCEPTO'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 2000
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'CANTIDAD'
|
2008-09-30 09:59:03 +00:00
|
|
|
DataType = datFloat
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
2008-09-08 15:46:28 +00:00
|
|
|
item
|
|
|
|
|
Name = 'UNIDAD_MEDIDA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
2007-11-05 18:00:22 +00:00
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_UNIDAD'
|
2008-01-15 10:31:41 +00:00
|
|
|
DataType = datCurrency
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCUENTO'
|
|
|
|
|
DataType = datFloat
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
2008-01-15 10:31:41 +00:00
|
|
|
DataType = datCurrency
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'VISIBLE'
|
2008-01-15 10:31:41 +00:00
|
|
|
DataType = datSmallInt
|
2007-11-05 18:00:22 +00:00
|
|
|
end>
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_FACTURA'
|
|
|
|
|
Value = ''
|
|
|
|
|
ParamType = daptInput
|
|
|
|
|
end>
|
|
|
|
|
Statements = <
|
|
|
|
|
item
|
|
|
|
|
Connection = 'IBX'
|
|
|
|
|
SQL =
|
2008-06-11 16:35:39 +00:00
|
|
|
'SELECT'#10' V_RECIBOS_CLIENTE.ID_FACTURA, V_RECIBOS_CLIENTE.FECHA' +
|
|
|
|
|
'_VENCIMIENTO, V_RECIBOS_CLIENTE.IMPORTE_TOTAL'#10'FROM V_RECIBOS_CLI' +
|
|
|
|
|
'ENTE'#10'WHERE V_RECIBOS_CLIENTE.ID_FACTURA = :ID_FACTURA'#10'ORDER BY V' +
|
|
|
|
|
'_RECIBOS_CLIENTE.FECHA_VENCIMIENTO'#10
|
2007-11-05 18:00:22 +00:00
|
|
|
StatementType = stSQL
|
|
|
|
|
ColumnMappings = <
|
2008-06-11 16:35:39 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'ID_FACTURA'
|
|
|
|
|
TableField = 'ID_FACTURA'
|
|
|
|
|
end
|
2007-11-05 18:00:22 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'FECHA_VENCIMIENTO'
|
|
|
|
|
TableField = 'FECHA_VENCIMIENTO'
|
2008-06-11 16:35:39 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_TOTAL'
|
|
|
|
|
TableField = 'IMPORTE_TOTAL'
|
2007-11-05 18:00:22 +00:00
|
|
|
end>
|
|
|
|
|
end>
|
|
|
|
|
Name = 'InformeFacturasCliente_Vencimientos'
|
|
|
|
|
Fields = <
|
2008-06-11 16:35:39 +00:00
|
|
|
item
|
|
|
|
|
Name = 'ID_FACTURA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
2007-11-05 18:00:22 +00:00
|
|
|
item
|
|
|
|
|
Name = 'FECHA_VENCIMIENTO'
|
|
|
|
|
DataType = datDateTime
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
2008-06-11 16:35:39 +00:00
|
|
|
DataType = datCurrency
|
2007-11-05 18:00:22 +00:00
|
|
|
end>
|
2008-10-15 18:50:09 +00:00
|
|
|
end
|
2009-01-16 15:00:06 +00:00
|
|
|
item
|
|
|
|
|
Params = <>
|
|
|
|
|
Statements = <
|
|
|
|
|
item
|
|
|
|
|
Connection = 'IBX'
|
|
|
|
|
TargetTable = 'V_FACTURAS_CLIENTE'
|
|
|
|
|
SQL =
|
|
|
|
|
'select ID_EMPRESA,'#10'extract (year from fecha_factura) as ANO,'#10'ext' +
|
|
|
|
|
'ract (month from fecha_factura) as MES,'#10'case'#10'when extract (month' +
|
|
|
|
|
' from fecha_factura) = 1 then '#39'ENERO - '#39' || extract (year from f' +
|
|
|
|
|
'echa_factura)'#10'when extract (month from fecha_factura) = 2 then '#39 +
|
|
|
|
|
'FEBRERO - '#39' || extract (year from fecha_factura)'#10'when extract (m' +
|
|
|
|
|
'onth from fecha_factura) = 3 then '#39'MARZO - '#39' || extract (year fr' +
|
|
|
|
|
'om fecha_factura)'#10'when extract (month from fecha_factura) = 4 th' +
|
|
|
|
|
'en '#39'ABRIL - '#39' || extract (year from fecha_factura)'#10'when extract ' +
|
|
|
|
|
'(month from fecha_factura) = 5 then '#39'MAYO - '#39' || extract (year f' +
|
|
|
|
|
'rom fecha_factura)'#10'when extract (month from fecha_factura) = 6 t' +
|
|
|
|
|
'hen '#39'JUNIO - '#39' || extract (year from fecha_factura)'#10'when extract' +
|
|
|
|
|
' (month from fecha_factura) = 7 then '#39'JULIO - '#39' || extract (year' +
|
|
|
|
|
' from fecha_factura)'#10'when extract (month from fecha_factura) = 8' +
|
|
|
|
|
' then '#39'AGOSTO - '#39' || extract (year from fecha_factura)'#10'when extr' +
|
|
|
|
|
'act (month from fecha_factura) = 9 then '#39'SEPTIEMBRE - '#39' || extra' +
|
|
|
|
|
'ct (year from fecha_factura)'#10'when extract (month from fecha_fact' +
|
|
|
|
|
'ura) = 10 then '#39'OCTUBRE - '#39' || extract (year from fecha_factura)' +
|
|
|
|
|
#10'when extract (month from fecha_factura) = 11 then '#39'NOVIEMBRE - ' +
|
|
|
|
|
#39' || extract (year from fecha_factura)'#10'when extract (month from ' +
|
|
|
|
|
'fecha_factura) = 12 then '#39'DICIEMBRE - '#39' || extract (year from fe' +
|
|
|
|
|
'cha_factura)'#10'end as TITULO,'#10'REFERENCIA, ID_CLIENTE, NOMBRE, SIT' +
|
|
|
|
|
'UACION, NIF_CIF, FECHA_FACTURA, fecha_vencimiento, BASE_IMPONIBL' +
|
|
|
|
|
'E, IMPORTE_IVA, IMPORTE_TOTAL'#10#10'from V_facturas_cliente'#10'where {wh' +
|
|
|
|
|
'ere}'#10'order by ANO, MES, FECHA_FACTURA, NOMBRE'#10#10
|
|
|
|
|
StatementType = stSQL
|
|
|
|
|
ColumnMappings = <
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ID_EMPRESA'
|
|
|
|
|
TableField = 'ID_EMPRESA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'MES'
|
|
|
|
|
TableField = '<unknown>'
|
|
|
|
|
SQLOrigin = 'MES'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'TITULO'
|
|
|
|
|
TableField = '<unknown>'
|
|
|
|
|
SQLOrigin = 'TITULO'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'REFERENCIA'
|
|
|
|
|
TableField = 'REFERENCIA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ID_CLIENTE'
|
|
|
|
|
TableField = 'ID_CLIENTE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'NOMBRE'
|
|
|
|
|
TableField = 'NOMBRE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'SITUACION'
|
|
|
|
|
TableField = 'SITUACION'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'NIF_CIF'
|
|
|
|
|
TableField = 'NIF_CIF'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'FECHA_FACTURA'
|
|
|
|
|
TableField = 'FECHA_FACTURA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'BASE_IMPONIBLE'
|
|
|
|
|
TableField = 'BASE_IMPONIBLE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_IVA'
|
|
|
|
|
TableField = 'IMPORTE_IVA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_TOTAL'
|
|
|
|
|
TableField = 'IMPORTE_TOTAL'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO'
|
|
|
|
|
TableField = '<unknown>'
|
|
|
|
|
SQLOrigin = 'ANO'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'FECHA_VENCIMIENTO'
|
|
|
|
|
TableField = 'FECHA_VENCIMIENTO'
|
|
|
|
|
end>
|
|
|
|
|
end>
|
|
|
|
|
Name = 'InformeListadoFacturas'
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'MES'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'TITULO'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 19
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'REFERENCIA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_CLIENTE'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NOMBRE'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'SITUACION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 19
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NIF_CIF'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 15
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FECHA_FACTURA'
|
|
|
|
|
DataType = datDateTime
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FECHA_VENCIMIENTO'
|
|
|
|
|
DataType = datDateTime
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'BASE_IMPONIBLE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_IVA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
end
|
2008-10-15 18:50:09 +00:00
|
|
|
item
|
|
|
|
|
Params = <>
|
|
|
|
|
Statements = <
|
|
|
|
|
item
|
|
|
|
|
Connection = 'IBX'
|
2008-10-17 14:07:42 +00:00
|
|
|
TargetTable = 'V_FACTURAS_CLIENTE'
|
2008-10-15 18:50:09 +00:00
|
|
|
SQL =
|
2009-01-08 17:45:28 +00:00
|
|
|
'select ID_EMPRESA,'#10'extract (year from fecha_vencimiento) as ANO,' +
|
|
|
|
|
#10'extract (month from fecha_vencimiento) as MES,'#10'case'#10'when extrac' +
|
|
|
|
|
't (month from fecha_vencimiento) = 1 then '#39'ENERO - '#39' || extract ' +
|
|
|
|
|
'(year from fecha_vencimiento)'#10'when extract (month from fecha_ven' +
|
|
|
|
|
'cimiento) = 2 then '#39'FEBRERO - '#39' || extract (year from fecha_venc' +
|
|
|
|
|
'imiento)'#10'when extract (month from fecha_vencimiento) = 3 then '#39'M' +
|
|
|
|
|
'ARZO - '#39' || extract (year from fecha_vencimiento)'#10'when extract (' +
|
|
|
|
|
'month from fecha_vencimiento) = 4 then '#39'ABRIL - '#39' || extract (ye' +
|
|
|
|
|
'ar from fecha_vencimiento)'#10'when extract (month from fecha_vencim' +
|
|
|
|
|
'iento) = 5 then '#39'MAYO - '#39' || extract (year from fecha_vencimient' +
|
|
|
|
|
'o)'#10'when extract (month from fecha_vencimiento) = 6 then '#39'JUNIO -' +
|
|
|
|
|
' '#39' || extract (year from fecha_vencimiento)'#10'when extract (month ' +
|
|
|
|
|
'from fecha_vencimiento) = 7 then '#39'JULIO - '#39' || extract (year fro' +
|
|
|
|
|
'm fecha_vencimiento)'#10'when extract (month from fecha_vencimiento)' +
|
|
|
|
|
' = 8 then '#39'AGOSTO - '#39' || extract (year from fecha_vencimiento)'#10'w' +
|
|
|
|
|
'hen extract (month from fecha_vencimiento) = 9 then '#39'SEPTIEMBRE ' +
|
|
|
|
|
'- '#39' || extract (year from fecha_vencimiento)'#10'when extract (month' +
|
|
|
|
|
' from fecha_vencimiento) = 10 then '#39'OCTUBRE - '#39' || extract (year' +
|
|
|
|
|
' from fecha_vencimiento)'#10'when extract (month from fecha_vencimie' +
|
|
|
|
|
'nto) = 11 then '#39'NOVIEMBRE - '#39' || extract (year from fecha_vencim' +
|
|
|
|
|
'iento)'#10'when extract (month from fecha_vencimiento) = 12 then '#39'DI' +
|
|
|
|
|
'CIEMBRE - '#39' || extract (year from fecha_vencimiento)'#10'end as TITU' +
|
2009-01-16 15:00:06 +00:00
|
|
|
'LO,'#10'REFERENCIA, ID_CLIENTE, NOMBRE, SITUACION, NIF_CIF, fecha_f' +
|
|
|
|
|
'actura, fecha_vencimiento, BASE_IMPONIBLE, IMPORTE_IVA, IMPORTE_' +
|
2009-01-08 17:45:28 +00:00
|
|
|
'TOTAL'#10#10'from V_facturas_cliente'#10'where {where}'#10'order by ANO, MES, ' +
|
2009-01-16 15:00:06 +00:00
|
|
|
'fecha_vencimiento, NOMBRE'#10#10
|
2008-10-15 18:50:09 +00:00
|
|
|
StatementType = stSQL
|
|
|
|
|
ColumnMappings = <
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ID_EMPRESA'
|
|
|
|
|
TableField = 'ID_EMPRESA'
|
|
|
|
|
end
|
2009-01-16 15:00:06 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO'
|
|
|
|
|
TableField = '<unknown>'
|
|
|
|
|
SQLOrigin = 'ANO'
|
|
|
|
|
end
|
2008-10-15 18:50:09 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'MES'
|
|
|
|
|
TableField = '<unknown>'
|
|
|
|
|
SQLOrigin = 'MES'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'TITULO'
|
|
|
|
|
TableField = '<unknown>'
|
|
|
|
|
SQLOrigin = 'TITULO'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'REFERENCIA'
|
|
|
|
|
TableField = 'REFERENCIA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ID_CLIENTE'
|
|
|
|
|
TableField = 'ID_CLIENTE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'NOMBRE'
|
|
|
|
|
TableField = 'NOMBRE'
|
|
|
|
|
end
|
2008-10-17 14:07:42 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'SITUACION'
|
|
|
|
|
TableField = 'SITUACION'
|
|
|
|
|
end
|
2008-10-15 18:50:09 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'NIF_CIF'
|
|
|
|
|
TableField = 'NIF_CIF'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'FECHA_FACTURA'
|
|
|
|
|
TableField = 'FECHA_FACTURA'
|
|
|
|
|
end
|
2009-01-16 15:00:06 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'FECHA_VENCIMIENTO'
|
|
|
|
|
TableField = 'FECHA_VENCIMIENTO'
|
|
|
|
|
end
|
2008-10-15 18:50:09 +00:00
|
|
|
item
|
|
|
|
|
DatasetField = 'BASE_IMPONIBLE'
|
|
|
|
|
TableField = 'BASE_IMPONIBLE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_IVA'
|
|
|
|
|
TableField = 'IMPORTE_IVA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_TOTAL'
|
|
|
|
|
TableField = 'IMPORTE_TOTAL'
|
|
|
|
|
end>
|
|
|
|
|
end>
|
2009-01-16 15:00:06 +00:00
|
|
|
Name = 'InformeListadoFacturasPendientes'
|
2008-10-15 18:50:09 +00:00
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
2008-11-18 17:54:49 +00:00
|
|
|
item
|
|
|
|
|
Name = 'ANO'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
2008-10-15 18:50:09 +00:00
|
|
|
item
|
|
|
|
|
Name = 'MES'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'TITULO'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 19
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'REFERENCIA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_CLIENTE'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NOMBRE'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
2008-10-17 14:07:42 +00:00
|
|
|
item
|
|
|
|
|
Name = 'SITUACION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 19
|
|
|
|
|
end
|
2008-10-15 18:50:09 +00:00
|
|
|
item
|
|
|
|
|
Name = 'NIF_CIF'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 15
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FECHA_FACTURA'
|
|
|
|
|
DataType = datDateTime
|
|
|
|
|
end
|
2009-01-08 13:14:42 +00:00
|
|
|
item
|
|
|
|
|
Name = 'FECHA_VENCIMIENTO'
|
|
|
|
|
DataType = datDateTime
|
|
|
|
|
end
|
2008-10-15 18:50:09 +00:00
|
|
|
item
|
|
|
|
|
Name = 'BASE_IMPONIBLE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_IVA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
2009-01-23 15:19:26 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Params = <>
|
|
|
|
|
Statements = <
|
|
|
|
|
item
|
|
|
|
|
Connection = 'IBX'
|
|
|
|
|
TargetTable = 'V_FACTURAS_CLIENTE'
|
|
|
|
|
SQL =
|
|
|
|
|
'select ID_EMPRESA,'#10'extract (year from fecha_factura) as ANO,'#10'ext' +
|
|
|
|
|
'ract (month from fecha_factura) as MES,'#10'case'#10'when extract (month' +
|
|
|
|
|
' from fecha_factura) = 1 then '#39'ENERO - '#39' || extract (year from f' +
|
|
|
|
|
'echa_factura)'#10'when extract (month from fecha_factura) = 2 then '#39 +
|
|
|
|
|
'FEBRERO - '#39' || extract (year from fecha_factura)'#10'when extract (m' +
|
|
|
|
|
'onth from fecha_factura) = 3 then '#39'MARZO - '#39' || extract (year fr' +
|
|
|
|
|
'om fecha_factura)'#10'when extract (month from fecha_factura) = 4 th' +
|
|
|
|
|
'en '#39'ABRIL - '#39' || extract (year from fecha_factura)'#10'when extract ' +
|
|
|
|
|
'(month from fecha_factura) = 5 then '#39'MAYO - '#39' || extract (year f' +
|
|
|
|
|
'rom fecha_factura)'#10'when extract (month from fecha_factura) = 6 t' +
|
|
|
|
|
'hen '#39'JUNIO - '#39' || extract (year from fecha_factura)'#10'when extract' +
|
|
|
|
|
' (month from fecha_factura) = 7 then '#39'JULIO - '#39' || extract (year' +
|
|
|
|
|
' from fecha_factura)'#10'when extract (month from fecha_factura) = 8' +
|
|
|
|
|
' then '#39'AGOSTO - '#39' || extract (year from fecha_factura)'#10'when extr' +
|
|
|
|
|
'act (month from fecha_factura) = 9 then '#39'SEPTIEMBRE - '#39' || extra' +
|
|
|
|
|
'ct (year from fecha_factura)'#10'when extract (month from fecha_fact' +
|
|
|
|
|
'ura) = 10 then '#39'OCTUBRE - '#39' || extract (year from fecha_factura)' +
|
|
|
|
|
#10'when extract (month from fecha_factura) = 11 then '#39'NOVIEMBRE - ' +
|
|
|
|
|
#39' || extract (year from fecha_factura)'#10'when extract (month from ' +
|
|
|
|
|
'fecha_factura) = 12 then '#39'DICIEMBRE - '#39' || extract (year from fe' +
|
|
|
|
|
'cha_factura)'#10'end as TITULO,'#10'sum(BASE_IMPONIBLE) as BASE_IMPONIBL' +
|
|
|
|
|
'E,'#10'sum(IMPORTE_IVA) as IMPORTE_IVA,'#10'sum(IMPORTE_TOTAL) AS IMPORT' +
|
|
|
|
|
'E_TOTAL'#10'from V_facturas_cliente'#10'group by 1,2,3,4'#10'order by 1,2,3,' +
|
|
|
|
|
'4'#10
|
|
|
|
|
StatementType = stSQL
|
|
|
|
|
ColumnMappings = <
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ID_EMPRESA'
|
|
|
|
|
TableField = 'ID_EMPRESA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO'
|
|
|
|
|
TableField = '<unknown>'
|
|
|
|
|
SQLOrigin = 'ANO'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'MES'
|
|
|
|
|
TableField = '<unknown>'
|
|
|
|
|
SQLOrigin = 'MES'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'TITULO'
|
|
|
|
|
TableField = '<unknown>'
|
|
|
|
|
SQLOrigin = 'TITULO'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'BASE_IMPONIBLE'
|
|
|
|
|
TableField = 'BASE_IMPONIBLE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_IVA'
|
|
|
|
|
TableField = 'IMPORTE_IVA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_TOTAL'
|
|
|
|
|
TableField = 'IMPORTE_TOTAL'
|
|
|
|
|
end>
|
|
|
|
|
end>
|
|
|
|
|
Name = 'InformeListadoFacturasResumen'
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'MES'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'TITULO'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 19
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'BASE_IMPONIBLE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_IVA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
2011-02-03 18:44:02 +00:00
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end>
|
|
|
|
|
Statements = <
|
|
|
|
|
item
|
|
|
|
|
Connection = 'IBX'
|
|
|
|
|
ConnectionType = 'Interbase'
|
|
|
|
|
Default = True
|
|
|
|
|
SQL =
|
|
|
|
|
'select VALOR, DESCRIPCION, periodo1.ANO as Ano1, periodo1.IMPORT' +
|
|
|
|
|
'E_TOTAL, periodo2.ANO as Ano2, periodo2.IMPORTE_TOTAL,'#10#10'(periodo' +
|
|
|
|
|
'1.IMPORTE_TOTAL - periodo2.IMPORTE_TOTAL) as Diferencia,'#10'/*SOLO ' +
|
|
|
|
|
'COMPARAREMOS CUANDO EL SEGUNDO A'#209'O SEA DIFERENTE DE 0, comparati' +
|
|
|
|
|
'va de A'#241'o1 respecto A'#241'o2*/'#10'case'#10'when (periodo1.IMPORTE_TOTAL = 0' +
|
2014-01-24 14:28:37 +00:00
|
|
|
') then (NULL)'#10'else (100 - ((periodo2.IMPORTE_TOTAL*100)/periodo1' +
|
|
|
|
|
'.IMPORTE_TOTAL))'#10'end as Porcentaje'#10#10'FROM'#10'periodos_aux'#10'left join'#10 +
|
|
|
|
|
'(select comp1.ID_EMPRESA, comp1.ANO, TRIMESTRE as NFILA, SUM(com' +
|
|
|
|
|
'p1.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_CLIENTE comp1' +
|
|
|
|
|
#10'where ID_EMPRESA = :ID_EMPRESA1'#10'and (ANO = :ANO1)'#10'group by 1,2,' +
|
|
|
|
|
'3'#10'order by 1 desc,2 asc) periodo1 on (VALOR = periodo1.NFILA)'#10#10'l' +
|
|
|
|
|
'eft join'#10'(select comp2.ID_EMPRESA, comp2.ANO, TRIMESTRE as NFILA' +
|
|
|
|
|
', SUM(comp2.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_CLIE' +
|
|
|
|
|
'NTE comp2'#10'where ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'grou' +
|
|
|
|
|
'p by 1,2,3'#10'order by 1 desc,2 asc) periodo2 on (VALOR = periodo2.' +
|
|
|
|
|
'NFILA)'#10#10'where periodo= '#39'TRIMESTRAL'#39#10'order by valor asc'#10#10
|
2011-02-03 18:44:02 +00:00
|
|
|
StatementType = stSQL
|
|
|
|
|
ColumnMappings = <
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'VALOR'
|
|
|
|
|
TableField = 'VALOR'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DESCRIPCION'
|
|
|
|
|
TableField = 'DESCRIPCION'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO1'
|
|
|
|
|
TableField = 'ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_TOTAL'
|
|
|
|
|
TableField = 'IMPORTE_TOTAL'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO2'
|
|
|
|
|
TableField = 'ANO2'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_TOTAL1'
|
|
|
|
|
TableField = 'IMPORTE_TOTAL1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DIFERENCIA'
|
|
|
|
|
TableField = 'DIFERENCIA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE'
|
|
|
|
|
TableField = 'PORCENTAJE'
|
|
|
|
|
end>
|
|
|
|
|
end>
|
|
|
|
|
Name = 'InformeListadoFacturasGrafCompTrimestral'
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'VALOR'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCRIPCION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 20
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end>
|
|
|
|
|
Statements = <
|
|
|
|
|
item
|
|
|
|
|
Connection = 'IBX'
|
|
|
|
|
ConnectionType = 'Interbase'
|
|
|
|
|
Default = True
|
|
|
|
|
SQL =
|
|
|
|
|
'select VALOR, DESCRIPCION, periodo1.ANO as Ano1, periodo1.IMPORT' +
|
|
|
|
|
'E_TOTAL, periodo2.ANO as Ano2, periodo2.IMPORTE_TOTAL,'#10#10'(periodo' +
|
|
|
|
|
'1.IMPORTE_TOTAL - periodo2.IMPORTE_TOTAL) as Diferencia,'#10'/*SOLO ' +
|
|
|
|
|
'COMPARAREMOS CUANDO EL SEGUNDO A'#209'O SEA DIFERENTE DE 0, comparati' +
|
|
|
|
|
'va de A'#241'o1 respecto A'#241'o2*/'#10'case'#10'when (periodo1.IMPORTE_TOTAL = 0' +
|
2014-01-24 14:28:37 +00:00
|
|
|
') then (NULL)'#10'else (100 - ((periodo2.IMPORTE_TOTAL*100)/periodo1' +
|
|
|
|
|
'.IMPORTE_TOTAL))'#10'end as Porcentaje'#10#10'FROM'#10'periodos_aux'#10'left join'#10 +
|
|
|
|
|
'(select comp1.ID_EMPRESA, comp1.ANO, SEMESTRE as NFILA, SUM(comp' +
|
|
|
|
|
'1.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_CLIENTE comp1'#10 +
|
|
|
|
|
'where ID_EMPRESA = :ID_EMPRESA1'#10'and (ANO = :ANO1)'#10'group by 1,2,3' +
|
|
|
|
|
#10'order by 1 desc,2 asc) periodo1 on (VALOR = periodo1.NFILA)'#10#10'le' +
|
|
|
|
|
'ft join'#10'(select comp2.ID_EMPRESA, comp2.ANO, SEMESTRE as NFILA, ' +
|
|
|
|
|
'SUM(comp2.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_CLIENT' +
|
|
|
|
|
'E comp2'#10'where ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'group ' +
|
|
|
|
|
'by 1,2,3'#10'order by 1 desc,2 asc) periodo2 on (VALOR = periodo2.NF' +
|
|
|
|
|
'ILA)'#10#10'where periodo= '#39'SEMESTRAL'#39#10'order by valor asc'#10#10
|
2011-02-03 18:44:02 +00:00
|
|
|
StatementType = stSQL
|
|
|
|
|
ColumnMappings = <
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'VALOR'
|
|
|
|
|
TableField = 'VALOR'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DESCRIPCION'
|
|
|
|
|
TableField = 'DESCRIPCION'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO1'
|
|
|
|
|
TableField = 'ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_TOTAL'
|
|
|
|
|
TableField = 'IMPORTE_TOTAL'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO2'
|
|
|
|
|
TableField = 'ANO2'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_TOTAL1'
|
|
|
|
|
TableField = 'IMPORTE_TOTAL1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DIFERENCIA'
|
|
|
|
|
TableField = 'DIFERENCIA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE'
|
|
|
|
|
TableField = 'PORCENTAJE'
|
|
|
|
|
end>
|
|
|
|
|
end>
|
|
|
|
|
Name = 'InformeListadoFacturasGrafCompSemestral'
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'VALOR'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCRIPCION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 20
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NTOP'
|
|
|
|
|
Value = ''
|
|
|
|
|
end>
|
|
|
|
|
Statements = <
|
|
|
|
|
item
|
|
|
|
|
Connection = 'IBX'
|
|
|
|
|
ConnectionType = 'Interbase'
|
|
|
|
|
Default = True
|
|
|
|
|
SQL =
|
|
|
|
|
'select P.ANO, C.REFERENCIA, COALESCE(C.NOMBRE, P.NOMBRE) as NOMB' +
|
|
|
|
|
'RE, p.Importe_TOTAL_ANO,'#10'COUNT(P.FECHA_FACTURA) as NUMFAC, SUM(P' +
|
|
|
|
|
'.IMPORTE_TOTAL) as IMPORTE_TOTAL,'#10'((SUM(P.IMPORTE_TOTAL)*100)/p.' +
|
|
|
|
|
'Importe_TOTAL_ANO) as PORCENTAJE'#10#10'from V_INF_FAC_CLIENTE P'#10'left ' +
|
|
|
|
|
'join CONTACTOS C on P.ID_CLIENTE = C.ID'#10#10'where p.ID_EMPRESA = :I' +
|
2011-02-04 12:13:34 +00:00
|
|
|
'D_EMPRESA'#10'and P.ANO = :ANO'#10'group by 1,2,3,4'#10'order by 1,6 desc'#10'ro' +
|
2011-02-03 18:44:02 +00:00
|
|
|
'ws 1 to :NTOP'#10#10#10
|
|
|
|
|
StatementType = stSQL
|
|
|
|
|
ColumnMappings = <
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO'
|
|
|
|
|
TableField = 'ANO'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'REFERENCIA'
|
|
|
|
|
TableField = 'REFERENCIA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'NOMBRE'
|
|
|
|
|
TableField = 'NOMBRE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_TOTAL'
|
|
|
|
|
TableField = 'IMPORTE_TOTAL'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE'
|
|
|
|
|
TableField = 'PORCENTAJE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_TOTAL_ANO'
|
|
|
|
|
TableField = 'IMPORTE_TOTAL_ANO'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'NUMFAC'
|
|
|
|
|
TableField = 'NUMFAC'
|
|
|
|
|
end>
|
|
|
|
|
end>
|
|
|
|
|
Name = 'InformeListadoClientesMayorFacturacionResumen'
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'REFERENCIA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NOMBRE'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL_ANO'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NUMFAC'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
2011-03-02 18:06:54 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end>
|
|
|
|
|
Statements = <
|
|
|
|
|
item
|
|
|
|
|
Connection = 'IBX'
|
|
|
|
|
ConnectionType = 'Interbase'
|
|
|
|
|
Default = True
|
|
|
|
|
SQL =
|
|
|
|
|
'select VALOR, DESCRIPCION,'#10'periodo_ingresos1.ANO as Ano1, period' +
|
|
|
|
|
'o_ingresos1.IMPORTE_TOTAL as INGRESOS_ANO1,'#10'periodo_gastos1.ANO ' +
|
|
|
|
|
'as Ano1, periodo_gastos1.IMPORTE_TOTAL as GASTOS_ANO1,'#10'(coalesce' +
|
|
|
|
|
'(periodo_ingresos1.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos1.' +
|
2011-03-03 18:24:58 +00:00
|
|
|
'IMPORTE_TOTAL, 0)) as BENEFICIO_ANO1,'#10'case'#10'when (periodo_ingreso' +
|
|
|
|
|
's1.IMPORTE_TOTAL = 0) then (100 - ((coalesce(periodo_ingresos1.I' +
|
|
|
|
|
'MPORTE_TOTAL, 0) - coalesce(periodo_gastos1.IMPORTE_TOTAL, 0))*1' +
|
|
|
|
|
'00))'#10'else ((((coalesce(periodo_ingresos1.IMPORTE_TOTAL, 0) - coa' +
|
|
|
|
|
'lesce(periodo_gastos1.IMPORTE_TOTAL, 0))*100)/periodo_ingresos1.' +
|
|
|
|
|
'IMPORTE_TOTAL))'#10'end as Porcentaje_Beneficios_Ano1,'#10#10'periodo_ingr' +
|
|
|
|
|
'esos2.ANO as Ano2, periodo_ingresos2.IMPORTE_TOTAL as INGRESOS_A' +
|
|
|
|
|
'NO2,'#10'periodo_gastos2.ANO as Ano2, periodo_gastos2.IMPORTE_TOTAL ' +
|
|
|
|
|
'as GASTOS_ANO2,'#10'(coalesce(periodo_ingresos2.IMPORTE_TOTAL, 0) - ' +
|
|
|
|
|
'coalesce(periodo_gastos2.IMPORTE_TOTAL, 0)) as BENEFICIO_ANO2,'#10'c' +
|
|
|
|
|
'ase'#10'when (periodo_ingresos2.IMPORTE_TOTAL = 0) then (100 - ((coa' +
|
|
|
|
|
'lesce(periodo_ingresos2.IMPORTE_TOTAL, 0) - coalesce(periodo_gas' +
|
|
|
|
|
'tos2.IMPORTE_TOTAL, 0))*100))'#10'else ((((coalesce(periodo_ingresos' +
|
2011-03-02 18:06:54 +00:00
|
|
|
'2.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos2.IMPORTE_TOTAL, 0)' +
|
2011-03-03 18:24:58 +00:00
|
|
|
')*100)/periodo_ingresos2.IMPORTE_TOTAL))'#10'end as Porcentaje_Benef' +
|
|
|
|
|
'icios_Ano2,'#10#10'(periodo_ingresos1.IMPORTE_TOTAL - periodo_ingresos' +
|
|
|
|
|
'2.IMPORTE_TOTAL) as Diferencia_Ingresos,'#10'case'#10'when (periodo_ingr' +
|
|
|
|
|
'esos2.IMPORTE_TOTAL = 0) then (100 - ((periodo_ingresos1.IMPORTE' +
|
|
|
|
|
'_TOTAL - periodo_ingresos2.IMPORTE_TOTAL)*100))'#10'else (((periodo_' +
|
|
|
|
|
'ingresos1.IMPORTE_TOTAL - periodo_ingresos2.IMPORTE_TOTAL)*100)/' +
|
|
|
|
|
'periodo_ingresos2.IMPORTE_TOTAL)'#10'end as Porcentaje_Aumento_Ingre' +
|
|
|
|
|
'sos,'#10#10'(periodo_gastos1.IMPORTE_TOTAL - periodo_gastos2.IMPORTE_T' +
|
|
|
|
|
'OTAL) as Diferencia_Gastos,'#10'case'#10'when (periodo_gastos2.IMPORTE_T' +
|
|
|
|
|
'OTAL = 0) then (100 - ((periodo_gastos1.IMPORTE_TOTAL - periodo_' +
|
|
|
|
|
'gastos2.IMPORTE_TOTAL)*100))'#10'else (((periodo_gastos1.IMPORTE_TOT' +
|
|
|
|
|
'AL - periodo_gastos2.IMPORTE_TOTAL)*100)/periodo_gastos2.IMPORTE' +
|
2011-03-10 11:20:34 +00:00
|
|
|
'_TOTAL)'#10'end as Porcentaje_Aumento_Gastos,'#10#10'case when periodo_ing' +
|
|
|
|
|
'resos2.ANO is null then 0'#10'else'#10'((coalesce(periodo_ingresos1.IMPO' +
|
|
|
|
|
'RTE_TOTAL, 0) - coalesce(periodo_gastos1.IMPORTE_TOTAL, 0)) - (c' +
|
|
|
|
|
'oalesce(periodo_ingresos2.IMPORTE_TOTAL, 0) - coalesce(periodo_g' +
|
|
|
|
|
'astos2.IMPORTE_TOTAL, 0)))'#10'end as Diferencia_Beneficios,'#10#10'case w' +
|
|
|
|
|
'hen periodo_ingresos2.ANO is null then 0'#10'else'#10'case'#10'when ((coales' +
|
|
|
|
|
'ce(periodo_ingresos2.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos' +
|
|
|
|
|
'2.IMPORTE_TOTAL, 0)) = 0) then (100 - (((coalesce(periodo_ingres' +
|
|
|
|
|
'os1.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos1.IMPORTE_TOTAL, ' +
|
|
|
|
|
'0)) - (coalesce(periodo_ingresos2.IMPORTE_TOTAL, 0) - coalesce(p' +
|
|
|
|
|
'eriodo_gastos2.IMPORTE_TOTAL, 0)))*100))'#10'else (((((coalesce(peri' +
|
|
|
|
|
'odo_ingresos1.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos1.IMPOR' +
|
|
|
|
|
'TE_TOTAL, 0)) - (coalesce(periodo_ingresos2.IMPORTE_TOTAL, 0) - ' +
|
|
|
|
|
'coalesce(periodo_gastos2.IMPORTE_TOTAL, 0)))*100) / (coalesce(pe' +
|
|
|
|
|
'riodo_ingresos2.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos2.IMP' +
|
|
|
|
|
'ORTE_TOTAL, 0))))'#10'end'#10'end as Porcentaje_Aumento_Beneficios'#10#10#10'FRO' +
|
|
|
|
|
'M'#10'periodos_aux'#10'left join'#10'(select comp1.ID_EMPRESA, comp1.ANO, TR' +
|
2014-01-24 14:28:37 +00:00
|
|
|
'IMESTRE as NFILA, SUM(comp1.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'fro' +
|
|
|
|
|
'm V_INF_FAC_CLIENTE comp1'#10'where ID_EMPRESA = :ID_EMPRESA1'#10'and (A' +
|
|
|
|
|
'NO = :ANO1)'#10'group by 1,2,3'#10'order by 1 desc,2 asc) periodo_ingres' +
|
|
|
|
|
'os1 on (VALOR = periodo_ingresos1.NFILA)'#10#10'left join'#10'(select comp' +
|
|
|
|
|
'2.ID_EMPRESA, comp2.ANO, TRIMESTRE as NFILA, SUM(comp2.BASE_IMPO' +
|
|
|
|
|
'NIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_PROVEEDOR comp2'#10'where ID_' +
|
|
|
|
|
'EMPRESA = :ID_EMPRESA1'#10'and (ANO = :ANO1)'#10'group by 1,2,3'#10'order by' +
|
|
|
|
|
' 1 desc,2 asc) periodo_gastos1 on (VALOR = periodo_gastos1.NFILA' +
|
|
|
|
|
')'#10#10'left join'#10'(select comp3.ID_EMPRESA, comp3.ANO, TRIMESTRE as N' +
|
|
|
|
|
'FILA, SUM(comp3.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_' +
|
|
|
|
|
'CLIENTE comp3'#10'where ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10 +
|
|
|
|
|
'group by 1,2,3'#10'order by 1 desc,2 asc) periodo_ingresos2 on (VALO' +
|
|
|
|
|
'R = periodo_ingresos2.NFILA)'#10#10'left join'#10'(select comp4.ID_EMPRESA' +
|
|
|
|
|
', comp4.ANO, TRIMESTRE as NFILA, SUM(comp4.BASE_IMPONIBLE) as IM' +
|
|
|
|
|
'PORTE_TOTAL'#10'from V_INF_FAC_PROVEEDOR comp4'#10'where ID_EMPRESA = :I' +
|
|
|
|
|
'D_EMPRESA2'#10'and (ANO = :ANO2)'#10'group by 1,2,3'#10'order by 1 desc,2 as' +
|
|
|
|
|
'c) periodo_gastos2 on (VALOR = periodo_gastos2.NFILA)'#10#10#10'where pe' +
|
|
|
|
|
'riodo= '#39'TRIMESTRAL'#39#10'order by valor asc'#10
|
2011-03-02 18:06:54 +00:00
|
|
|
StatementType = stSQL
|
|
|
|
|
ColumnMappings = <
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'VALOR'
|
|
|
|
|
TableField = 'VALOR'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DESCRIPCION'
|
|
|
|
|
TableField = 'DESCRIPCION'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO1'
|
|
|
|
|
TableField = 'ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO2'
|
|
|
|
|
TableField = 'ANO2'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'INGRESOS_ANO1'
|
|
|
|
|
TableField = 'INGRESOS_ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO11'
|
|
|
|
|
TableField = 'ANO11'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'GASTOS_ANO1'
|
|
|
|
|
TableField = 'GASTOS_ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'BENEFICIO_ANO1'
|
|
|
|
|
TableField = 'BENEFICIO_ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'INGRESOS_ANO2'
|
|
|
|
|
TableField = 'INGRESOS_ANO2'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO21'
|
|
|
|
|
TableField = 'ANO21'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'GASTOS_ANO2'
|
|
|
|
|
TableField = 'GASTOS_ANO2'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'BENEFICIO_ANO2'
|
|
|
|
|
TableField = 'BENEFICIO_ANO2'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DIFERENCIA_INGRESOS'
|
|
|
|
|
TableField = 'DIFERENCIA_INGRESOS'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE_AUMENTO_INGRESOS'
|
|
|
|
|
TableField = 'PORCENTAJE_AUMENTO_INGRESOS'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DIFERENCIA_GASTOS'
|
|
|
|
|
TableField = 'DIFERENCIA_GASTOS'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE_AUMENTO_GASTOS'
|
|
|
|
|
TableField = 'PORCENTAJE_AUMENTO_GASTOS'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DIFERENCIA_BENEFICIOS'
|
|
|
|
|
TableField = 'DIFERENCIA_BENEFICIOS'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE_AUMENTO_BENEFICIOS'
|
|
|
|
|
TableField = 'PORCENTAJE_AUMENTO_BENEFICIOS'
|
2011-03-03 18:24:58 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE_BENEFICIOS_ANO1'
|
|
|
|
|
TableField = 'PORCENTAJE_BENEFICIOS_ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE_BENEFICIOS_ANO2'
|
|
|
|
|
TableField = 'PORCENTAJE_BENEFICIOS_ANO2'
|
2011-03-02 18:06:54 +00:00
|
|
|
end>
|
|
|
|
|
end>
|
|
|
|
|
Name = 'InformeListadoBeneficiosGrafCompTrimestral'
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'VALOR'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCRIPCION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 20
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'INGRESOS_ANO1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO11'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'GASTOS_ANO1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'BENEFICIO_ANO1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
2011-03-03 18:24:58 +00:00
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_BENEFICIOS_ANO1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
2011-03-02 18:06:54 +00:00
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'INGRESOS_ANO2'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO21'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'GASTOS_ANO2'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'BENEFICIO_ANO2'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
2011-03-03 18:24:58 +00:00
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_BENEFICIOS_ANO2'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
2011-03-02 18:06:54 +00:00
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA_INGRESOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_AUMENTO_INGRESOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA_GASTOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_AUMENTO_GASTOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA_BENEFICIOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_AUMENTO_BENEFICIOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end>
|
|
|
|
|
Statements = <
|
|
|
|
|
item
|
|
|
|
|
Connection = 'IBX'
|
|
|
|
|
ConnectionType = 'Interbase'
|
|
|
|
|
Default = True
|
|
|
|
|
SQL =
|
|
|
|
|
'select VALOR, DESCRIPCION,'#10'periodo_ingresos1.ANO as Ano1, period' +
|
|
|
|
|
'o_ingresos1.IMPORTE_TOTAL as INGRESOS_ANO1,'#10'periodo_gastos1.ANO ' +
|
|
|
|
|
'as Ano1, periodo_gastos1.IMPORTE_TOTAL as GASTOS_ANO1,'#10'(coalesce' +
|
|
|
|
|
'(periodo_ingresos1.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos1.' +
|
2011-03-03 18:24:58 +00:00
|
|
|
'IMPORTE_TOTAL, 0)) as BENEFICIO_ANO1,'#10'case'#10'when (periodo_ingreso' +
|
|
|
|
|
's1.IMPORTE_TOTAL = 0) then (100 - ((coalesce(periodo_ingresos1.I' +
|
|
|
|
|
'MPORTE_TOTAL, 0) - coalesce(periodo_gastos1.IMPORTE_TOTAL, 0))*1' +
|
|
|
|
|
'00))'#10'else ((((coalesce(periodo_ingresos1.IMPORTE_TOTAL, 0) - coa' +
|
|
|
|
|
'lesce(periodo_gastos1.IMPORTE_TOTAL, 0))*100)/periodo_ingresos1.' +
|
|
|
|
|
'IMPORTE_TOTAL))'#10'end as Porcentaje_Beneficios_Ano1,'#10#10'periodo_ingr' +
|
|
|
|
|
'esos2.ANO as Ano2, periodo_ingresos2.IMPORTE_TOTAL as INGRESOS_A' +
|
|
|
|
|
'NO2,'#10'periodo_gastos2.ANO as Ano2, periodo_gastos2.IMPORTE_TOTAL ' +
|
|
|
|
|
'as GASTOS_ANO2,'#10'(coalesce(periodo_ingresos2.IMPORTE_TOTAL, 0) - ' +
|
|
|
|
|
'coalesce(periodo_gastos2.IMPORTE_TOTAL, 0)) as BENEFICIO_ANO2,'#10'c' +
|
|
|
|
|
'ase'#10'when (periodo_ingresos2.IMPORTE_TOTAL = 0) then (100 - ((coa' +
|
|
|
|
|
'lesce(periodo_ingresos2.IMPORTE_TOTAL, 0) - coalesce(periodo_gas' +
|
|
|
|
|
'tos2.IMPORTE_TOTAL, 0))*100))'#10'else ((((coalesce(periodo_ingresos' +
|
2011-03-02 18:06:54 +00:00
|
|
|
'2.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos2.IMPORTE_TOTAL, 0)' +
|
2011-03-03 18:24:58 +00:00
|
|
|
')*100)/periodo_ingresos2.IMPORTE_TOTAL))'#10'end as Porcentaje_Benef' +
|
|
|
|
|
'icios_Ano2,'#10#10'(periodo_ingresos1.IMPORTE_TOTAL - periodo_ingresos' +
|
|
|
|
|
'2.IMPORTE_TOTAL) as Diferencia_Ingresos,'#10'case'#10'when (periodo_ingr' +
|
|
|
|
|
'esos2.IMPORTE_TOTAL = 0) then (100 - ((periodo_ingresos1.IMPORTE' +
|
|
|
|
|
'_TOTAL - periodo_ingresos2.IMPORTE_TOTAL)*100))'#10'else (((periodo_' +
|
|
|
|
|
'ingresos1.IMPORTE_TOTAL - periodo_ingresos2.IMPORTE_TOTAL)*100)/' +
|
|
|
|
|
'periodo_ingresos2.IMPORTE_TOTAL)'#10'end as Porcentaje_Aumento_Ingre' +
|
|
|
|
|
'sos,'#10#10'(periodo_gastos1.IMPORTE_TOTAL - periodo_gastos2.IMPORTE_T' +
|
|
|
|
|
'OTAL) as Diferencia_Gastos,'#10'case'#10'when (periodo_gastos2.IMPORTE_T' +
|
|
|
|
|
'OTAL = 0) then (100 - ((periodo_gastos1.IMPORTE_TOTAL - periodo_' +
|
|
|
|
|
'gastos2.IMPORTE_TOTAL)*100))'#10'else (((periodo_gastos1.IMPORTE_TOT' +
|
|
|
|
|
'AL - periodo_gastos2.IMPORTE_TOTAL)*100)/periodo_gastos2.IMPORTE' +
|
2011-03-08 12:18:42 +00:00
|
|
|
'_TOTAL)'#10'end as Porcentaje_Aumento_Gastos,'#10#10'case when periodo_ing' +
|
|
|
|
|
'resos2.ANO is null then 0'#10'else'#10'((coalesce(periodo_ingresos1.IMPO' +
|
|
|
|
|
'RTE_TOTAL, 0) - coalesce(periodo_gastos1.IMPORTE_TOTAL, 0)) - (c' +
|
|
|
|
|
'oalesce(periodo_ingresos2.IMPORTE_TOTAL, 0) - coalesce(periodo_g' +
|
|
|
|
|
'astos2.IMPORTE_TOTAL, 0)))'#10'end as Diferencia_Beneficios,'#10#10'case w' +
|
|
|
|
|
'hen periodo_ingresos2.ANO is null then 0'#10'else'#10'case'#10'when ((coales' +
|
|
|
|
|
'ce(periodo_ingresos2.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos' +
|
|
|
|
|
'2.IMPORTE_TOTAL, 0)) = 0) then (100 - (((coalesce(periodo_ingres' +
|
|
|
|
|
'os1.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos1.IMPORTE_TOTAL, ' +
|
|
|
|
|
'0)) - (coalesce(periodo_ingresos2.IMPORTE_TOTAL, 0) - coalesce(p' +
|
|
|
|
|
'eriodo_gastos2.IMPORTE_TOTAL, 0)))*100))'#10'else (((((coalesce(peri' +
|
|
|
|
|
'odo_ingresos1.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos1.IMPOR' +
|
|
|
|
|
'TE_TOTAL, 0)) - (coalesce(periodo_ingresos2.IMPORTE_TOTAL, 0) - ' +
|
|
|
|
|
'coalesce(periodo_gastos2.IMPORTE_TOTAL, 0)))*100) / (coalesce(pe' +
|
|
|
|
|
'riodo_ingresos2.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos2.IMP' +
|
|
|
|
|
'ORTE_TOTAL, 0))))'#10'end'#10'end as Porcentaje_Aumento_Beneficios'#10#10'FROM' +
|
|
|
|
|
#10'periodos_aux'#10'left join'#10'(select comp1.ID_EMPRESA, comp1.ANO, MES' +
|
2014-01-24 14:28:37 +00:00
|
|
|
' as NFILA, SUM(comp1.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF' +
|
|
|
|
|
'_FAC_CLIENTE comp1'#10'where ID_EMPRESA = :ID_EMPRESA1'#10'and (ANO = :A' +
|
|
|
|
|
'NO1)'#10'group by 1,2,3'#10'order by 1 desc,2 asc) periodo_ingresos1 on ' +
|
|
|
|
|
'(VALOR = periodo_ingresos1.NFILA)'#10#10'left join'#10'(select comp2.ID_EM' +
|
|
|
|
|
'PRESA, comp2.ANO, MES as NFILA, SUM(comp2.BASE_IMPONIBLE) as IMP' +
|
|
|
|
|
'ORTE_TOTAL'#10'from V_INF_FAC_PROVEEDOR comp2'#10'where ID_EMPRESA = :ID' +
|
|
|
|
|
'_EMPRESA1'#10'and (ANO = :ANO1)'#10'group by 1,2,3'#10'order by 1 desc,2 asc' +
|
|
|
|
|
') periodo_gastos1 on (VALOR = periodo_gastos1.NFILA)'#10#10'left join'#10 +
|
|
|
|
|
'(select comp3.ID_EMPRESA, comp3.ANO, MES as NFILA, SUM(comp3.BAS' +
|
|
|
|
|
'E_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_CLIENTE comp3'#10'where' +
|
|
|
|
|
' ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'group by 1,2,3'#10'orde' +
|
|
|
|
|
'r by 1 desc,2 asc) periodo_ingresos2 on (VALOR = periodo_ingreso' +
|
|
|
|
|
's2.NFILA)'#10#10'left join'#10'(select comp4.ID_EMPRESA, comp4.ANO, MES as' +
|
|
|
|
|
' NFILA, SUM(comp4.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FA' +
|
|
|
|
|
'C_PROVEEDOR comp4'#10'where ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :AN' +
|
|
|
|
|
'O2)'#10'group by 1,2,3'#10'order by 1 desc,2 asc) periodo_gastos2 on (VA' +
|
|
|
|
|
'LOR = periodo_gastos2.NFILA)'#10#10#10'where periodo= '#39'MENSUAL'#39#10'order by' +
|
|
|
|
|
' valor asc'#10
|
2011-03-02 18:06:54 +00:00
|
|
|
StatementType = stSQL
|
|
|
|
|
ColumnMappings = <
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'VALOR'
|
|
|
|
|
TableField = 'VALOR'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DESCRIPCION'
|
|
|
|
|
TableField = 'DESCRIPCION'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO1'
|
|
|
|
|
TableField = 'ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO2'
|
|
|
|
|
TableField = 'ANO2'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'INGRESOS_ANO1'
|
|
|
|
|
TableField = 'INGRESOS_ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO11'
|
|
|
|
|
TableField = 'ANO11'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'GASTOS_ANO1'
|
|
|
|
|
TableField = 'GASTOS_ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'BENEFICIO_ANO1'
|
|
|
|
|
TableField = 'BENEFICIO_ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'INGRESOS_ANO2'
|
|
|
|
|
TableField = 'INGRESOS_ANO2'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO21'
|
|
|
|
|
TableField = 'ANO21'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'GASTOS_ANO2'
|
|
|
|
|
TableField = 'GASTOS_ANO2'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'BENEFICIO_ANO2'
|
|
|
|
|
TableField = 'BENEFICIO_ANO2'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DIFERENCIA_INGRESOS'
|
|
|
|
|
TableField = 'DIFERENCIA_INGRESOS'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE_AUMENTO_INGRESOS'
|
|
|
|
|
TableField = 'PORCENTAJE_AUMENTO_INGRESOS'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DIFERENCIA_GASTOS'
|
|
|
|
|
TableField = 'DIFERENCIA_GASTOS'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE_AUMENTO_GASTOS'
|
|
|
|
|
TableField = 'PORCENTAJE_AUMENTO_GASTOS'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DIFERENCIA_BENEFICIOS'
|
|
|
|
|
TableField = 'DIFERENCIA_BENEFICIOS'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE_AUMENTO_BENEFICIOS'
|
|
|
|
|
TableField = 'PORCENTAJE_AUMENTO_BENEFICIOS'
|
2011-03-03 18:24:58 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE_BENEFICIOS_ANO1'
|
|
|
|
|
TableField = 'PORCENTAJE_BENEFICIOS_ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE_BENEFICIOS_ANO2'
|
|
|
|
|
TableField = 'PORCENTAJE_BENEFICIOS_ANO2'
|
2011-03-02 18:06:54 +00:00
|
|
|
end>
|
|
|
|
|
end>
|
|
|
|
|
Name = 'InformeListadoBeneficiosGrafCompMensual'
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'VALOR'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCRIPCION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 20
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'INGRESOS_ANO1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO11'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'GASTOS_ANO1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'BENEFICIO_ANO1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
2011-03-03 18:24:58 +00:00
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_BENEFICIOS_ANO1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
2011-03-02 18:06:54 +00:00
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'INGRESOS_ANO2'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO21'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'GASTOS_ANO2'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'BENEFICIO_ANO2'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
2011-03-03 18:24:58 +00:00
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_BENEFICIOS_ANO2'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
2011-03-02 18:06:54 +00:00
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA_INGRESOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_AUMENTO_INGRESOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA_GASTOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_AUMENTO_GASTOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA_BENEFICIOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_AUMENTO_BENEFICIOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end>
|
|
|
|
|
Statements = <
|
|
|
|
|
item
|
|
|
|
|
Connection = 'IBX'
|
|
|
|
|
ConnectionType = 'Interbase'
|
|
|
|
|
Default = True
|
|
|
|
|
SQL =
|
|
|
|
|
'select VALOR, DESCRIPCION,'#10'periodo_ingresos1.ANO as Ano1, period' +
|
|
|
|
|
'o_ingresos1.IMPORTE_TOTAL as INGRESOS_ANO1,'#10'periodo_gastos1.ANO ' +
|
|
|
|
|
'as Ano1, periodo_gastos1.IMPORTE_TOTAL as GASTOS_ANO1,'#10'(coalesce' +
|
|
|
|
|
'(periodo_ingresos1.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos1.' +
|
2011-03-03 18:24:58 +00:00
|
|
|
'IMPORTE_TOTAL, 0)) as BENEFICIO_ANO1,'#10'case'#10'when (periodo_ingreso' +
|
|
|
|
|
's1.IMPORTE_TOTAL = 0) then (100 - ((coalesce(periodo_ingresos1.I' +
|
|
|
|
|
'MPORTE_TOTAL, 0) - coalesce(periodo_gastos1.IMPORTE_TOTAL, 0))*1' +
|
|
|
|
|
'00))'#10'else ((((coalesce(periodo_ingresos1.IMPORTE_TOTAL, 0) - coa' +
|
|
|
|
|
'lesce(periodo_gastos1.IMPORTE_TOTAL, 0))*100)/periodo_ingresos1.' +
|
|
|
|
|
'IMPORTE_TOTAL))'#10'end as Porcentaje_Beneficios_Ano1,'#10#10'periodo_ingr' +
|
|
|
|
|
'esos2.ANO as Ano2, periodo_ingresos2.IMPORTE_TOTAL as INGRESOS_A' +
|
|
|
|
|
'NO2,'#10'periodo_gastos2.ANO as Ano2, periodo_gastos2.IMPORTE_TOTAL ' +
|
|
|
|
|
'as GASTOS_ANO2,'#10'(coalesce(periodo_ingresos2.IMPORTE_TOTAL, 0) - ' +
|
|
|
|
|
'coalesce(periodo_gastos2.IMPORTE_TOTAL, 0)) as BENEFICIO_ANO2,'#10'c' +
|
|
|
|
|
'ase'#10'when (periodo_ingresos2.IMPORTE_TOTAL = 0) then (100 - ((coa' +
|
|
|
|
|
'lesce(periodo_ingresos2.IMPORTE_TOTAL, 0) - coalesce(periodo_gas' +
|
|
|
|
|
'tos2.IMPORTE_TOTAL, 0))*100))'#10'else ((((coalesce(periodo_ingresos' +
|
2011-03-02 18:06:54 +00:00
|
|
|
'2.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos2.IMPORTE_TOTAL, 0)' +
|
2011-03-03 18:24:58 +00:00
|
|
|
')*100)/periodo_ingresos2.IMPORTE_TOTAL))'#10'end as Porcentaje_Benef' +
|
|
|
|
|
'icios_Ano2,'#10#10'(periodo_ingresos1.IMPORTE_TOTAL - periodo_ingresos' +
|
|
|
|
|
'2.IMPORTE_TOTAL) as Diferencia_Ingresos,'#10'case'#10'when (periodo_ingr' +
|
|
|
|
|
'esos2.IMPORTE_TOTAL = 0) then (100 - ((periodo_ingresos1.IMPORTE' +
|
|
|
|
|
'_TOTAL - periodo_ingresos2.IMPORTE_TOTAL)*100))'#10'else (((periodo_' +
|
|
|
|
|
'ingresos1.IMPORTE_TOTAL - periodo_ingresos2.IMPORTE_TOTAL)*100)/' +
|
|
|
|
|
'periodo_ingresos2.IMPORTE_TOTAL)'#10'end as Porcentaje_Aumento_Ingre' +
|
|
|
|
|
'sos,'#10#10'(periodo_gastos1.IMPORTE_TOTAL - periodo_gastos2.IMPORTE_T' +
|
|
|
|
|
'OTAL) as Diferencia_Gastos,'#10'case'#10'when (periodo_gastos2.IMPORTE_T' +
|
|
|
|
|
'OTAL = 0) then (100 - ((periodo_gastos1.IMPORTE_TOTAL - periodo_' +
|
|
|
|
|
'gastos2.IMPORTE_TOTAL)*100))'#10'else (((periodo_gastos1.IMPORTE_TOT' +
|
|
|
|
|
'AL - periodo_gastos2.IMPORTE_TOTAL)*100)/periodo_gastos2.IMPORTE' +
|
2011-03-10 11:20:34 +00:00
|
|
|
'_TOTAL)'#10'end as Porcentaje_Aumento_Gastos,'#10#10'case when periodo_ing' +
|
|
|
|
|
'resos2.ANO is null then 0'#10'else'#10'((coalesce(periodo_ingresos1.IMPO' +
|
|
|
|
|
'RTE_TOTAL, 0) - coalesce(periodo_gastos1.IMPORTE_TOTAL, 0)) - (c' +
|
|
|
|
|
'oalesce(periodo_ingresos2.IMPORTE_TOTAL, 0) - coalesce(periodo_g' +
|
|
|
|
|
'astos2.IMPORTE_TOTAL, 0)))'#10'end as Diferencia_Beneficios,'#10#10'case w' +
|
|
|
|
|
'hen periodo_ingresos2.ANO is null then 0'#10'else'#10'case'#10'when ((coales' +
|
|
|
|
|
'ce(periodo_ingresos2.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos' +
|
|
|
|
|
'2.IMPORTE_TOTAL, 0)) = 0) then (100 - (((coalesce(periodo_ingres' +
|
|
|
|
|
'os1.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos1.IMPORTE_TOTAL, ' +
|
|
|
|
|
'0)) - (coalesce(periodo_ingresos2.IMPORTE_TOTAL, 0) - coalesce(p' +
|
|
|
|
|
'eriodo_gastos2.IMPORTE_TOTAL, 0)))*100))'#10'else (((((coalesce(peri' +
|
|
|
|
|
'odo_ingresos1.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos1.IMPOR' +
|
|
|
|
|
'TE_TOTAL, 0)) - (coalesce(periodo_ingresos2.IMPORTE_TOTAL, 0) - ' +
|
|
|
|
|
'coalesce(periodo_gastos2.IMPORTE_TOTAL, 0)))*100) / (coalesce(pe' +
|
|
|
|
|
'riodo_ingresos2.IMPORTE_TOTAL, 0) - coalesce(periodo_gastos2.IMP' +
|
|
|
|
|
'ORTE_TOTAL, 0))))'#10'end'#10'end as Porcentaje_Aumento_Beneficios'#10#10#10'FRO' +
|
|
|
|
|
'M'#10'periodos_aux'#10'left join'#10'(select comp1.ID_EMPRESA, comp1.ANO, SE' +
|
2014-01-24 14:28:37 +00:00
|
|
|
'MESTRE as NFILA, SUM(comp1.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from' +
|
|
|
|
|
' V_INF_FAC_CLIENTE comp1'#10'where ID_EMPRESA = :ID_EMPRESA1'#10'and (AN' +
|
|
|
|
|
'O = :ANO1)'#10'group by 1,2,3'#10'order by 1 desc,2 asc) periodo_ingreso' +
|
|
|
|
|
's1 on (VALOR = periodo_ingresos1.NFILA)'#10#10'left join'#10'(select comp2' +
|
|
|
|
|
'.ID_EMPRESA, comp2.ANO, SEMESTRE as NFILA, SUM(comp2.BASE_IMPONI' +
|
|
|
|
|
'BLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_PROVEEDOR comp2'#10'where ID_EM' +
|
|
|
|
|
'PRESA = :ID_EMPRESA1'#10'and (ANO = :ANO1)'#10'group by 1,2,3'#10'order by 1' +
|
|
|
|
|
' desc,2 asc) periodo_gastos1 on (VALOR = periodo_gastos1.NFILA)'#10 +
|
|
|
|
|
#10'left join'#10'(select comp3.ID_EMPRESA, comp3.ANO, SEMESTRE as NFIL' +
|
|
|
|
|
'A, SUM(comp3.BASE_IMPONIBLE) as IMPORTE_TOTAL'#10'from V_INF_FAC_CLI' +
|
|
|
|
|
'ENTE comp3'#10'where ID_EMPRESA = :ID_EMPRESA2'#10'and (ANO = :ANO2)'#10'gro' +
|
|
|
|
|
'up by 1,2,3'#10'order by 1 desc,2 asc) periodo_ingresos2 on (VALOR =' +
|
|
|
|
|
' periodo_ingresos2.NFILA)'#10#10'left join'#10'(select comp4.ID_EMPRESA, c' +
|
|
|
|
|
'omp4.ANO, SEMESTRE as NFILA, SUM(comp4.BASE_IMPONIBLE) as IMPORT' +
|
|
|
|
|
'E_TOTAL'#10'from V_INF_FAC_PROVEEDOR comp4'#10'where ID_EMPRESA = :ID_EM' +
|
|
|
|
|
'PRESA2'#10'and (ANO = :ANO2)'#10'group by 1,2,3'#10'order by 1 desc,2 asc) p' +
|
|
|
|
|
'eriodo_gastos2 on (VALOR = periodo_gastos2.NFILA)'#10#10#10'where period' +
|
|
|
|
|
'o= '#39'SEMESTRAL'#39#10'order by valor asc'#10
|
2011-03-02 18:06:54 +00:00
|
|
|
StatementType = stSQL
|
|
|
|
|
ColumnMappings = <
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'VALOR'
|
|
|
|
|
TableField = 'VALOR'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DESCRIPCION'
|
|
|
|
|
TableField = 'DESCRIPCION'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO1'
|
|
|
|
|
TableField = 'ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO2'
|
|
|
|
|
TableField = 'ANO2'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'INGRESOS_ANO1'
|
|
|
|
|
TableField = 'INGRESOS_ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO11'
|
|
|
|
|
TableField = 'ANO11'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'GASTOS_ANO1'
|
|
|
|
|
TableField = 'GASTOS_ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'BENEFICIO_ANO1'
|
|
|
|
|
TableField = 'BENEFICIO_ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'INGRESOS_ANO2'
|
|
|
|
|
TableField = 'INGRESOS_ANO2'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ANO21'
|
|
|
|
|
TableField = 'ANO21'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'GASTOS_ANO2'
|
|
|
|
|
TableField = 'GASTOS_ANO2'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'BENEFICIO_ANO2'
|
|
|
|
|
TableField = 'BENEFICIO_ANO2'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DIFERENCIA_INGRESOS'
|
|
|
|
|
TableField = 'DIFERENCIA_INGRESOS'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE_AUMENTO_INGRESOS'
|
|
|
|
|
TableField = 'PORCENTAJE_AUMENTO_INGRESOS'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DIFERENCIA_GASTOS'
|
|
|
|
|
TableField = 'DIFERENCIA_GASTOS'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE_AUMENTO_GASTOS'
|
|
|
|
|
TableField = 'PORCENTAJE_AUMENTO_GASTOS'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DIFERENCIA_BENEFICIOS'
|
|
|
|
|
TableField = 'DIFERENCIA_BENEFICIOS'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE_AUMENTO_BENEFICIOS'
|
|
|
|
|
TableField = 'PORCENTAJE_AUMENTO_BENEFICIOS'
|
2011-03-03 18:24:58 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE_BENEFICIOS_ANO1'
|
|
|
|
|
TableField = 'PORCENTAJE_BENEFICIOS_ANO1'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'PORCENTAJE_BENEFICIOS_ANO2'
|
|
|
|
|
TableField = 'PORCENTAJE_BENEFICIOS_ANO2'
|
2011-03-02 18:06:54 +00:00
|
|
|
end>
|
|
|
|
|
end>
|
|
|
|
|
Name = 'InformeListadoBeneficiosGrafCompSemestral'
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'VALOR'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCRIPCION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 20
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'INGRESOS_ANO1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO11'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'GASTOS_ANO1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'BENEFICIO_ANO1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
2011-03-03 18:24:58 +00:00
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_BENEFICIOS_ANO1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
2011-03-02 18:06:54 +00:00
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'INGRESOS_ANO2'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO21'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'GASTOS_ANO2'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'BENEFICIO_ANO2'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
2011-03-03 18:24:58 +00:00
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_BENEFICIOS_ANO2'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
2011-03-02 18:06:54 +00:00
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA_INGRESOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_AUMENTO_INGRESOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA_GASTOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_AUMENTO_GASTOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA_BENEFICIOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_AUMENTO_BENEFICIOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
2013-02-27 15:46:39 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Params = <>
|
|
|
|
|
Statements = <
|
|
|
|
|
item
|
|
|
|
|
Connection = 'IBX'
|
|
|
|
|
TargetTable = 'V_FACTURAS_CLIENTE'
|
|
|
|
|
SQL =
|
|
|
|
|
'select f.ID_EMPRESA, f.ID_TIPO_IVA, t.descripcion, f.IVA, f.RE,'#10 +
|
|
|
|
|
'sum(f.IMPORTE_IVA) as IMPORTE_IVA,'#10'sum(f.IMPORTE_RE) as IMPORTE_' +
|
|
|
|
|
'RE,'#10'sum(f.BASE_IMPONIBLE) as BASE_IMPONIBLE, sum((f.IMPORTE_TOTA' +
|
|
|
|
|
'L - f.BASE_IMPONIBLE)) as CUOTA_DEVENGADA'#10#10'from v_facturas_clien' +
|
|
|
|
|
'te f'#10'left join tipos_iva t on (t.id = f.id_tipo_iva)'#10'where {whe' +
|
|
|
|
|
're}'#10'group by 1,2,3,4,5'#10'order by 4'#10
|
|
|
|
|
StatementType = stSQL
|
|
|
|
|
ColumnMappings = <
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ID_EMPRESA'
|
|
|
|
|
TableField = 'ID_EMPRESA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'BASE_IMPONIBLE'
|
|
|
|
|
TableField = 'BASE_IMPONIBLE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_IVA'
|
|
|
|
|
TableField = 'IMPORTE_IVA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ID_TIPO_IVA'
|
|
|
|
|
TableField = 'ID_TIPO_IVA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DESCRIPCION'
|
|
|
|
|
TableField = '<unknown>'
|
|
|
|
|
SQLOrigin = 'DESCRIPCION'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IVA'
|
|
|
|
|
TableField = 'IVA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'RE'
|
|
|
|
|
TableField = 'RE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_RE'
|
|
|
|
|
TableField = 'IMPORTE_RE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'CUOTA_DEVENGADA'
|
|
|
|
|
TableField = '<unknown>'
|
|
|
|
|
SQLOrigin = 'CUOTA_DEVENGADA'
|
|
|
|
|
end>
|
|
|
|
|
end>
|
|
|
|
|
Name = 'InformeListadoIVAComparativoFacturasCli'
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_TIPO_IVA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCRIPCION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IVA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'RE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_IVA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_RE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'BASE_IMPONIBLE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'CUOTA_DEVENGADA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Params = <>
|
|
|
|
|
Statements = <
|
|
|
|
|
item
|
|
|
|
|
Connection = 'IBX'
|
|
|
|
|
SQL =
|
2013-11-06 17:30:00 +00:00
|
|
|
'select f.id_empresa, t.referencia, t.descripcion, d.IVA, sum(d.I' +
|
|
|
|
|
'MPORTE_IVA) as IMPORTE_IVA,'#10'sum(d.importe_total) as BASE_IMPONIB' +
|
|
|
|
|
'LE, sum(d.IMPORTE_IVA) as CUOTA_DEDUCIBLE'#10'from facturas_proveedo' +
|
|
|
|
|
'r_detalles as d'#10'left outer join facturas_proveedor as f on (f.id' +
|
|
|
|
|
' = d.id_factura)'#10'left outer join tipos_iva as t on (t.id = d.id_' +
|
|
|
|
|
'tipo_iva)'#10'where {where}'#10'group by 1, 2, 3, 4'#10'order by 1, 3'#10
|
2013-02-27 15:46:39 +00:00
|
|
|
StatementType = stSQL
|
|
|
|
|
ColumnMappings = <
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'ID_EMPRESA'
|
|
|
|
|
TableField = 'ID_EMPRESA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'DESCRIPCION'
|
2013-11-06 17:30:00 +00:00
|
|
|
TableField = 'DESCRIPCION'
|
2013-02-27 15:46:39 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IVA'
|
|
|
|
|
TableField = 'IVA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'IMPORTE_IVA'
|
|
|
|
|
TableField = 'IMPORTE_IVA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'BASE_IMPONIBLE'
|
|
|
|
|
TableField = 'BASE_IMPONIBLE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'CUOTA_DEDUCIBLE'
|
2013-11-06 17:30:00 +00:00
|
|
|
TableField = 'CUOTA_DEDUCIBLE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
DatasetField = 'REFERENCIA'
|
|
|
|
|
TableField = 'REFERENCIA'
|
2013-02-27 15:46:39 +00:00
|
|
|
end>
|
|
|
|
|
end>
|
|
|
|
|
Name = 'InformeListadoIVAComparativoFacturasPro'
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
2013-11-06 17:30:00 +00:00
|
|
|
Name = 'REFERENCIA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
2013-02-27 15:46:39 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCRIPCION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IVA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_IVA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'BASE_IMPONIBLE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'CUOTA_DEDUCIBLE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
2011-02-03 18:44:02 +00:00
|
|
|
end>
|
|
|
|
|
JoinDataTables = <>
|
|
|
|
|
UnionDataTables = <>
|
|
|
|
|
Commands = <>
|
|
|
|
|
RelationShips = <>
|
|
|
|
|
UpdateRules = <>
|
|
|
|
|
Version = 0
|
|
|
|
|
Left = 48
|
|
|
|
|
Top = 16
|
|
|
|
|
end
|
|
|
|
|
object DataDictionary: TDADataDictionary
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_ID'
|
|
|
|
|
DataType = datAutoInc
|
|
|
|
|
Required = True
|
|
|
|
|
DisplayLabel = 'ID'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_ID_EMPRESA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
DisplayLabel = 'ID_EMPRESA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_ID_CONTRATO'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
DisplayLabel = 'ID_CONTRATO'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_FECHA_FACTURA'
|
|
|
|
|
DataType = datDateTime
|
|
|
|
|
DisplayLabel = 'Fecha de las factura'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_VENCIMIENTO'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
DisplayLabel = 'Vencimiento'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_SITUACION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
DisplayLabel = 'Situaci'#243'n'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_BASE_IMPONIBLE'
|
|
|
|
|
DataType = datFloat
|
|
|
|
|
DisplayLabel = 'Base imponible'
|
|
|
|
|
Alignment = taRightJustify
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_IMPORTE_DESCUENTO'
|
|
|
|
|
DataType = datFloat
|
|
|
|
|
DisplayLabel = 'Importe dto.'
|
|
|
|
|
Alignment = taRightJustify
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_IMPORTE_IVA'
|
|
|
|
|
DataType = datFloat
|
|
|
|
|
DisplayLabel = 'Importe IVA'
|
|
|
|
|
Alignment = taRightJustify
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_IMPORTE_TOTAL'
|
|
|
|
|
DataType = datFloat
|
|
|
|
|
DisplayLabel = 'Importe total'
|
|
|
|
|
Alignment = taRightJustify
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_FORMA_PAGO'
|
|
|
|
|
DataType = datMemo
|
|
|
|
|
DisplayLabel = 'Forma de pago'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_ID_CLIENTE'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
DisplayLabel = 'ID_CLIENTE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_NIF_CIF'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 15
|
|
|
|
|
DisplayLabel = 'NIF/CIF'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_CODIGO_POSTAL'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 10
|
|
|
|
|
DisplayLabel = 'C'#243'd. postal'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_FECHA_ALTA'
|
|
|
|
|
DataType = datDateTime
|
|
|
|
|
DisplayLabel = 'FECHA_ALTA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_FECHA_MODIFICACION'
|
|
|
|
|
DataType = datDateTime
|
|
|
|
|
DisplayLabel = 'FECHA_MODIFICACION'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_OBSERVACIONES'
|
|
|
|
|
DataType = datMemo
|
|
|
|
|
DisplayLabel = 'Observaciones'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_NOMBRE'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 100
|
|
|
|
|
DisplayLabel = 'Cliente'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_CALLE'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 150
|
|
|
|
|
DisplayLabel = 'Direcci'#243'n'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_PROVINCIA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 30
|
|
|
|
|
DisplayLabel = 'Provincia'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_POBLACION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 150
|
|
|
|
|
DisplayLabel = 'Poblaci'#243'n'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_IVA'
|
|
|
|
|
DataType = datFloat
|
|
|
|
|
DisplayLabel = 'IVA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_USUARIO'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 100
|
|
|
|
|
DisplayLabel = 'USUARIO'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_REFERENCIA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 20
|
|
|
|
|
DisplayLabel = 'Referencia'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_DESCUENTO'
|
|
|
|
|
DataType = datFloat
|
|
|
|
|
DisplayLabel = 'Dto.'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_Detalles_ID'
|
|
|
|
|
DataType = datAutoInc
|
|
|
|
|
Required = True
|
|
|
|
|
DisplayLabel = 'ID'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_Detalles_ID_FACTURA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
DisplayLabel = 'ID_FACTURA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_Detalles_TIPO_DETALLE'
|
|
|
|
|
DataType = datString
|
2008-09-17 18:38:38 +00:00
|
|
|
Size = 25
|
2007-11-05 18:00:22 +00:00
|
|
|
DisplayLabel = 'Tipo detalle'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_Detalles_CONCEPTO'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 2000
|
|
|
|
|
DisplayLabel = 'Concepto'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_Detalles_IMPORTE_UNIDAD'
|
|
|
|
|
DataType = datFloat
|
|
|
|
|
DisplayLabel = 'Importe unidad'
|
|
|
|
|
Alignment = taRightJustify
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_Detalles_IMPORTE_TOTAL'
|
|
|
|
|
DataType = datFloat
|
|
|
|
|
DisplayLabel = 'Importe total'
|
|
|
|
|
Alignment = taRightJustify
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_Detalles_VISIBLE'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
DisplayLabel = #191'Visible?'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_Detalles_POSICION'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
DisplayLabel = 'Posici'#243'n'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FacturasCliente_Detalles_CANTIDAD'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
DisplayLabel = 'Cantidad'
|
|
|
|
|
end>
|
|
|
|
|
Left = 46
|
|
|
|
|
Top = 158
|
|
|
|
|
end
|
|
|
|
|
object frxDBCabecera: TfrxDBDataset
|
|
|
|
|
UserName = 'frxDBCabecera'
|
2009-01-29 14:27:14 +00:00
|
|
|
CloseDataSource = False
|
2008-02-28 19:39:33 +00:00
|
|
|
DataSource = DADSCabecera
|
2009-04-17 09:34:26 +00:00
|
|
|
BCDToCurrency = False
|
2007-11-05 18:00:22 +00:00
|
|
|
Left = 264
|
|
|
|
|
Top = 16
|
|
|
|
|
end
|
|
|
|
|
object frxDBDetalles: TfrxDBDataset
|
|
|
|
|
UserName = 'frxDBDetalles'
|
2009-01-29 14:27:14 +00:00
|
|
|
CloseDataSource = False
|
2008-02-28 19:39:33 +00:00
|
|
|
DataSource = DADSDetalles
|
2009-04-17 09:34:26 +00:00
|
|
|
BCDToCurrency = False
|
2007-11-05 18:00:22 +00:00
|
|
|
Left = 344
|
|
|
|
|
Top = 16
|
|
|
|
|
end
|
2007-12-11 16:24:53 +00:00
|
|
|
object IBDatabase1: TIBDatabase
|
2008-02-28 19:39:33 +00:00
|
|
|
DatabaseName = 'C:\Codigo Tecsitel\Output\Debug\Database\FACTUGES.FDB'
|
2007-12-11 16:24:53 +00:00
|
|
|
Params.Strings = (
|
|
|
|
|
'user_name=sysdba'
|
|
|
|
|
'password=masterkey'
|
|
|
|
|
'lc_ctype=ISO8859_1')
|
|
|
|
|
LoginPrompt = False
|
|
|
|
|
DefaultTransaction = IBTransaction1
|
2011-02-03 18:44:02 +00:00
|
|
|
Left = 32
|
|
|
|
|
Top = 256
|
2007-12-11 16:24:53 +00:00
|
|
|
end
|
|
|
|
|
object IBTransaction1: TIBTransaction
|
2011-02-03 18:44:02 +00:00
|
|
|
Left = 32
|
|
|
|
|
Top = 312
|
2007-12-11 16:24:53 +00:00
|
|
|
end
|
|
|
|
|
object DataSource1: TDataSource
|
|
|
|
|
DataSet = cabecera
|
2011-02-03 18:44:02 +00:00
|
|
|
Left = 200
|
|
|
|
|
Top = 256
|
2007-12-11 16:24:53 +00:00
|
|
|
end
|
|
|
|
|
object DataSource2: TDataSource
|
|
|
|
|
DataSet = detalles
|
2011-02-03 18:44:02 +00:00
|
|
|
Left = 200
|
|
|
|
|
Top = 312
|
2007-12-11 16:24:53 +00:00
|
|
|
end
|
|
|
|
|
object cabecera: TIBQuery
|
|
|
|
|
Database = IBDatabase1
|
|
|
|
|
Transaction = IBTransaction1
|
|
|
|
|
SQL.Strings = (
|
2008-01-15 10:31:41 +00:00
|
|
|
'select'
|
|
|
|
|
' v_facturas_cliente.id, v_facturas_cliente.id_empresa,'
|
|
|
|
|
' v_facturas_cliente.referencia, v_facturas_cliente.tipo,'
|
|
|
|
|
|
|
|
|
|
' v_facturas_cliente.fecha_factura, v_facturas_cliente.base_imp' +
|
|
|
|
|
'onible,'
|
|
|
|
|
' v_facturas_cliente.situacion, v_facturas_cliente.descuento,'
|
|
|
|
|
' v_facturas_cliente.importe_descuento, v_facturas_cliente.iva,'
|
|
|
|
|
' v_facturas_cliente.importe_iva, v_facturas_cliente.re,'
|
|
|
|
|
|
|
|
|
|
' v_facturas_cliente.importe_re, v_facturas_cliente.importe_tot' +
|
|
|
|
|
'al,'
|
|
|
|
|
' v_facturas_cliente.observaciones, v_facturas_cliente.nif_cif,'
|
|
|
|
|
' v_facturas_cliente.id_cliente, v_facturas_cliente.nombre,'
|
|
|
|
|
' v_facturas_cliente.calle, v_facturas_cliente.provincia,'
|
|
|
|
|
|
|
|
|
|
' v_facturas_cliente.poblacion, v_facturas_cliente.codigo_posta' +
|
|
|
|
|
'l,'
|
2007-12-11 16:24:53 +00:00
|
|
|
|
2008-01-15 10:31:41 +00:00
|
|
|
' v_facturas_cliente.recargo_equivalencia, v_facturas_cliente.i' +
|
|
|
|
|
'mporte_neto,'
|
|
|
|
|
|
|
|
|
|
' v_facturas_cliente.importe_porte, formas_pago.descripcion as ' +
|
2008-06-11 16:35:39 +00:00
|
|
|
'FORMA_PAGO,'
|
|
|
|
|
' v_facturas_cliente.DATOS_BANCARIOS'
|
2008-01-15 10:31:41 +00:00
|
|
|
'from v_facturas_cliente'
|
|
|
|
|
|
|
|
|
|
' left outer join formas_pago on (formas_pago.id = v_facturas_c' +
|
|
|
|
|
'liente.id_forma_pago)'
|
2008-02-28 19:39:33 +00:00
|
|
|
'WHERE V_FACTURAS_CLIENTE.ID = 2')
|
2011-02-03 18:44:02 +00:00
|
|
|
Left = 120
|
|
|
|
|
Top = 256
|
2008-01-15 10:31:41 +00:00
|
|
|
object cabeceraID: TIntegerField
|
|
|
|
|
FieldName = 'ID'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."ID"'
|
|
|
|
|
end
|
|
|
|
|
object cabeceraID_EMPRESA: TIntegerField
|
|
|
|
|
FieldName = 'ID_EMPRESA'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."ID_EMPRESA"'
|
|
|
|
|
end
|
|
|
|
|
object cabeceraREFERENCIA: TIBStringField
|
|
|
|
|
FieldName = 'REFERENCIA'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."REFERENCIA"'
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
object cabeceraTIPO: TIBStringField
|
|
|
|
|
FieldKind = fkInternalCalc
|
|
|
|
|
FieldName = 'TIPO'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."TIPO"'
|
|
|
|
|
ProviderFlags = []
|
|
|
|
|
ReadOnly = True
|
|
|
|
|
FixedChar = True
|
|
|
|
|
Size = 1
|
|
|
|
|
end
|
|
|
|
|
object cabeceraFECHA_FACTURA: TDateField
|
|
|
|
|
FieldName = 'FECHA_FACTURA'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."FECHA_FACTURA"'
|
|
|
|
|
end
|
|
|
|
|
object cabeceraBASE_IMPONIBLE: TIBBCDField
|
|
|
|
|
FieldName = 'BASE_IMPONIBLE'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."BASE_IMPONIBLE"'
|
|
|
|
|
Precision = 18
|
|
|
|
|
Size = 2
|
|
|
|
|
end
|
|
|
|
|
object cabeceraSITUACION: TIBStringField
|
|
|
|
|
FieldKind = fkInternalCalc
|
|
|
|
|
FieldName = 'SITUACION'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."SITUACION"'
|
|
|
|
|
ProviderFlags = []
|
|
|
|
|
ReadOnly = True
|
|
|
|
|
FixedChar = True
|
|
|
|
|
Size = 19
|
|
|
|
|
end
|
|
|
|
|
object cabeceraDESCUENTO: TFloatField
|
|
|
|
|
FieldName = 'DESCUENTO'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."DESCUENTO"'
|
|
|
|
|
end
|
|
|
|
|
object cabeceraIMPORTE_DESCUENTO: TIBBCDField
|
|
|
|
|
FieldName = 'IMPORTE_DESCUENTO'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."IMPORTE_DESCUENTO"'
|
|
|
|
|
Precision = 18
|
|
|
|
|
Size = 2
|
|
|
|
|
end
|
|
|
|
|
object cabeceraIVA: TFloatField
|
|
|
|
|
FieldName = 'IVA'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."IVA"'
|
|
|
|
|
end
|
|
|
|
|
object cabeceraIMPORTE_IVA: TIBBCDField
|
|
|
|
|
FieldName = 'IMPORTE_IVA'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."IMPORTE_IVA"'
|
|
|
|
|
Precision = 18
|
|
|
|
|
Size = 2
|
|
|
|
|
end
|
|
|
|
|
object cabeceraRE: TFloatField
|
|
|
|
|
FieldName = 'RE'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."RE"'
|
|
|
|
|
end
|
|
|
|
|
object cabeceraIMPORTE_RE: TIBBCDField
|
|
|
|
|
FieldName = 'IMPORTE_RE'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."IMPORTE_RE"'
|
|
|
|
|
Precision = 18
|
|
|
|
|
Size = 2
|
|
|
|
|
end
|
|
|
|
|
object cabeceraIMPORTE_TOTAL: TIBBCDField
|
|
|
|
|
FieldName = 'IMPORTE_TOTAL'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."IMPORTE_TOTAL"'
|
|
|
|
|
Precision = 18
|
|
|
|
|
Size = 2
|
|
|
|
|
end
|
|
|
|
|
object cabeceraOBSERVACIONES: TMemoField
|
|
|
|
|
FieldName = 'OBSERVACIONES'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."OBSERVACIONES"'
|
|
|
|
|
ProviderFlags = [pfInUpdate]
|
|
|
|
|
BlobType = ftMemo
|
|
|
|
|
Size = 8
|
|
|
|
|
end
|
|
|
|
|
object cabeceraNIF_CIF: TIBStringField
|
|
|
|
|
FieldName = 'NIF_CIF'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."NIF_CIF"'
|
|
|
|
|
Size = 15
|
|
|
|
|
end
|
|
|
|
|
object cabeceraID_CLIENTE: TIntegerField
|
|
|
|
|
FieldName = 'ID_CLIENTE'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."ID_CLIENTE"'
|
|
|
|
|
end
|
|
|
|
|
object cabeceraNOMBRE: TIBStringField
|
|
|
|
|
FieldName = 'NOMBRE'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."NOMBRE"'
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
object cabeceraCALLE: TIBStringField
|
|
|
|
|
FieldName = 'CALLE'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."CALLE"'
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
object cabeceraPROVINCIA: TIBStringField
|
|
|
|
|
FieldName = 'PROVINCIA'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."PROVINCIA"'
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
object cabeceraPOBLACION: TIBStringField
|
|
|
|
|
FieldName = 'POBLACION'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."POBLACION"'
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
object cabeceraCODIGO_POSTAL: TIBStringField
|
|
|
|
|
FieldName = 'CODIGO_POSTAL'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."CODIGO_POSTAL"'
|
|
|
|
|
Size = 10
|
|
|
|
|
end
|
|
|
|
|
object cabeceraRECARGO_EQUIVALENCIA: TSmallintField
|
|
|
|
|
FieldName = 'RECARGO_EQUIVALENCIA'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."RECARGO_EQUIVALENCIA"'
|
|
|
|
|
end
|
|
|
|
|
object cabeceraIMPORTE_NETO: TIBBCDField
|
|
|
|
|
FieldName = 'IMPORTE_NETO'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."IMPORTE_NETO"'
|
|
|
|
|
Precision = 18
|
|
|
|
|
Size = 2
|
|
|
|
|
end
|
|
|
|
|
object cabeceraIMPORTE_PORTE: TIBBCDField
|
|
|
|
|
FieldName = 'IMPORTE_PORTE'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."IMPORTE_PORTE"'
|
|
|
|
|
Precision = 18
|
|
|
|
|
Size = 2
|
|
|
|
|
end
|
|
|
|
|
object cabeceraFORMA_PAGO: TIBStringField
|
|
|
|
|
FieldName = 'FORMA_PAGO'
|
|
|
|
|
Origin = '"FORMAS_PAGO"."DESCRIPCION"'
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
2008-06-11 16:35:39 +00:00
|
|
|
object cabeceraDATOS_BANCARIOS: TIBStringField
|
|
|
|
|
FieldName = 'DATOS_BANCARIOS'
|
|
|
|
|
Origin = '"V_FACTURAS_CLIENTE"."DATOS_BANCARIOS"'
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
2007-12-11 16:24:53 +00:00
|
|
|
end
|
|
|
|
|
object detalles: TIBQuery
|
|
|
|
|
Database = IBDatabase1
|
|
|
|
|
Transaction = IBTransaction1
|
|
|
|
|
SQL.Strings = (
|
2008-01-15 10:31:41 +00:00
|
|
|
'SELECT'
|
2008-02-28 19:39:33 +00:00
|
|
|
|
|
|
|
|
' DET.ID, DET.ID_FACTURA, DET.POSICION, DET.TIPO_DETALLE, ARTI' +
|
|
|
|
|
'CULOS.REFERENCIA,'
|
|
|
|
|
|
|
|
|
|
' DET.CONCEPTO, DET.CANTIDAD, DET.IMPORTE_UNIDAD, DET.DESCUENT' +
|
|
|
|
|
'O,'
|
|
|
|
|
' DET.IMPORTE_TOTAL, DET.VISIBLE'
|
|
|
|
|
'FROM FACTURAS_CLIENTE_DETALLES DET'
|
|
|
|
|
'LEFT OUTER JOIN ARTICULOS ON (ARTICULOS.ID = DET.ID_ARTICULO)'
|
|
|
|
|
'WHERE DET.ID_FACTURA = 2 AND DET.VISIBLE = 1 '
|
|
|
|
|
'ORDER BY DET.ID_FACTURA, DET.POSICION;')
|
2011-02-03 18:44:02 +00:00
|
|
|
Left = 120
|
|
|
|
|
Top = 312
|
2008-01-15 10:31:41 +00:00
|
|
|
object detallesID: TIntegerField
|
|
|
|
|
FieldName = 'ID'
|
|
|
|
|
Origin = '"FACTURAS_CLIENTE_DETALLES"."ID"'
|
|
|
|
|
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
|
|
|
|
|
Required = True
|
|
|
|
|
end
|
|
|
|
|
object detallesID_FACTURA: TIntegerField
|
|
|
|
|
FieldName = 'ID_FACTURA'
|
|
|
|
|
Origin = '"FACTURAS_CLIENTE_DETALLES"."ID_FACTURA"'
|
|
|
|
|
Required = True
|
|
|
|
|
end
|
|
|
|
|
object detallesPOSICION: TIntegerField
|
|
|
|
|
FieldName = 'POSICION'
|
|
|
|
|
Origin = '"FACTURAS_CLIENTE_DETALLES"."POSICION"'
|
|
|
|
|
end
|
|
|
|
|
object detallesTIPO_DETALLE: TIBStringField
|
|
|
|
|
FieldName = 'TIPO_DETALLE'
|
|
|
|
|
Origin = '"FACTURAS_CLIENTE_DETALLES"."TIPO_DETALLE"'
|
|
|
|
|
Size = 10
|
|
|
|
|
end
|
|
|
|
|
object detallesCONCEPTO: TIBStringField
|
|
|
|
|
FieldName = 'CONCEPTO'
|
|
|
|
|
Origin = '"FACTURAS_CLIENTE_DETALLES"."CONCEPTO"'
|
|
|
|
|
Size = 2000
|
|
|
|
|
end
|
|
|
|
|
object detallesCANTIDAD: TIntegerField
|
|
|
|
|
FieldName = 'CANTIDAD'
|
|
|
|
|
Origin = '"FACTURAS_CLIENTE_DETALLES"."CANTIDAD"'
|
|
|
|
|
end
|
|
|
|
|
object detallesIMPORTE_UNIDAD: TIBBCDField
|
|
|
|
|
FieldName = 'IMPORTE_UNIDAD'
|
|
|
|
|
Origin = '"FACTURAS_CLIENTE_DETALLES"."IMPORTE_UNIDAD"'
|
|
|
|
|
Precision = 18
|
|
|
|
|
Size = 2
|
|
|
|
|
end
|
|
|
|
|
object detallesDESCUENTO: TFloatField
|
|
|
|
|
FieldName = 'DESCUENTO'
|
|
|
|
|
Origin = '"FACTURAS_CLIENTE_DETALLES"."DESCUENTO"'
|
|
|
|
|
end
|
|
|
|
|
object detallesIMPORTE_TOTAL: TIBBCDField
|
|
|
|
|
FieldName = 'IMPORTE_TOTAL'
|
|
|
|
|
Origin = '"FACTURAS_CLIENTE_DETALLES"."IMPORTE_TOTAL"'
|
|
|
|
|
Precision = 18
|
|
|
|
|
Size = 2
|
|
|
|
|
end
|
|
|
|
|
object detallesVISIBLE: TSmallintField
|
|
|
|
|
FieldName = 'VISIBLE'
|
|
|
|
|
Origin = '"FACTURAS_CLIENTE_DETALLES"."VISIBLE"'
|
|
|
|
|
end
|
2008-02-28 19:39:33 +00:00
|
|
|
object detallesREFERENCIA: TIBStringField
|
|
|
|
|
FieldName = 'REFERENCIA'
|
|
|
|
|
Origin = '"ARTICULOS"."REFERENCIA"'
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
2008-01-15 10:31:41 +00:00
|
|
|
end
|
|
|
|
|
object DADSCabecera: TDADataSource
|
|
|
|
|
DataSet = tbl_Cabecera.Dataset
|
|
|
|
|
DataTable = tbl_Cabecera
|
|
|
|
|
Left = 264
|
|
|
|
|
Top = 72
|
|
|
|
|
end
|
|
|
|
|
object DADSDetalles: TDADataSource
|
|
|
|
|
DataSet = tbl_Detalles.Dataset
|
|
|
|
|
DataTable = tbl_Detalles
|
|
|
|
|
Left = 344
|
|
|
|
|
Top = 72
|
|
|
|
|
end
|
|
|
|
|
object tbl_Detalles: TDAMemDataTable
|
|
|
|
|
RemoteUpdatesOptions = []
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
InPrimaryKey = True
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_FACTURA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'POSICION'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'TIPO_DETALLE'
|
|
|
|
|
DataType = datString
|
2008-09-17 18:38:38 +00:00
|
|
|
Size = 25
|
2008-01-15 10:31:41 +00:00
|
|
|
end
|
2008-02-28 19:39:33 +00:00
|
|
|
item
|
|
|
|
|
Name = 'REFERENCIA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
2008-01-15 10:31:41 +00:00
|
|
|
item
|
|
|
|
|
Name = 'CONCEPTO'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 2000
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'CANTIDAD'
|
2008-09-30 09:59:03 +00:00
|
|
|
DataType = datFloat
|
2008-01-15 10:31:41 +00:00
|
|
|
end
|
2008-09-08 15:46:28 +00:00
|
|
|
item
|
|
|
|
|
Name = 'UNIDAD_MEDIDA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
2008-01-15 10:31:41 +00:00
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_UNIDAD'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCUENTO'
|
|
|
|
|
DataType = datFloat
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'VISIBLE'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end>
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_FACTURA'
|
|
|
|
|
DataType = datInteger
|
2008-02-28 19:39:33 +00:00
|
|
|
Value = '2'
|
2008-01-15 10:31:41 +00:00
|
|
|
ParamType = daptInput
|
|
|
|
|
end>
|
|
|
|
|
MasterParamsMappings.Strings = (
|
|
|
|
|
'ID_FACTURA=ID')
|
|
|
|
|
LogChanges = False
|
|
|
|
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
|
|
|
RemoteFetchEnabled = False
|
|
|
|
|
LocalSchema = schReport
|
2009-01-23 15:19:26 +00:00
|
|
|
LocalDataStreamer = Bin2DataStreamer
|
2008-01-15 10:31:41 +00:00
|
|
|
LogicalName = 'InformeFacturasCliente_Detalles'
|
|
|
|
|
IndexDefs = <>
|
|
|
|
|
Left = 344
|
|
|
|
|
Top = 128
|
|
|
|
|
end
|
|
|
|
|
object tbl_Cabecera: TDAMemDataTable
|
|
|
|
|
RemoteUpdatesOptions = []
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_ID'
|
|
|
|
|
InPrimaryKey = True
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_ID_EMPRESA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'REFERENCIA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_REFERENCIA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'TIPO'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 1
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FECHA_FACTURA'
|
|
|
|
|
DataType = datDateTime
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_FECHA_FACTURA'
|
|
|
|
|
end
|
2009-01-15 13:05:03 +00:00
|
|
|
item
|
|
|
|
|
Name = 'FECHA_VENCIMIENTO'
|
|
|
|
|
DataType = datDateTime
|
|
|
|
|
end
|
2008-01-15 10:31:41 +00:00
|
|
|
item
|
|
|
|
|
Name = 'BASE_IMPONIBLE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_BASE_IMPONIBLE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'SITUACION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 19
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCUENTO'
|
2014-02-18 22:41:52 +00:00
|
|
|
DataType = datCurrency
|
2008-01-15 10:31:41 +00:00
|
|
|
DictionaryEntry = 'FacturasCliente_DESCUENTO'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_DESCUENTO'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_IMPORTE_DESCUENTO'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IVA'
|
2014-02-18 22:41:52 +00:00
|
|
|
DataType = datCurrency
|
2008-01-15 10:31:41 +00:00
|
|
|
DictionaryEntry = 'FacturasCliente_IVA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_IVA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_IMPORTE_IVA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'RE'
|
2014-02-18 22:41:52 +00:00
|
|
|
DataType = datCurrency
|
2008-01-15 10:31:41 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_RE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_IMPORTE_TOTAL'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'OBSERVACIONES'
|
|
|
|
|
DataType = datMemo
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_OBSERVACIONES'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NIF_CIF'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 15
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_NIF_CIF'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_CLIENTE'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_ID_CLIENTE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NOMBRE'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_NOMBRE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'CALLE'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_CALLE'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PROVINCIA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_PROVINCIA'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'POBLACION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_POBLACION'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'CODIGO_POSTAL'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 10
|
|
|
|
|
DictionaryEntry = 'FacturasCliente_CODIGO_POSTAL'
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'RECARGO_EQUIVALENCIA'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_NETO'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_PORTE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FORMA_PAGO'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
2008-06-11 16:35:39 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DATOS_BANCARIOS'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
2009-01-15 13:05:03 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'RETENCION'
|
2014-02-18 22:41:52 +00:00
|
|
|
DataType = datCurrency
|
2009-01-15 13:05:03 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_RETENCION'
|
|
|
|
|
DataType = datCurrency
|
2014-02-18 22:41:52 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'CERTIFICADO_ISO'
|
|
|
|
|
DataType = datSmallInt
|
2008-01-15 10:31:41 +00:00
|
|
|
end>
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
Value = '1'
|
|
|
|
|
ParamType = daptInput
|
|
|
|
|
end>
|
|
|
|
|
LogChanges = False
|
|
|
|
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
|
|
|
RemoteFetchEnabled = False
|
|
|
|
|
LocalSchema = schReport
|
2009-01-23 15:19:26 +00:00
|
|
|
LocalDataStreamer = Bin2DataStreamer
|
2008-01-15 10:31:41 +00:00
|
|
|
LogicalName = 'InformeFacturasCliente'
|
|
|
|
|
IndexDefs = <>
|
|
|
|
|
Left = 264
|
|
|
|
|
Top = 128
|
|
|
|
|
end
|
|
|
|
|
object frxCheckBoxObject1: TfrxCheckBoxObject
|
2011-02-03 18:44:02 +00:00
|
|
|
Left = 280
|
|
|
|
|
Top = 248
|
2008-01-15 10:31:41 +00:00
|
|
|
end
|
|
|
|
|
object frxChartObject1: TfrxChartObject
|
2011-02-03 18:44:02 +00:00
|
|
|
Left = 280
|
|
|
|
|
Top = 296
|
2008-01-15 10:31:41 +00:00
|
|
|
end
|
|
|
|
|
object frxGradientObject1: TfrxGradientObject
|
2011-02-03 18:44:02 +00:00
|
|
|
Left = 344
|
|
|
|
|
Top = 248
|
2008-01-15 10:31:41 +00:00
|
|
|
end
|
|
|
|
|
object frxCrossObject1: TfrxCrossObject
|
2011-02-03 18:44:02 +00:00
|
|
|
Left = 344
|
|
|
|
|
Top = 400
|
2008-01-15 10:31:41 +00:00
|
|
|
end
|
|
|
|
|
object frxOLEObject1: TfrxOLEObject
|
2011-02-03 18:44:02 +00:00
|
|
|
Left = 280
|
|
|
|
|
Top = 400
|
2008-01-15 10:31:41 +00:00
|
|
|
end
|
|
|
|
|
object frxBarCodeObject1: TfrxBarCodeObject
|
2011-02-03 18:44:02 +00:00
|
|
|
Left = 344
|
|
|
|
|
Top = 352
|
2008-01-15 10:31:41 +00:00
|
|
|
end
|
|
|
|
|
object frxRichObject1: TfrxRichObject
|
2011-02-03 18:44:02 +00:00
|
|
|
Left = 280
|
|
|
|
|
Top = 352
|
2008-01-15 10:31:41 +00:00
|
|
|
end
|
|
|
|
|
object frxReport: TfrxReport
|
2009-04-17 09:34:26 +00:00
|
|
|
Version = '4.7.71'
|
2008-01-15 10:31:41 +00:00
|
|
|
DotMatrixReport = False
|
2008-10-17 14:07:42 +00:00
|
|
|
EngineOptions.DoublePass = True
|
2008-01-15 10:31:41 +00:00
|
|
|
IniFile = '\Software\Fast Reports'
|
|
|
|
|
PreviewOptions.Buttons = [pbPrint, pbLoad, pbSave, pbExport, pbZoom, pbFind, pbOutline, pbPageSetup, pbTools, pbEdit, pbNavigator, pbExportQuick]
|
|
|
|
|
PreviewOptions.Zoom = 1.000000000000000000
|
|
|
|
|
PrintOptions.Printer = 'Por defecto'
|
|
|
|
|
PrintOptions.PrintOnSheet = 0
|
2011-03-03 18:24:58 +00:00
|
|
|
ReportOptions.CreateDate = 37800.807714351900000000
|
2013-02-27 15:46:39 +00:00
|
|
|
ReportOptions.LastChange = 41332.550662326390000000
|
2008-01-15 10:31:41 +00:00
|
|
|
ScriptLanguage = 'PascalScript'
|
|
|
|
|
ScriptText.Strings = (
|
2013-02-27 15:46:39 +00:00
|
|
|
'procedure mContinuaOnBeforePrint(Sender: TfrxComponent);'
|
2009-04-17 13:56:14 +00:00
|
|
|
'begin'
|
2013-02-27 15:46:39 +00:00
|
|
|
' if Engine.FinalPass then'
|
2011-03-08 12:18:42 +00:00
|
|
|
' begin'
|
2013-02-27 15:46:39 +00:00
|
|
|
' if (<Page#> = <TotalPages#>) then'
|
|
|
|
|
' begin '
|
|
|
|
|
' mContinua.Visible := False;'
|
|
|
|
|
' end '
|
|
|
|
|
' else'
|
|
|
|
|
' begin '
|
|
|
|
|
' mContinua.Visible := True;'
|
|
|
|
|
' end '
|
|
|
|
|
' end; '
|
2009-04-17 13:56:14 +00:00
|
|
|
'end;'
|
|
|
|
|
''
|
|
|
|
|
'begin'
|
|
|
|
|
''
|
2013-02-27 15:46:39 +00:00
|
|
|
'end.')
|
2008-01-15 10:31:41 +00:00
|
|
|
ShowProgress = False
|
|
|
|
|
StoreInDFM = False
|
2008-10-17 14:07:42 +00:00
|
|
|
OnStartReport = 'frxReportOnStartReport'
|
2008-01-15 10:31:41 +00:00
|
|
|
Left = 145
|
|
|
|
|
Top = 16
|
2007-12-11 16:24:53 +00:00
|
|
|
end
|
2008-06-11 16:35:39 +00:00
|
|
|
object frxDBVencimientos: TfrxDBDataset
|
|
|
|
|
UserName = 'frxDBVencimientos'
|
2009-01-29 14:27:14 +00:00
|
|
|
CloseDataSource = False
|
2008-06-11 16:35:39 +00:00
|
|
|
DataSource = DADSVencimientos
|
2009-04-17 09:34:26 +00:00
|
|
|
BCDToCurrency = False
|
2008-06-11 16:35:39 +00:00
|
|
|
Left = 440
|
|
|
|
|
Top = 16
|
|
|
|
|
end
|
|
|
|
|
object DADSVencimientos: TDADataSource
|
|
|
|
|
DataSet = tbl_Vencimientos.Dataset
|
|
|
|
|
DataTable = tbl_Vencimientos
|
|
|
|
|
Left = 440
|
|
|
|
|
Top = 72
|
|
|
|
|
end
|
|
|
|
|
object tbl_Vencimientos: TDAMemDataTable
|
|
|
|
|
RemoteUpdatesOptions = []
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_FACTURA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FECHA_VENCIMIENTO'
|
|
|
|
|
DataType = datDateTime
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_FACTURA'
|
|
|
|
|
Value = ''
|
|
|
|
|
ParamType = daptInput
|
|
|
|
|
end>
|
|
|
|
|
MasterParamsMappings.Strings = (
|
|
|
|
|
'ID_FACTURA=ID')
|
|
|
|
|
LogChanges = False
|
|
|
|
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
|
|
|
RemoteFetchEnabled = False
|
|
|
|
|
LocalSchema = schReport
|
2009-01-23 15:19:26 +00:00
|
|
|
LocalDataStreamer = Bin2DataStreamer
|
2008-06-11 16:35:39 +00:00
|
|
|
LogicalName = 'InformeFacturasCliente_Vencimientos'
|
|
|
|
|
IndexDefs = <>
|
|
|
|
|
Left = 440
|
|
|
|
|
Top = 128
|
|
|
|
|
end
|
|
|
|
|
object vencimientos: TIBQuery
|
|
|
|
|
Database = IBDatabase1
|
|
|
|
|
Transaction = IBTransaction1
|
|
|
|
|
SQL.Strings = (
|
|
|
|
|
'SELECT'
|
|
|
|
|
|
|
|
|
|
' V_RECIBOS_CLIENTE.FECHA_VENCIMIENTO, V_RECIBOS_CLIENTE.IMPOR' +
|
|
|
|
|
'TE_TOTAL'
|
|
|
|
|
'FROM V_RECIBOS_CLIENTE'
|
|
|
|
|
'WHERE V_RECIBOS_CLIENTE.ID_FACTURA = 2'
|
|
|
|
|
'ORDER BY V_RECIBOS_CLIENTE.FECHA_VENCIMIENTO')
|
2011-02-03 18:44:02 +00:00
|
|
|
Left = 120
|
|
|
|
|
Top = 368
|
2008-06-11 16:35:39 +00:00
|
|
|
object vencimientosFECHA_VENCIMIENTO: TDateField
|
|
|
|
|
FieldName = 'FECHA_VENCIMIENTO'
|
|
|
|
|
Origin = '"V_RECIBOS_CLIENTE"."FECHA_VENCIMIENTO"'
|
|
|
|
|
end
|
|
|
|
|
object vencimientosIMPORTE_TOTAL: TIBBCDField
|
|
|
|
|
FieldKind = fkInternalCalc
|
|
|
|
|
FieldName = 'IMPORTE_TOTAL'
|
|
|
|
|
Origin = '"V_RECIBOS_CLIENTE"."IMPORTE_TOTAL"'
|
|
|
|
|
ProviderFlags = []
|
|
|
|
|
ReadOnly = True
|
|
|
|
|
Precision = 18
|
|
|
|
|
Size = 2
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
object DataSource3: TDataSource
|
|
|
|
|
DataSet = vencimientos
|
2011-02-03 18:44:02 +00:00
|
|
|
Left = 200
|
|
|
|
|
Top = 368
|
2008-06-11 16:35:39 +00:00
|
|
|
end
|
2008-08-22 14:52:35 +00:00
|
|
|
object frxPDFExport1: TfrxPDFExport
|
|
|
|
|
ShowDialog = False
|
|
|
|
|
UseFileCache = True
|
|
|
|
|
ShowProgress = False
|
2009-04-17 09:34:26 +00:00
|
|
|
OverwritePrompt = False
|
2008-08-22 14:52:35 +00:00
|
|
|
PrintOptimized = True
|
|
|
|
|
Outline = False
|
2009-04-17 09:34:26 +00:00
|
|
|
Background = False
|
|
|
|
|
HTMLTags = True
|
2008-08-22 14:52:35 +00:00
|
|
|
Author = 'FactuGES'
|
|
|
|
|
Subject = 'FactuGES'
|
|
|
|
|
Creator = 'FactuGES'
|
2009-04-17 09:34:26 +00:00
|
|
|
ProtectionFlags = [ePrint, eModify, eCopy, eAnnot]
|
|
|
|
|
HideToolbar = False
|
|
|
|
|
HideMenubar = False
|
|
|
|
|
HideWindowUI = False
|
|
|
|
|
FitWindow = False
|
|
|
|
|
CenterWindow = False
|
|
|
|
|
PrintScaling = False
|
2011-02-03 18:44:02 +00:00
|
|
|
Left = 408
|
|
|
|
|
Top = 248
|
2008-08-22 14:52:35 +00:00
|
|
|
end
|
2008-10-17 14:07:42 +00:00
|
|
|
object tbl_InformeListadoFacturas: TDAMemDataTable
|
2008-10-15 18:50:09 +00:00
|
|
|
RemoteUpdatesOptions = []
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
2009-01-08 13:14:42 +00:00
|
|
|
item
|
|
|
|
|
Name = 'ANO'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
2008-10-15 18:50:09 +00:00
|
|
|
item
|
|
|
|
|
Name = 'MES'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'TITULO'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 19
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'REFERENCIA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_CLIENTE'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NOMBRE'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
2008-10-17 14:07:42 +00:00
|
|
|
item
|
|
|
|
|
Name = 'SITUACION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 19
|
|
|
|
|
end
|
2008-10-15 18:50:09 +00:00
|
|
|
item
|
|
|
|
|
Name = 'NIF_CIF'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 15
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FECHA_FACTURA'
|
|
|
|
|
DataType = datDateTime
|
|
|
|
|
end
|
2009-01-08 13:14:42 +00:00
|
|
|
item
|
|
|
|
|
Name = 'FECHA_VENCIMIENTO'
|
|
|
|
|
DataType = datDateTime
|
|
|
|
|
end
|
2008-10-15 18:50:09 +00:00
|
|
|
item
|
|
|
|
|
Name = 'BASE_IMPONIBLE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_IVA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
Params = <>
|
|
|
|
|
LogChanges = False
|
|
|
|
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
|
|
|
RemoteFetchEnabled = False
|
|
|
|
|
LocalSchema = schReport
|
2009-01-23 15:19:26 +00:00
|
|
|
LocalDataStreamer = Bin2DataStreamer
|
2008-10-17 14:07:42 +00:00
|
|
|
LogicalName = 'InformeListadoFacturas'
|
2008-10-15 18:50:09 +00:00
|
|
|
IndexDefs = <>
|
|
|
|
|
Left = 576
|
|
|
|
|
Top = 128
|
|
|
|
|
end
|
2008-10-17 14:07:42 +00:00
|
|
|
object DADSInformeListadoFacturas: TDADataSource
|
|
|
|
|
DataSet = tbl_InformeListadoFacturas.Dataset
|
|
|
|
|
DataTable = tbl_InformeListadoFacturas
|
2008-10-15 18:50:09 +00:00
|
|
|
Left = 576
|
|
|
|
|
Top = 72
|
|
|
|
|
end
|
2008-10-17 14:07:42 +00:00
|
|
|
object frxDBInformeListadoFacturas: TfrxDBDataset
|
|
|
|
|
UserName = 'frxDBInformeListadoFacturas'
|
2009-01-29 14:27:14 +00:00
|
|
|
CloseDataSource = False
|
2008-10-17 14:07:42 +00:00
|
|
|
DataSource = DADSInformeListadoFacturas
|
2009-04-17 09:34:26 +00:00
|
|
|
BCDToCurrency = False
|
2008-10-15 18:50:09 +00:00
|
|
|
Left = 576
|
|
|
|
|
Top = 16
|
|
|
|
|
end
|
2009-01-16 15:00:06 +00:00
|
|
|
object frxDBInformeListadoFacturasPendientes: TfrxDBDataset
|
|
|
|
|
UserName = 'frxDBInformeListadoFacturasPendientes'
|
2009-01-29 14:27:14 +00:00
|
|
|
CloseDataSource = False
|
2009-01-16 15:00:06 +00:00
|
|
|
DataSource = DADSInformeListadoFacturasPendientes
|
2009-04-17 09:34:26 +00:00
|
|
|
BCDToCurrency = False
|
2009-01-16 15:00:06 +00:00
|
|
|
Left = 792
|
|
|
|
|
Top = 16
|
|
|
|
|
end
|
|
|
|
|
object DADSInformeListadoFacturasPendientes: TDADataSource
|
|
|
|
|
DataSet = tbl_InformeListadoFacturasPendientes.Dataset
|
|
|
|
|
DataTable = tbl_InformeListadoFacturasPendientes
|
|
|
|
|
Left = 792
|
|
|
|
|
Top = 72
|
|
|
|
|
end
|
|
|
|
|
object tbl_InformeListadoFacturasPendientes: TDAMemDataTable
|
|
|
|
|
RemoteUpdatesOptions = []
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'MES'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'TITULO'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 19
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'REFERENCIA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_CLIENTE'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NOMBRE'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'SITUACION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 19
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NIF_CIF'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 15
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FECHA_FACTURA'
|
|
|
|
|
DataType = datDateTime
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'FECHA_VENCIMIENTO'
|
|
|
|
|
DataType = datDateTime
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'BASE_IMPONIBLE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_IVA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
Params = <>
|
|
|
|
|
LogChanges = False
|
|
|
|
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
|
|
|
RemoteFetchEnabled = False
|
|
|
|
|
LocalSchema = schReport
|
2009-01-23 15:19:26 +00:00
|
|
|
LocalDataStreamer = Bin2DataStreamer
|
2009-01-16 15:00:06 +00:00
|
|
|
LogicalName = 'InformeListadoFacturasPendientes'
|
|
|
|
|
IndexDefs = <>
|
|
|
|
|
Left = 792
|
|
|
|
|
Top = 128
|
|
|
|
|
end
|
2009-01-23 15:19:26 +00:00
|
|
|
object frxDBInformeListadoFacturasResumen: TfrxDBDataset
|
|
|
|
|
UserName = 'frxDBInformeListadoFacturasResumen'
|
|
|
|
|
CloseDataSource = True
|
|
|
|
|
DataSource = DADSInformeListadoFacturasResumen
|
2009-04-17 09:34:26 +00:00
|
|
|
BCDToCurrency = False
|
2009-01-23 15:19:26 +00:00
|
|
|
Left = 576
|
|
|
|
|
Top = 216
|
|
|
|
|
end
|
|
|
|
|
object DADSInformeListadoFacturasResumen: TDADataSource
|
|
|
|
|
DataSet = tbl_InformeListadoFacturasResumen.Dataset
|
|
|
|
|
DataTable = tbl_InformeListadoFacturasResumen
|
|
|
|
|
Left = 576
|
|
|
|
|
Top = 272
|
|
|
|
|
end
|
|
|
|
|
object tbl_InformeListadoFacturasResumen: TDAMemDataTable
|
|
|
|
|
RemoteUpdatesOptions = []
|
|
|
|
|
Fields = <>
|
|
|
|
|
Params = <>
|
|
|
|
|
MasterMappingMode = mmDataRequest
|
|
|
|
|
LogChanges = False
|
|
|
|
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
|
|
|
RemoteFetchEnabled = False
|
|
|
|
|
IndexDefs = <>
|
2011-03-02 18:06:54 +00:00
|
|
|
Left = 576
|
|
|
|
|
Top = 328
|
|
|
|
|
end
|
|
|
|
|
object Bin2DataStreamer: TDABin2DataStreamer
|
|
|
|
|
Left = 48
|
|
|
|
|
Top = 88
|
|
|
|
|
end
|
|
|
|
|
object frxDBInformeListadoFacturasGrafComp: TfrxDBDataset
|
|
|
|
|
UserName = 'frxDBInformeListadoFacturasGrafComp'
|
|
|
|
|
CloseDataSource = False
|
|
|
|
|
DataSource = DASInformeListadoFacturasGrafComp
|
|
|
|
|
BCDToCurrency = False
|
|
|
|
|
Left = 824
|
|
|
|
|
Top = 224
|
|
|
|
|
end
|
|
|
|
|
object DASInformeListadoFacturasGrafComp: TDADataSource
|
|
|
|
|
Left = 824
|
|
|
|
|
Top = 272
|
|
|
|
|
end
|
|
|
|
|
object tbl_InformeListadoFacturasGrafCompMensual: TDAMemDataTable
|
|
|
|
|
RemoteUpdatesOptions = []
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'VALOR'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCRIPCION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 20
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end>
|
|
|
|
|
LogChanges = False
|
|
|
|
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
|
|
|
RemoteFetchEnabled = False
|
|
|
|
|
LocalSchema = schReport
|
|
|
|
|
LocalDataStreamer = Bin2DataStreamer
|
|
|
|
|
LogicalName = 'InformeListadoFacturasGrafCompMensual'
|
|
|
|
|
IndexDefs = <>
|
|
|
|
|
Left = 824
|
|
|
|
|
Top = 328
|
|
|
|
|
end
|
|
|
|
|
object tbl_InformeListadoFacturasGrafCompTrimestral: TDAMemDataTable
|
|
|
|
|
RemoteUpdatesOptions = []
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'VALOR'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCRIPCION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 20
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end>
|
|
|
|
|
LogChanges = False
|
|
|
|
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
|
|
|
RemoteFetchEnabled = False
|
|
|
|
|
LocalSchema = schReport
|
|
|
|
|
LocalDataStreamer = Bin2DataStreamer
|
|
|
|
|
LogicalName = 'InformeListadoFacturasGrafCompTrimestral'
|
|
|
|
|
IndexDefs = <>
|
|
|
|
|
Left = 824
|
|
|
|
|
Top = 384
|
|
|
|
|
end
|
|
|
|
|
object tbl_InformeListadoFacturasGrafCompSemestral: TDAMemDataTable
|
|
|
|
|
RemoteUpdatesOptions = []
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'VALOR'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCRIPCION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 20
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end>
|
|
|
|
|
LogChanges = False
|
|
|
|
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
|
|
|
RemoteFetchEnabled = False
|
|
|
|
|
LocalSchema = schReport
|
|
|
|
|
LocalDataStreamer = Bin2DataStreamer
|
|
|
|
|
LogicalName = 'InformeListadoFacturasGrafCompSemestral'
|
|
|
|
|
IndexDefs = <>
|
|
|
|
|
Left = 824
|
|
|
|
|
Top = 440
|
|
|
|
|
end
|
|
|
|
|
object frxDBInformeListadoClientesMayorFacturacionResumen: TfrxDBDataset
|
|
|
|
|
UserName = 'frxDBInformeListadoClientesMayorFacturacionResumen'
|
|
|
|
|
CloseDataSource = False
|
|
|
|
|
DataSource = DADSInformeListadoClientesMayorFacturacionResumen
|
|
|
|
|
BCDToCurrency = False
|
|
|
|
|
Left = 128
|
|
|
|
|
Top = 488
|
|
|
|
|
end
|
|
|
|
|
object DADSInformeListadoClientesMayorFacturacionResumen: TDADataSource
|
|
|
|
|
DataSet = tbl_InformeListadoClientesMayorFacturacionResumen.Dataset
|
|
|
|
|
DataTable = tbl_InformeListadoClientesMayorFacturacionResumen
|
|
|
|
|
Left = 128
|
|
|
|
|
Top = 544
|
|
|
|
|
end
|
|
|
|
|
object tbl_InformeListadoClientesMayorFacturacionResumen: TDAMemDataTable
|
|
|
|
|
RemoteUpdatesOptions = []
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'REFERENCIA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NOMBRE'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL_ANO'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NUMFAC'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_TOTAL'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'NTOP'
|
|
|
|
|
Value = ''
|
|
|
|
|
end>
|
|
|
|
|
MasterMappingMode = mmDataRequest
|
|
|
|
|
LogChanges = False
|
|
|
|
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
|
|
|
RemoteFetchEnabled = False
|
|
|
|
|
LocalSchema = schReport
|
|
|
|
|
LocalDataStreamer = Bin2DataStreamer
|
|
|
|
|
LogicalName = 'InformeListadoClientesMayorFacturacionResumen'
|
|
|
|
|
IndexDefs = <>
|
|
|
|
|
Left = 128
|
|
|
|
|
Top = 600
|
2009-01-23 15:19:26 +00:00
|
|
|
end
|
2011-03-02 18:06:54 +00:00
|
|
|
object frxDBInformeListadoClientesMayorDescuentoResumen: TfrxDBDataset
|
|
|
|
|
UserName = 'frxDBInformeListadoClientesMayorDescuentoResumen'
|
2011-02-03 18:44:02 +00:00
|
|
|
CloseDataSource = False
|
2011-03-02 18:06:54 +00:00
|
|
|
DataSource = DADSInformeListadoClientesMayorDescuentoResumen
|
2011-02-03 18:44:02 +00:00
|
|
|
BCDToCurrency = False
|
2011-03-02 18:06:54 +00:00
|
|
|
Left = 432
|
|
|
|
|
Top = 488
|
2011-02-03 18:44:02 +00:00
|
|
|
end
|
2011-03-02 18:06:54 +00:00
|
|
|
object DADSInformeListadoClientesMayorDescuentoResumen: TDADataSource
|
|
|
|
|
DataSet = tbl_InformeListadoClientesMayorDescuentoResumen.Dataset
|
|
|
|
|
DataTable = tbl_InformeListadoClientesMayorDescuentoResumen
|
|
|
|
|
Left = 432
|
|
|
|
|
Top = 544
|
2011-02-03 18:44:02 +00:00
|
|
|
end
|
2011-03-02 18:06:54 +00:00
|
|
|
object tbl_InformeListadoClientesMayorDescuentoResumen: TDAMemDataTable
|
2011-02-03 18:44:02 +00:00
|
|
|
RemoteUpdatesOptions = []
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'ANO'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'REFERENCIA'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datString
|
2011-03-02 18:06:54 +00:00
|
|
|
Size = 255
|
2011-02-03 18:44:02 +00:00
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'NOMBRE'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
2011-02-03 18:44:02 +00:00
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'IMPORTE_DESCUENTO'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'IMPORTE_TOTAL'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'IMPORTE_COBRADO'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'ID_EMPRESA'
|
2011-02-03 18:44:02 +00:00
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'ANO'
|
2011-02-03 18:44:02 +00:00
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'NTOP'
|
2011-02-03 18:44:02 +00:00
|
|
|
Value = ''
|
|
|
|
|
end>
|
2011-03-02 18:06:54 +00:00
|
|
|
MasterMappingMode = mmDataRequest
|
2011-02-03 18:44:02 +00:00
|
|
|
LogChanges = False
|
|
|
|
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
|
|
|
RemoteFetchEnabled = False
|
|
|
|
|
LocalSchema = schReport
|
|
|
|
|
LocalDataStreamer = Bin2DataStreamer
|
2011-03-02 18:06:54 +00:00
|
|
|
LogicalName = 'InformeListadoClientesMayorDescuentoResumen'
|
2011-02-03 18:44:02 +00:00
|
|
|
IndexDefs = <>
|
2011-03-02 18:06:54 +00:00
|
|
|
Left = 432
|
|
|
|
|
Top = 600
|
2011-02-03 18:44:02 +00:00
|
|
|
end
|
2011-03-02 18:06:54 +00:00
|
|
|
object tbl_InformeListadoBeneficiosGrafCompMensual: TDAMemDataTable
|
2011-02-03 18:44:02 +00:00
|
|
|
RemoteUpdatesOptions = []
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'VALOR'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCRIPCION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 20
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'INGRESOS_ANO1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO11'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'GASTOS_ANO1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'BENEFICIO_ANO1'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'INGRESOS_ANO2'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'ANO21'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'GASTOS_ANO2'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'BENEFICIO_ANO2'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA_INGRESOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_AUMENTO_INGRESOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA_GASTOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_AUMENTO_GASTOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA_BENEFICIOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_AUMENTO_BENEFICIOS'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end>
|
|
|
|
|
LogChanges = False
|
|
|
|
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
|
|
|
RemoteFetchEnabled = False
|
|
|
|
|
LocalSchema = schReport
|
|
|
|
|
LocalDataStreamer = Bin2DataStreamer
|
2011-03-02 18:06:54 +00:00
|
|
|
LogicalName = 'InformeListadoBeneficiosGrafCompMensual'
|
2011-02-03 18:44:02 +00:00
|
|
|
IndexDefs = <>
|
|
|
|
|
Left = 824
|
2011-03-02 18:06:54 +00:00
|
|
|
Top = 600
|
2011-02-03 18:44:02 +00:00
|
|
|
end
|
2011-03-02 18:06:54 +00:00
|
|
|
object tbl_InformeListadoBeneficiosGrafCompTrimestral: TDAMemDataTable
|
2011-02-03 18:44:02 +00:00
|
|
|
RemoteUpdatesOptions = []
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'VALOR'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCRIPCION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 20
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'INGRESOS_ANO1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO11'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'GASTOS_ANO1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'BENEFICIO_ANO1'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
2011-03-03 18:24:58 +00:00
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_BENEFICIOS_ANO1'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
2011-02-03 18:44:02 +00:00
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'INGRESOS_ANO2'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'ANO21'
|
|
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'GASTOS_ANO2'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'BENEFICIO_ANO2'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
2011-03-03 18:24:58 +00:00
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_BENEFICIOS_ANO2'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
2011-03-02 18:06:54 +00:00
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA_INGRESOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_AUMENTO_INGRESOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA_GASTOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_AUMENTO_GASTOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA_BENEFICIOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_AUMENTO_BENEFICIOS'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO1'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end>
|
|
|
|
|
LogChanges = False
|
|
|
|
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
|
|
|
RemoteFetchEnabled = False
|
|
|
|
|
LocalSchema = schReport
|
|
|
|
|
LocalDataStreamer = Bin2DataStreamer
|
2011-03-02 18:06:54 +00:00
|
|
|
LogicalName = 'InformeListadoBeneficiosGrafCompTrimestral'
|
2011-02-03 18:44:02 +00:00
|
|
|
IndexDefs = <>
|
|
|
|
|
Left = 824
|
|
|
|
|
Top = 544
|
|
|
|
|
end
|
2011-03-02 18:06:54 +00:00
|
|
|
object tbl_InformeListadoBeneficiosGrafCompSemestral: TDAMemDataTable
|
2011-02-03 18:44:02 +00:00
|
|
|
RemoteUpdatesOptions = []
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'VALOR'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'DESCRIPCION'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datString
|
2011-03-02 18:06:54 +00:00
|
|
|
Size = 20
|
2011-02-03 18:44:02 +00:00
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'ANO1'
|
|
|
|
|
DataType = datSmallInt
|
2011-02-03 18:44:02 +00:00
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'INGRESOS_ANO1'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'ANO11'
|
|
|
|
|
DataType = datSmallInt
|
2011-02-03 18:44:02 +00:00
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'GASTOS_ANO1'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'BENEFICIO_ANO1'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'ANO2'
|
|
|
|
|
DataType = datSmallInt
|
2011-02-03 18:44:02 +00:00
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'INGRESOS_ANO2'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
2011-02-03 18:44:02 +00:00
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'ANO21'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datSmallInt
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'GASTOS_ANO2'
|
|
|
|
|
DataType = datCurrency
|
2011-02-03 18:44:02 +00:00
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'BENEFICIO_ANO2'
|
|
|
|
|
DataType = datCurrency
|
2011-02-03 18:44:02 +00:00
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'DIFERENCIA_INGRESOS'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'PORCENTAJE_AUMENTO_INGRESOS'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'DIFERENCIA_GASTOS'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'PORCENTAJE_AUMENTO_GASTOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DIFERENCIA_BENEFICIOS'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'PORCENTAJE_AUMENTO_BENEFICIOS'
|
2011-02-03 18:44:02 +00:00
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
Params = <
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'ID_EMPRESA1'
|
2011-02-03 18:44:02 +00:00
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'ANO1'
|
2011-02-03 18:44:02 +00:00
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
2011-03-02 18:06:54 +00:00
|
|
|
Name = 'ID_EMPRESA2'
|
|
|
|
|
Value = ''
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ANO2'
|
2011-02-03 18:44:02 +00:00
|
|
|
Value = ''
|
|
|
|
|
end>
|
|
|
|
|
LogChanges = False
|
|
|
|
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
|
|
|
RemoteFetchEnabled = False
|
|
|
|
|
LocalSchema = schReport
|
|
|
|
|
LocalDataStreamer = Bin2DataStreamer
|
2011-03-02 18:06:54 +00:00
|
|
|
LogicalName = 'InformeListadoBeneficiosGrafCompSemestral'
|
2011-02-03 18:44:02 +00:00
|
|
|
IndexDefs = <>
|
2011-03-02 18:06:54 +00:00
|
|
|
Left = 824
|
|
|
|
|
Top = 496
|
2011-02-03 18:44:02 +00:00
|
|
|
end
|
2013-02-27 15:46:39 +00:00
|
|
|
object frxDBDInformeIVAComparativoFacturasCli: TfrxDBDataset
|
|
|
|
|
UserName = 'frxDBInformeIVAComparativoFacturasCli'
|
|
|
|
|
CloseDataSource = False
|
|
|
|
|
DataSource = DADSInformeIVAComparativoFacturasCli
|
|
|
|
|
BCDToCurrency = False
|
|
|
|
|
Left = 128
|
|
|
|
|
Top = 664
|
|
|
|
|
end
|
|
|
|
|
object DADSInformeIVAComparativoFacturasCli: TDADataSource
|
|
|
|
|
DataSet = tbl_InformeIVAComparativoFacturasCli.Dataset
|
|
|
|
|
DataTable = tbl_InformeIVAComparativoFacturasCli
|
|
|
|
|
Left = 128
|
|
|
|
|
Top = 720
|
|
|
|
|
end
|
|
|
|
|
object tbl_InformeIVAComparativoFacturasCli: TDAMemDataTable
|
|
|
|
|
RemoteUpdatesOptions = []
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_TIPO_IVA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCRIPCION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IVA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'RE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_IVA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_RE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'BASE_IMPONIBLE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'CUOTA_DEVENGADA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
Params = <>
|
|
|
|
|
LogChanges = False
|
|
|
|
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
|
|
|
RemoteFetchEnabled = False
|
|
|
|
|
LocalSchema = schReport
|
|
|
|
|
LocalDataStreamer = Bin2DataStreamer
|
|
|
|
|
LogicalName = 'InformeListadoIVAComparativoFacturasCli'
|
|
|
|
|
IndexDefs = <>
|
|
|
|
|
Left = 128
|
|
|
|
|
Top = 776
|
|
|
|
|
end
|
|
|
|
|
object frxDBDInformeIVAComparativoFacturasPro: TfrxDBDataset
|
|
|
|
|
UserName = 'frxDBInformeIVAComparativoFacturasPro'
|
|
|
|
|
CloseDataSource = False
|
|
|
|
|
DataSource = DADSInformeIVAComparativoFacturasPro
|
|
|
|
|
BCDToCurrency = False
|
|
|
|
|
Left = 432
|
|
|
|
|
Top = 664
|
|
|
|
|
end
|
|
|
|
|
object DADSInformeIVAComparativoFacturasPro: TDADataSource
|
|
|
|
|
DataSet = tbl_InformeIVAComparativoFacturasPro.Dataset
|
|
|
|
|
DataTable = tbl_InformeIVAComparativoFacturasPro
|
|
|
|
|
Left = 432
|
|
|
|
|
Top = 720
|
|
|
|
|
end
|
|
|
|
|
object tbl_InformeIVAComparativoFacturasPro: TDAMemDataTable
|
|
|
|
|
RemoteUpdatesOptions = []
|
|
|
|
|
Fields = <
|
|
|
|
|
item
|
|
|
|
|
Name = 'ID_EMPRESA'
|
|
|
|
|
DataType = datInteger
|
|
|
|
|
end
|
|
|
|
|
item
|
2013-11-06 17:30:00 +00:00
|
|
|
Name = 'REFERENCIA'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
2013-02-27 15:46:39 +00:00
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'DESCRIPCION'
|
|
|
|
|
DataType = datString
|
|
|
|
|
Size = 255
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IVA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'IMPORTE_IVA'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'BASE_IMPONIBLE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end
|
|
|
|
|
item
|
|
|
|
|
Name = 'CUOTA_DEDUCIBLE'
|
|
|
|
|
DataType = datCurrency
|
|
|
|
|
end>
|
|
|
|
|
Params = <>
|
|
|
|
|
LogChanges = False
|
|
|
|
|
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
|
|
|
RemoteFetchEnabled = False
|
|
|
|
|
LocalSchema = schReport
|
|
|
|
|
LocalDataStreamer = Bin2DataStreamer
|
|
|
|
|
LogicalName = 'InformeListadoIVAComparativoFacturasPro'
|
|
|
|
|
IndexDefs = <>
|
|
|
|
|
Left = 432
|
|
|
|
|
Top = 776
|
|
|
|
|
end
|
2007-11-05 18:00:22 +00:00
|
|
|
end
|