object RptRemesasCliente: TRptRemesasCliente
  OldCreateOrder = True
  OnCreate = DataModuleCreate
  OnDestroy = DataModuleDestroy
  Height = 405
  Width = 447
  object DADataCabecera: TDADataSource
    DataSet = tbl_Cabecera.Dataset
    DataTable = tbl_Cabecera
    Left = 264
    Top = 72
  end
  object DADataDetalles: TDADataSource
    DataSet = tbl_Detalles.Dataset
    DataTable = tbl_Detalles
    Left = 344
    Top = 72
  end
  object tbl_Cabecera: TDAMemDataTable
    RemoteUpdatesOptions = []
    Fields = <
      item
        Name = 'ID'
        DataType = datInteger
      end
      item
        Name = 'ID_EMPRESA'
        DataType = datInteger
      end
      item
        Name = 'REFERENCIA'
        DataType = datString
        Size = 255
      end
      item
        Name = 'FECHA_REMESA'
        DataType = datDateTime
      end
      item
        Name = 'IMPORTE_TOTAL'
        DataType = datFloat
      end
      item
        Name = 'TITULAR'
        DataType = datString
        Size = 255
      end
      item
        Name = 'ENTIDAD'
        DataType = datString
        Size = 15
      end
      item
        Name = 'SUCURSAL'
        DataType = datString
        Size = 15
      end
      item
        Name = 'DC'
        DataType = datString
        Size = 15
      end
      item
        Name = 'CUENTA'
        DataType = datString
        Size = 15
      end
      item
        Name = 'DESCRIPCION'
        DataType = datString
        Size = 255
      end
      item
        Name = 'NIF_CIF_EMPRESA'
        DataType = datString
        Size = 15
      end
      item
        Name = 'RAZON_SOCIAL'
        DataType = datString
        Size = 255
      end
      item
        Name = 'CALLE_EMPRESA'
        DataType = datString
        Size = 255
      end
      item
        Name = 'POBLACION_EMPRESA'
        DataType = datString
        Size = 255
      end
      item
        Name = 'PROVINCIA_EMPRESA'
        DataType = datString
        Size = 255
      end
      item
        Name = 'CODIGO_POSTAL_EMPRESA'
        DataType = datString
        Size = 10
      end
      item
        Name = 'TELEFONO_1'
        DataType = datString
        Size = 25
      end
      item
        Name = 'FAX'
        DataType = datString
        Size = 25
      end
      item
        Name = 'MOVIL_1'
        DataType = datString
        Size = 25
      end
      item
        Name = 'EMAIL_1'
        DataType = datString
        Size = 255
      end
      item
        Name = 'PAGINA_WEB'
        DataType = datString
        Size = 255
      end
      item
        Name = 'REGISTRO_MERCANTIL'
        DataType = datString
        Size = 255
      end
      item
        Name = 'LOGOTIPO'
        DataType = datBlob
      end>
    Params = <
      item
        Name = 'ID'
        DataType = datInteger
        Value = ''
        ParamType = daptInput
      end>
    MasterMappingMode = mmDataRequest
    LogChanges = False
    StreamingOptions = [soDisableEventsWhileStreaming]
    RemoteFetchEnabled = False
    LocalSchema = schReport
    LocalDataStreamer = Bin2DataStreamer
    LogicalName = 'Informe_Cabecera'
    IndexDefs = <>
    Left = 264
    Top = 128
  end
  object tbl_Detalles: TDAMemDataTable
    RemoteUpdatesOptions = []
    Fields = <
      item
        Name = 'ID'
        DataType = datInteger
      end
      item
        Name = 'REFERENCIA'
        DataType = datString
        Size = 255
      end
      item
        Name = 'SITUACION'
        DataType = datString
        Size = 9
      end
      item
        Name = 'ID_FACTURA'
        DataType = datInteger
      end
      item
        Name = 'ID_REMESA'
        DataType = datInteger
      end
      item
        Name = 'REFERENCIA_REMESA'
        DataType = datString
        Size = 255
      end
      item
        Name = 'FECHA_VENCIMIENTO'
        DataType = datDateTime
      end
      item
        Name = 'DESCRIPCION'
        DataType = datString
        Size = 255
      end
      item
        Name = 'OBSERVACIONES'
        DataType = datString
        Size = 255
      end
      item
        Name = 'IMPORTE'
        DataType = datCurrency
      end
      item
        Name = 'OTROS_GASTOS'
        DataType = datCurrency
      end
      item
        Name = 'IMPORTE_TOTAL'
        DataType = datCurrency
      end
      item
        Name = 'FECHA_FACTURA'
        DataType = datDateTime
      end
      item
        Name = 'FORMA_PAGO_FACTURA'
        DataType = datString
        Size = 255
      end
      item
        Name = 'IMPORTE_FACTURA'
        DataType = datCurrency
      end
      item
        Name = 'ID_EMPRESA'
        DataType = datInteger
      end
      item
        Name = 'NOMBRE_CLIENTE'
        DataType = datString
        Size = 255
      end
      item
        Name = 'NIF_CIF_CLIENTE'
        DataType = datString
        Size = 15
      end
      item
        Name = 'POBLACION_CLIENTE'
        DataType = datString
        Size = 255
      end
      item
        Name = 'CODIGO_POSTAL_CLIENTE'
        DataType = datString
        Size = 10
      end
      item
        Name = 'ENTIDAD'
        DataType = datString
        Size = 254
      end
      item
        Name = 'SUCURSAL'
        DataType = datString
        Size = 254
      end
      item
        Name = 'DC'
        DataType = datString
        Size = 254
      end
      item
        Name = 'CUENTA'
        DataType = datString
        Size = 254
      end>
    Params = <
      item
        Name = 'ID_REMESA'
        DataType = datInteger
        Value = '1'
        ParamType = daptInput
      end>
    MasterMappingMode = mmDataRequest
    LogChanges = False
    StreamingOptions = [soDisableEventsWhileStreaming]
    RemoteFetchEnabled = False
    LocalSchema = schReport
    LocalDataStreamer = Bin2DataStreamer
    LogicalName = 'Informe_Detalles'
    IndexDefs = <>
    Left = 344
    Top = 128
  end
  object frxRichObject1: TfrxRichObject
    Left = 48
    Top = 296
  end
  object frxBarCodeObject1: TfrxBarCodeObject
    Left = 144
    Top = 296
  end
  object frxOLEObject1: TfrxOLEObject
    Left = 48
    Top = 344
  end
  object frxCrossObject1: TfrxCrossObject
    Left = 144
    Top = 344
  end
  object frxCheckBoxObject1: TfrxCheckBoxObject
    Left = 256
    Top = 296
  end
  object frxGradientObject1: TfrxGradientObject
    Left = 360
    Top = 296
  end
  object frxChartObject1: TfrxChartObject
    Left = 256
    Top = 344
  end
  object schReport: TDASchema
    ConnectionManager = dmServer.ConnectionManager
    DataDictionary = DataDictionary
    Datasets = <
      item
        Params = <
          item
            Name = 'ID'
            DataType = datInteger
            Value = ''
            ParamType = daptInput
          end>
        Statements = <
          item
            Connection = 'IBX'
            TargetTable = 'V_REMESAS_CLIENTE'
            SQL = 
              'SELECT'#10'    V_REMESAS_CLIENTE.ID,'#10'    V_REMESAS_CLIENTE.ID_EMPRES' +
              'A,'#10'    V_REMESAS_CLIENTE.REFERENCIA,'#10'    V_REMESAS_CLIENTE.FECHA' +
              '_REMESA,'#10'    V_REMESAS_CLIENTE.IMPORTE_TOTAL,'#10'    EMPRESAS.NOMBR' +
              'E as TITULAR,'#10'    EMPRESAS_DATOS_BANCO.ENTIDAD,'#10'    EMPRESAS_DAT' +
              'OS_BANCO.SUCURSAL,'#10'    EMPRESAS_DATOS_BANCO.DC,'#10'    EMPRESAS_DAT' +
              'OS_BANCO.CUENTA,'#10'    V_REMESAS_CLIENTE.DESCRIPCION,'#10#10'    EMPRESA' +
              'S.NIF_CIF as NIF_CIF_EMPRESA, EMPRESAS.RAZON_SOCIAL,'#10'    EMPRESA' +
              'S.CALLE as CALLE_EMPRESA, EMPRESAS.POBLACION as POBLACION_EMPRES' +
              'A,'#10'    EMPRESAS.PROVINCIA as PROVINCIA_EMPRESA, EMPRESAS.CODIGO_' +
              'POSTAL as CODIGO_POSTAL_EMPRESA,'#10'    EMPRESAS.TELEFONO_1, EMPRES' +
              'AS.FAX, EMPRESAS.MOVIL_1, EMPRESAS.EMAIL_1,'#10'    EMPRESAS.PAGINA_' +
              'WEB, EMPRESAS.REGISTRO_MERCANTIL, EMPRESAS.LOGOTIPO'#10#10#10'FROM'#10'  V_R' +
              'EMESAS_CLIENTE'#10'  LEFT OUTER JOIN EMPRESAS ON (EMPRESAS.ID = V_RE' +
              'MESAS_CLIENTE.ID_EMPRESA)'#10'  LEFT OUTER JOIN EMPRESAS_DATOS_BANCO' +
              ' ON (EMPRESAS_DATOS_BANCO.ID = V_REMESAS_CLIENTE.ID_DATOS_BANCO)' +
              #10'WHERE'#10'  V_REMESAS_CLIENTE.ID = :ID'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'ID'
                TableField = 'ID'
              end
              item
                DatasetField = 'ID_EMPRESA'
                TableField = 'ID_EMPRESA'
              end
              item
                DatasetField = 'REFERENCIA'
                TableField = 'REFERENCIA'
              end
              item
                DatasetField = 'FECHA_REMESA'
                TableField = 'FECHA_REMESA'
              end
              item
                DatasetField = 'IMPORTE_TOTAL'
                TableField = 'IMPORTE_TOTAL'
              end
              item
                DatasetField = 'TITULAR'
                TableField = 'TITULAR'
              end
              item
                DatasetField = 'ENTIDAD'
                TableField = 'ENTIDAD'
              end
              item
                DatasetField = 'SUCURSAL'
                TableField = 'SUCURSAL'
              end
              item
                DatasetField = 'DC'
                TableField = 'DC'
              end
              item
                DatasetField = 'CUENTA'
                TableField = 'CUENTA'
              end
              item
                DatasetField = 'DESCRIPCION'
                TableField = 'DESCRIPCION'
              end
              item
                DatasetField = 'NIF_CIF_EMPRESA'
                TableField = 'NIF_CIF_EMPRESA'
              end
              item
                DatasetField = 'RAZON_SOCIAL'
                TableField = 'RAZON_SOCIAL'
              end
              item
                DatasetField = 'CALLE_EMPRESA'
                TableField = 'CALLE_EMPRESA'
              end
              item
                DatasetField = 'POBLACION_EMPRESA'
                TableField = 'POBLACION_EMPRESA'
              end
              item
                DatasetField = 'PROVINCIA_EMPRESA'
                TableField = 'PROVINCIA_EMPRESA'
              end
              item
                DatasetField = 'CODIGO_POSTAL_EMPRESA'
                TableField = 'CODIGO_POSTAL_EMPRESA'
              end
              item
                DatasetField = 'TELEFONO_1'
                TableField = 'TELEFONO_1'
              end
              item
                DatasetField = 'FAX'
                TableField = 'FAX'
              end
              item
                DatasetField = 'MOVIL_1'
                TableField = 'MOVIL_1'
              end
              item
                DatasetField = 'EMAIL_1'
                TableField = 'EMAIL_1'
              end
              item
                DatasetField = 'PAGINA_WEB'
                TableField = 'PAGINA_WEB'
              end
              item
                DatasetField = 'REGISTRO_MERCANTIL'
                TableField = 'REGISTRO_MERCANTIL'
              end
              item
                DatasetField = 'LOGOTIPO'
                TableField = 'LOGOTIPO'
              end>
          end>
        Name = 'Informe_Cabecera'
        Fields = <
          item
            Name = 'ID'
            DataType = datInteger
          end
          item
            Name = 'ID_EMPRESA'
            DataType = datInteger
          end
          item
            Name = 'REFERENCIA'
            DataType = datString
            Size = 255
          end
          item
            Name = 'FECHA_REMESA'
            DataType = datDateTime
          end
          item
            Name = 'IMPORTE_TOTAL'
            DataType = datFloat
          end
          item
            Name = 'TITULAR'
            DataType = datString
            Size = 255
          end
          item
            Name = 'ENTIDAD'
            DataType = datString
            Size = 15
          end
          item
            Name = 'SUCURSAL'
            DataType = datString
            Size = 15
          end
          item
            Name = 'DC'
            DataType = datString
            Size = 15
          end
          item
            Name = 'CUENTA'
            DataType = datString
            Size = 15
          end
          item
            Name = 'DESCRIPCION'
            DataType = datString
            Size = 255
          end
          item
            Name = 'NIF_CIF_EMPRESA'
            DataType = datString
            Size = 15
          end
          item
            Name = 'RAZON_SOCIAL'
            DataType = datString
            Size = 255
          end
          item
            Name = 'CALLE_EMPRESA'
            DataType = datString
            Size = 255
          end
          item
            Name = 'POBLACION_EMPRESA'
            DataType = datString
            Size = 255
          end
          item
            Name = 'PROVINCIA_EMPRESA'
            DataType = datString
            Size = 255
          end
          item
            Name = 'CODIGO_POSTAL_EMPRESA'
            DataType = datString
            Size = 10
          end
          item
            Name = 'TELEFONO_1'
            DataType = datString
            Size = 25
          end
          item
            Name = 'FAX'
            DataType = datString
            Size = 25
          end
          item
            Name = 'MOVIL_1'
            DataType = datString
            Size = 25
          end
          item
            Name = 'EMAIL_1'
            DataType = datString
            Size = 255
          end
          item
            Name = 'PAGINA_WEB'
            DataType = datString
            Size = 255
          end
          item
            Name = 'REGISTRO_MERCANTIL'
            DataType = datString
            Size = 255
          end
          item
            Name = 'LOGOTIPO'
            DataType = datBlob
          end>
      end
      item
        Params = <
          item
            Name = 'ID_REMESA'
            DataType = datInteger
            Value = '1'
            ParamType = daptInput
          end>
        Statements = <
          item
            Connection = 'IBX'
            TargetTable = 'RECIBOS_CLIENTE'
            SQL = 
              'SELECT'#10'    V_RECIBOS_CLIENTE.ID,'#10'    V_RECIBOS_CLIENTE.REFERENCI' +
              'A,'#10'    V_RECIBOS_CLIENTE.SITUACION,'#10'    V_RECIBOS_CLIENTE.ID_FAC' +
              'TURA,'#10'    V_RECIBOS_CLIENTE.ID_REMESA,'#10'    V_RECIBOS_CLIENTE.REF' +
              'ERENCIA_REMESA,'#10'    V_RECIBOS_CLIENTE.FECHA_VENCIMIENTO,'#10'    V_R' +
              'ECIBOS_CLIENTE.DESCRIPCION,'#10'    V_RECIBOS_CLIENTE.OBSERVACIONES,' +
              #10'    V_RECIBOS_CLIENTE.IMPORTE,'#10'    V_RECIBOS_CLIENTE.OTROS_GAST' +
              'OS,'#10'    V_RECIBOS_CLIENTE.IMPORTE_TOTAL,'#10'    V_RECIBOS_CLIENTE.F' +
              'ECHA_FACTURA,'#10'    V_RECIBOS_CLIENTE.FORMA_PAGO_FACTURA,'#10'    V_RE' +
              'CIBOS_CLIENTE.IMPORTE_FACTURA,'#10'    V_RECIBOS_CLIENTE.ID_EMPRESA,' +
              #10'    V_RECIBOS_CLIENTE.NOMBRE_CLIENTE,'#10'    V_RECIBOS_CLIENTE.NIF' +
              '_CIF_CLIENTE,'#10'    V_RECIBOS_CLIENTE.POBLACION_CLIENTE,'#10'    V_REC' +
              'IBOS_CLIENTE.CODIGO_POSTAL_CLIENTE,'#10'    substr(DATOS_BANCARIOS, ' +
              '1,4) as ENTIDAD,'#10'    substr(DATOS_BANCARIOS, 6,9) as SUCURSAL,'#10' ' +
              '   substr(DATOS_BANCARIOS, 11,13) as DC,'#10'    substr(DATOS_BANCAR' +
              'IOS, 14,23) as CUENTA'#10#10#10#10'FROM V_RECIBOS_CLIENTE'#10'WHERE ID_REMESA ' +
              '= :ID_REMESA'#10'ORDER BY REFERENCIA, FECHA_VENCIMIENTO'#10
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'ID'
                TableField = 'ID'
              end
              item
                DatasetField = 'REFERENCIA'
                TableField = 'REFERENCIA'
              end
              item
                DatasetField = 'SITUACION'
                TableField = '<unknown>'
                SQLOrigin = 'SITUACION'
              end
              item
                DatasetField = 'ID_FACTURA'
                TableField = 'ID_FACTURA'
              end
              item
                DatasetField = 'ID_REMESA'
                TableField = 'ID_REMESA'
              end
              item
                DatasetField = 'REFERENCIA_REMESA'
                TableField = '<unknown>'
                SQLOrigin = 'REFERENCIA_REMESA'
              end
              item
                DatasetField = 'FECHA_VENCIMIENTO'
                TableField = 'FECHA_VENCIMIENTO'
              end
              item
                DatasetField = 'DESCRIPCION'
                TableField = 'DESCRIPCION'
              end
              item
                DatasetField = 'OBSERVACIONES'
                TableField = 'OBSERVACIONES'
              end
              item
                DatasetField = 'IMPORTE'
                TableField = 'IMPORTE'
              end
              item
                DatasetField = 'OTROS_GASTOS'
                TableField = 'OTROS_GASTOS'
              end
              item
                DatasetField = 'IMPORTE_TOTAL'
                TableField = '<unknown>'
                SQLOrigin = 'IMPORTE_TOTAL'
              end
              item
                DatasetField = 'FECHA_FACTURA'
                TableField = '<unknown>'
                SQLOrigin = 'FECHA_FACTURA'
              end
              item
                DatasetField = 'FORMA_PAGO_FACTURA'
                TableField = '<unknown>'
                SQLOrigin = 'FORMA_PAGO_FACTURA'
              end
              item
                DatasetField = 'IMPORTE_FACTURA'
                TableField = '<unknown>'
                SQLOrigin = 'IMPORTE_FACTURA'
              end
              item
                DatasetField = 'ID_EMPRESA'
                TableField = '<unknown>'
                SQLOrigin = 'ID_EMPRESA'
              end
              item
                DatasetField = 'NOMBRE_CLIENTE'
                TableField = '<unknown>'
                SQLOrigin = 'NOMBRE_CLIENTE'
              end
              item
                DatasetField = 'NIF_CIF_CLIENTE'
                TableField = '<unknown>'
                SQLOrigin = 'NIF_CIF_CLIENTE'
              end
              item
                DatasetField = 'ENTIDAD'
                TableField = '<unknown>'
                SQLOrigin = 'ENTIDAD'
              end
              item
                DatasetField = 'SUCURSAL'
                TableField = '<unknown>'
                SQLOrigin = 'SUCURSAL'
              end
              item
                DatasetField = 'DC'
                TableField = '<unknown>'
                SQLOrigin = 'DC'
              end
              item
                DatasetField = 'CUENTA'
                TableField = '<unknown>'
                SQLOrigin = 'CUENTA'
              end
              item
                DatasetField = 'POBLACION_CLIENTE'
                TableField = '<unknown>'
                SQLOrigin = 'POBLACION_CLIENTE'
              end
              item
                DatasetField = 'CODIGO_POSTAL_CLIENTE'
                TableField = '<unknown>'
                SQLOrigin = 'CODIGO_POSTAL_CLIENTE'
              end>
          end>
        Name = 'Informe_Detalles'
        Fields = <
          item
            Name = 'ID'
            DataType = datInteger
          end
          item
            Name = 'REFERENCIA'
            DataType = datString
            Size = 255
          end
          item
            Name = 'SITUACION'
            DataType = datString
            Size = 9
          end
          item
            Name = 'ID_FACTURA'
            DataType = datInteger
          end
          item
            Name = 'ID_REMESA'
            DataType = datInteger
          end
          item
            Name = 'REFERENCIA_REMESA'
            DataType = datString
            Size = 255
          end
          item
            Name = 'FECHA_VENCIMIENTO'
            DataType = datDateTime
          end
          item
            Name = 'DESCRIPCION'
            DataType = datString
            Size = 255
          end
          item
            Name = 'OBSERVACIONES'
            DataType = datString
            Size = 255
          end
          item
            Name = 'IMPORTE'
            DataType = datCurrency
          end
          item
            Name = 'OTROS_GASTOS'
            DataType = datCurrency
          end
          item
            Name = 'IMPORTE_TOTAL'
            DataType = datCurrency
          end
          item
            Name = 'FECHA_FACTURA'
            DataType = datDateTime
          end
          item
            Name = 'FORMA_PAGO_FACTURA'
            DataType = datString
            Size = 255
          end
          item
            Name = 'IMPORTE_FACTURA'
            DataType = datCurrency
          end
          item
            Name = 'ID_EMPRESA'
            DataType = datInteger
          end
          item
            Name = 'NOMBRE_CLIENTE'
            DataType = datString
            Size = 255
          end
          item
            Name = 'NIF_CIF_CLIENTE'
            DataType = datString
            Size = 15
          end
          item
            Name = 'POBLACION_CLIENTE'
            DataType = datString
            Size = 255
          end
          item
            Name = 'CODIGO_POSTAL_CLIENTE'
            DataType = datString
            Size = 10
          end
          item
            Name = 'ENTIDAD'
            DataType = datString
            Size = 254
          end
          item
            Name = 'SUCURSAL'
            DataType = datString
            Size = 254
          end
          item
            Name = 'DC'
            DataType = datString
            Size = 254
          end
          item
            Name = 'CUENTA'
            DataType = datString
            Size = 254
          end>
      end>
    JoinDataTables = <>
    UnionDataTables = <>
    Commands = <>
    RelationShips = <>
    UpdateRules = <>
    Version = 0
    Left = 48
    Top = 16
  end
  object DataDictionary: TDADataDictionary
    Fields = <>
    Left = 46
    Top = 158
  end
  object frxReport: TfrxReport
    Version = '4.8.11'
    DotMatrixReport = False
    EngineOptions.DoublePass = True
    IniFile = '\Software\Fast Reports'
    PreviewOptions.Buttons = [pbPrint, pbLoad, pbSave, pbExport, pbZoom, pbFind, pbOutline, pbPageSetup, pbTools, pbEdit, pbNavigator, pbExportQuick]
    PreviewOptions.OutlineWidth = 180
    PreviewOptions.Zoom = 1.000000000000000000
    PrintOptions.Printer = 'Default'
    PrintOptions.PrintOnSheet = 0
    ReportOptions.CreateDate = 37871.995398692100000000
    ReportOptions.LastChange = 40199.771052685190000000
    ReportOptions.VersionBuild = '1'
    ReportOptions.VersionMajor = '12'
    ReportOptions.VersionMinor = '13'
    ReportOptions.VersionRelease = '1'
    ScriptLanguage = 'PascalScript'
    ShowProgress = False
    StoreInDFM = False
    OnStartReport = 'frxReportOnStartReport'
    Left = 169
    Top = 16
  end
  object frxDBCabecera: TfrxDBDataset
    UserName = 'frxDBCabecera'
    CloseDataSource = False
    DataSource = DADataCabecera
    BCDToCurrency = False
    Left = 264
    Top = 16
  end
  object frxDBDetalles: TfrxDBDataset
    UserName = 'frxDBDetalles'
    CloseDataSource = False
    DataSource = DADataDetalles
    BCDToCurrency = False
    Left = 344
    Top = 16
  end
  object Bin2DataStreamer: TDABin2DataStreamer
    Left = 48
    Top = 96
  end
end
