object srvInfMargenArticulo: TsrvInfMargenArticulo
  OldCreateOrder = True
  SessionManager = dmServer.SessionManager
  AcquireConnection = True
  ServiceSchema = schInfMargenArticulo
  ServiceAdapter = DABINAdapter
  Height = 297
  Width = 298
  object schInfMargenArticulo: TDASchema
    ConnectionManager = dmServer.ConnectionManager
    DataDictionary = DataDictionary
    Datasets = <
      item
        Params = <
          item
            Name = 'FECHAINI'
            BlobType = dabtUnknown
            Value = ''
            ParamType = daptInput
          end
          item
            Name = 'FECHAFIN'
            BlobType = dabtUnknown
            Value = ''
            ParamType = daptInput
          end>
        Statements = <
          item
            Connection = 'IBX'
            TargetTable = 'INF_MARGEN_ARTICULOS'
            SQL = 
              'SELECT'#10#10'    INF_MARGEN_ARTICULOS.ID_EMPRESA,'#10'    INF_MARGEN_ARTI' +
              'CULOS.ID_CLIENTE,'#10'    INF_MARGEN_ARTICULOS.ID_ARTICULO,'#10'    INF_' +
              'MARGEN_ARTICULOS.NIF_CIF_CLIENTE,'#10'    INF_MARGEN_ARTICULOS.NOMBR' +
              'E_CLIENTE,'#10'    INF_MARGEN_ARTICULOS.NOMBRE_COMERCIAL_CLIENTE,'#10'  ' +
              '  INF_MARGEN_ARTICULOS.NIF_CIF_AGENTE,'#10'    INF_MARGEN_ARTICULOS.' +
              'NOMBRE_AGENTE,'#10'    INF_MARGEN_ARTICULOS.FAMILIA,'#10'    INF_MARGEN_' +
              'ARTICULOS.REFERENCIA,'#10'    INF_MARGEN_ARTICULOS.REFERENCIA_PROV,'#10 +
              '    INF_MARGEN_ARTICULOS.DESCRIPCION,'#10'    INF_MARGEN_ARTICULOS.C' +
              'OMISIONABLE,'#10'    INF_MARGEN_ARTICULOS.INVENTARIABLE,'#10'    INF_MAR' +
              'GEN_ARTICULOS.IMP_UNIDAD_ULT_VENT,'#10'    INF_MARGEN_ARTICULOS.IMP_' +
              'NETO_ULT_VENT,'#10'    INF_MARGEN_ARTICULOS.IMP_PORTE_ULT_VENT,'#10'    ' +
              'INF_MARGEN_ARTICULOS.IMP_UNIDAD_PRO_VENT,'#10'    INF_MARGEN_ARTICUL' +
              'OS.IMP_NETO_PRO_VENT,'#10'    INF_MARGEN_ARTICULOS.IMP_PORTE_PRO_VEN' +
              'T,'#10'    INF_MARGEN_ARTICULOS.IMP_UNIDAD_COMPRA,'#10'    INF_MARGEN_AR' +
              'TICULOS.IMP_NETO_COMPRA,'#10'    INF_MARGEN_ARTICULOS.IMP_PORTE_COMP' +
              'RA,'#10'    INF_MARGEN_ARTICULOS.IMP_UNIDAD_ULT_COMP,'#10'    INF_MARGEN' +
              '_ARTICULOS.IMP_NETO_ULT_COMP,'#10'    INF_MARGEN_ARTICULOS.IMP_PORTE' +
              '_ULT_COMP,'#10'    INF_MARGEN_ARTICULOS.IMP_UNIDAD_PRO_COMP,'#10'    INF' +
              '_MARGEN_ARTICULOS.IMP_NETO_PRO_COMP,'#10'    INF_MARGEN_ARTICULOS.IM' +
              'P_PORTE_PRO_COMP,'#10'    INF_MARGEN_ARTICULOS.IMP_MARGEN_ULT_VENT_C' +
              'OMPRA,'#10'    INF_MARGEN_ARTICULOS.POR_MARGEN_ULT_VENT_COMPRA,'#10'    ' +
              'INF_MARGEN_ARTICULOS.IMP_MARGEN_ULT_VENT_ULT_COMP,'#10'    INF_MARGE' +
              'N_ARTICULOS.POR_MARGEN_ULT_VENT_ULT_COMP,'#10'    INF_MARGEN_ARTICUL' +
              'OS.IMP_MARGEN_ULT_VENT_PRO_COMP,'#10'    INF_MARGEN_ARTICULOS.POR_MA' +
              'RGEN_ULT_VENT_PRO_COMP,'#10'    INF_MARGEN_ARTICULOS.IMP_MARGEN_PRO_' +
              'VENT_COMPRA,'#10'    INF_MARGEN_ARTICULOS.POR_MARGEN_PRO_VENT_COMPRA' +
              ','#10'    INF_MARGEN_ARTICULOS.IMP_MARGEN_PRO_VENT_ULT_COMP,'#10'    INF' +
              '_MARGEN_ARTICULOS.POR_MARGEN_PRO_VENT_ULT_COMP,'#10'    INF_MARGEN_A' +
              'RTICULOS.IMP_MARGEN_PRO_VENT_PRO_COMP,'#10'    INF_MARGEN_ARTICULOS.' +
              'POR_MARGEN_PRO_VENT_PRO_COMP'#10#10'FROM'#10#10'(SELECT'#10'MARGEN_VENTAS.ID_EMP' +
              'RESA AS ID_EMPRESA,'#10'MARGEN_VENTAS.ID_CLIENTE AS ID_CLIENTE,'#10'MARG' +
              'EN_VENTAS.ID_ARTICULO AS ID_ARTICULO,'#10#10'CLIENTES.NIF_CIF AS NIF_C' +
              'IF_CLIENTE,'#10'CLIENTES.NOMBRE AS NOMBRE_CLIENTE,'#10'CLIENTES_DATOS.NO' +
              'MBRE_COMERCIAL AS NOMBRE_COMERCIAL_CLIENTE,'#10#10'AGENTES.NIF_CIF AS ' +
              'NIF_CIF_AGENTE,'#10'AGENTES.NOMBRE AS NOMBRE_AGENTE,'#10#10'ARTICULOS.FAMI' +
              'LIA AS FAMILIA,'#10'ARTICULOS.REFERENCIA AS REFERENCIA,'#10'ARTICULOS.RE' +
              'FERENCIA_PROV AS REFERENCIA_PROV,'#10'ARTICULOS.DESCRIPCION AS DESCR' +
              'IPCION,'#10'ARTICULOS.COMISIONABLE AS COMISIONABLE,'#10'ARTICULOS.INVENT' +
              'ARIABLE AS INVENTARIABLE,'#10#10'COALESCE(MARGEN_VENTAS.IMPORTE_UNIDAD' +
              '_ULT_VENT, 0) AS IMP_UNIDAD_ULT_VENT,'#10'COALESCE(MARGEN_VENTAS.IMP' +
              'ORTE_NETO_ULT_VENT, 0) AS IMP_NETO_ULT_VENT,'#10'COALESCE(MARGEN_VEN' +
              'TAS.IMPORTE_PORTE_ULT_VENT, 0) AS IMP_PORTE_ULT_VENT,'#10#10'COALESCE(' +
              'MARGEN_VENTAS.IMPORTE_UNIDAD_PRO_VENT, 0) AS IMP_UNIDAD_PRO_VENT' +
              ','#10'COALESCE(MARGEN_VENTAS.IMPORTE_NETO_PRO_VENT, 0) AS IMP_NETO_P' +
              'RO_VENT,'#10'COALESCE(MARGEN_VENTAS.IMPORTE_PORTE_PRO_VENT, 0) AS IM' +
              'P_PORTE_PRO_VENT,'#10#10'COALESCE(ARTICULOS.PRECIO_COSTE, 0) AS IMP_UN' +
              'IDAD_COMPRA,'#10'COALESCE(ARTICULOS.PRECIO_NETO, 0) AS IMP_NETO_COMP' +
              'RA,'#10'COALESCE(ARTICULOS.PRECIO_PORTE, 0) AS IMP_PORTE_COMPRA,'#10#10'CO' +
              'ALESCE(MARGEN_COMPRAS.IMPORTE_UNIDAD_ULT_COMP, 0) AS IMP_UNIDAD_' +
              'ULT_COMP,'#10'COALESCE(MARGEN_COMPRAS.IMPORTE_NETO_ULT_COMP, 0) AS I' +
              'MP_NETO_ULT_COMP,'#10'COALESCE(MARGEN_COMPRAS.IMPORTE_PORTE_ULT_COMP' +
              ', 0) AS IMP_PORTE_ULT_COMP,'#10#10'COALESCE(MARGEN_COMPRAS.IMPORTE_UNI' +
              'DAD_PRO_COMP, 0) AS IMP_UNIDAD_PRO_COMP,'#10'COALESCE(MARGEN_COMPRAS' +
              '.IMPORTE_NETO_PRO_COMP, 0) AS IMP_NETO_PRO_COMP,'#10'COALESCE(MARGEN' +
              '_COMPRAS.IMPORTE_PORTE_PRO_COMP, 0) AS IMP_PORTE_PRO_COMP,'#10#10#10#10#10'M' +
              'ARGEN_VENTAS.IMPORTE_NETO_ULT_VENT - ARTICULOS.PRECIO_NETO AS IM' +
              'P_MARGEN_ULT_VENT_COMPRA,'#10'CASE'#10'WHEN  ARTICULOS.PRECIO_NETO = 0 T' +
              'HEN 100'#10'WHEN (MARGEN_VENTAS.IMPORTE_NETO_ULT_VENT - ARTICULOS.PR' +
              'ECIO_NETO) > 0 THEN'#10'     ((MARGEN_VENTAS.IMPORTE_NETO_ULT_VENT -' +
              ' ARTICULOS.PRECIO_NETO) * 100) / MARGEN_VENTAS.IMPORTE_NETO_ULT_' +
              'VENT'#10'ELSE 0'#10'END'#10'AS POR_MARGEN_ULT_VENT_COMPRA,'#10#10'MARGEN_VENTAS.IM' +
              'PORTE_NETO_ULT_VENT - MARGEN_COMPRAS.IMPORTE_NETO_ULT_COMP AS IM' +
              'P_MARGEN_ULT_VENT_ULT_COMP,'#10'CASE'#10'WHEN  MARGEN_COMPRAS.IMPORTE_NE' +
              'TO_ULT_COMP = 0 THEN 100'#10'WHEN (MARGEN_VENTAS.IMPORTE_NETO_ULT_VE' +
              'NT - MARGEN_COMPRAS.IMPORTE_NETO_ULT_COMP) > 0 THEN'#10'     ((MARGE' +
              'N_VENTAS.IMPORTE_NETO_ULT_VENT - MARGEN_COMPRAS.IMPORTE_NETO_ULT' +
              '_COMP) * 100) / MARGEN_VENTAS.IMPORTE_NETO_ULT_VENT'#10'ELSE 0'#10'END'#10'A' +
              'S POR_MARGEN_ULT_VENT_ULT_COMP,'#10#10'MARGEN_VENTAS.IMPORTE_NETO_ULT_' +
              'VENT - MARGEN_COMPRAS.IMPORTE_NETO_PRO_COMP AS IMP_MARGEN_ULT_VE' +
              'NT_PRO_COMP,'#10'CASE'#10'WHEN  MARGEN_COMPRAS.IMPORTE_NETO_PRO_COMP = 0' +
              ' THEN 100'#10'WHEN (MARGEN_VENTAS.IMPORTE_NETO_ULT_VENT - MARGEN_COM' +
              'PRAS.IMPORTE_NETO_PRO_COMP) > 0 THEN'#10'     ((MARGEN_VENTAS.IMPORT' +
              'E_NETO_ULT_VENT - MARGEN_COMPRAS.IMPORTE_NETO_PRO_COMP) * 100) /' +
              ' MARGEN_VENTAS.IMPORTE_NETO_ULT_VENT'#10'ELSE 0'#10'END'#10'AS POR_MARGEN_UL' +
              'T_VENT_PRO_COMP,'#10#10#10#10'MARGEN_VENTAS.IMPORTE_NETO_PRO_VENT - ARTICU' +
              'LOS.PRECIO_NETO AS IMP_MARGEN_PRO_VENT_COMPRA,'#10'CASE'#10'WHEN  ARTICU' +
              'LOS.PRECIO_NETO = 0 THEN 100'#10'WHEN (MARGEN_VENTAS.IMPORTE_NETO_PR' +
              'O_VENT - ARTICULOS.PRECIO_NETO) > 0 THEN'#10'     ((MARGEN_VENTAS.IM' +
              'PORTE_NETO_PRO_VENT - ARTICULOS.PRECIO_NETO) * 100) / MARGEN_VEN' +
              'TAS.IMPORTE_NETO_PRO_VENT'#10'ELSE 0'#10'END'#10'AS POR_MARGEN_PRO_VENT_COMP' +
              'RA,'#10#10'MARGEN_VENTAS.IMPORTE_NETO_PRO_VENT - MARGEN_COMPRAS.IMPORT' +
              'E_NETO_ULT_COMP AS IMP_MARGEN_PRO_VENT_ULT_COMP,'#10'CASE'#10'WHEN  MARG' +
              'EN_COMPRAS.IMPORTE_NETO_ULT_COMP = 0 THEN 100'#10'WHEN (MARGEN_VENTA' +
              'S.IMPORTE_NETO_PRO_VENT - MARGEN_COMPRAS.IMPORTE_NETO_ULT_COMP) ' +
              '> 0 THEN'#10'     ((MARGEN_VENTAS.IMPORTE_NETO_PRO_VENT - MARGEN_COM' +
              'PRAS.IMPORTE_NETO_ULT_COMP) * 100) / MARGEN_VENTAS.IMPORTE_NETO_' +
              'PRO_VENT'#10'ELSE 0'#10'END'#10'AS POR_MARGEN_PRO_VENT_ULT_COMP,'#10#10'MARGEN_VEN' +
              'TAS.IMPORTE_NETO_PRO_VENT - MARGEN_COMPRAS.IMPORTE_NETO_PRO_COMP' +
              ' AS IMP_MARGEN_PRO_VENT_PRO_COMP,'#10'CASE'#10'WHEN  MARGEN_COMPRAS.IMPO' +
              'RTE_NETO_PRO_COMP = 0 THEN 100'#10'WHEN (MARGEN_VENTAS.IMPORTE_NETO_' +
              'PRO_VENT - MARGEN_COMPRAS.IMPORTE_NETO_PRO_COMP) > 0 THEN'#10'     (' +
              '(MARGEN_VENTAS.IMPORTE_NETO_PRO_VENT - MARGEN_COMPRAS.IMPORTE_NE' +
              'TO_PRO_COMP) * 100) / MARGEN_VENTAS.IMPORTE_NETO_PRO_VENT'#10'ELSE 0' +
              #10'END'#10'AS POR_MARGEN_PRO_VENT_PRO_COMP'#10#10'FROM'#10#10#10'(SELECT ID_EMPRESA,' +
              ' ID_CLIENTE, ID_ARTICULO, COALESCE(SUM(IMPORTE_UNIDAD_ULT_VENT),' +
              '0) AS IMPORTE_UNIDAD_ULT_VENT,'#10'       COALESCE(SUM(IMPORTE_NETO_' +
              'ULT_VENT),0) AS IMPORTE_NETO_ULT_VENT, COALESCE(SUM(IMPORTE_PORT' +
              'E_ULT_VENT),0) AS IMPORTE_PORTE_ULT_VENT,'#10'       COALESCE(SUM(IM' +
              'PORTE_UNIDAD_PRO_VENT),0) AS IMPORTE_UNIDAD_PRO_VENT, COALESCE(S' +
              'UM(IMPORTE_NETO_PRO_VENT),0) AS IMPORTE_NETO_PRO_VENT,'#10'       CO' +
              'ALESCE(SUM(IMPORTE_PORTE_PRO_VENT),0) AS IMPORTE_PORTE_PRO_VENT'#10 +
              #10' FROM'#10'   (SELECT'#10'      ID_EMPRESA, ID_CLIENTE, ID_ARTICULO,'#10'   ' +
              '   IMPORTE_UNIDAD_VENTA AS IMPORTE_UNIDAD_ULT_VENT, IMPORTE_NETO' +
              '_VENTA AS IMPORTE_NETO_ULT_VENT, IMPORTE_PORTE_VENTA AS IMPORTE_' +
              'PORTE_ULT_VENT,'#10'      NULL AS IMPORTE_UNIDAD_PRO_VENT, NULL AS I' +
              'MPORTE_NETO_PRO_VENT, NULL AS IMPORTE_PORTE_PRO_VENT'#10#10'    FROM V' +
              '_INF_ULTIMA_VENTA'#10#10'    UNION ALL'#10#10'    SELECT'#10'      FACTURAS_CLIE' +
              'NTE.ID_EMPRESA,'#10'      FACTURAS_CLIENTE.ID_CLIENTE,'#10'      FACTURA' +
              'S_CLIENTE_DETALLES.ID_ARTICULO,'#10'      NULL, NULL, NULL,'#10'      AV' +
              'G(FACTURAS_CLIENTE_DETALLES.IMPORTE_UNIDAD) AS IMPORTE_UNIDAD_PR' +
              'O_VENT,'#10'      AVG(FACTURAS_CLIENTE_DETALLES.IMPORTE_UNIDAD - (FA' +
              'CTURAS_CLIENTE_DETALLES.IMPORTE_UNIDAD * (FACTURAS_CLIENTE_DETAL' +
              'LES.DESCUENTO / 100))) AS IMPORTE_NETO_PRO_VENT,'#10'      AVG(FACTU' +
              'RAS_CLIENTE_DETALLES.IMPORTE_PORTE) AS IMPORTE_PORTE_PRO_VENT'#10#10' ' +
              '   FROM FACTURAS_CLIENTE_DETALLES'#10'    LEFT OUTER JOIN FACTURAS_C' +
              'LIENTE'#10'    ON (FACTURAS_CLIENTE.ID = FACTURAS_CLIENTE_DETALLES.I' +
              'D_FACTURA)'#10#10'    WHERE (FACTURAS_CLIENTE_DETALLES.ID_ARTICULO IS ' +
              'NOT NULL) AND (FACTURAS_CLIENTE_DETALLES.ID_ARTICULO > 0)'#10'      ' +
              'AND (FACTURAS_CLIENTE_DETALLES.CANTIDAD > 0)'#10'      AND (FACTURAS' +
              '_CLIENTE.FECHA_FACTURA BETWEEN :FECHAINI AND :FECHAFIN)'#10'    GROU' +
              'P BY 1, 2, 3)'#10#10' GROUP BY 1, 2, 3) MARGEN_VENTAS'#10#10#10'LEFT JOIN'#10#10#10'(S' +
              'ELECT'#10'    ID_EMPRESA, ID_ARTICULO, COALESCE(SUM(IMPORTE_UNIDAD_U' +
              'LT_COMP),0) AS IMPORTE_UNIDAD_ULT_COMP, COALESCE(SUM(IMPORTE_NET' +
              'O_ULT_COMP),0) AS IMPORTE_NETO_ULT_COMP,'#10'    COALESCE(SUM(IMPORT' +
              'E_PORTE_ULT_COMP),0) AS IMPORTE_PORTE_ULT_COMP, COALESCE(SUM(IMP' +
              'ORTE_UNIDAD_PRO_COMP),0) AS IMPORTE_UNIDAD_PRO_COMP,'#10'    COALESC' +
              'E(SUM(IMPORTE_NETO_PRO_COMP),0) AS IMPORTE_NETO_PRO_COMP, COALES' +
              'CE(SUM(IMPORTE_PORTE_PRO_COMP),0) AS IMPORTE_PORTE_PRO_COMP'#10#10' FR' +
              'OM'#10'   (SELECT'#10'      ID_EMPRESA, ID_ARTICULO,'#10'      IMPORTE_UNIDA' +
              'D_COMPRA AS IMPORTE_UNIDAD_ULT_COMP, IMPORTE_NETO_COMPRA AS IMPO' +
              'RTE_NETO_ULT_COMP, IMPORTE_PORTE_COMPRA AS IMPORTE_PORTE_ULT_COM' +
              'P,'#10'      NULL AS IMPORTE_UNIDAD_PRO_COMP, NULL AS IMPORTE_NETO_P' +
              'RO_COMP, NULL AS IMPORTE_PORTE_PRO_COMP'#10#10'    FROM V_INF_ULTIMA_C' +
              'OMPRA'#10#10'    UNION ALL'#10#10'    SELECT'#10'      FACTURAS_PROVEEDOR.ID_EMP' +
              'RESA,'#10'      FACTURAS_PROVEEDOR_DETALLES.ID_ARTICULO,'#10'      NULL,' +
              ' NULL, NULL,'#10'      AVG(FACTURAS_PROVEEDOR_DETALLES.IMPORTE_UNIDA' +
              'D) AS IMPORTE_UNIDAD_PRO_COMP,'#10'      AVG(FACTURAS_PROVEEDOR_DETA' +
              'LLES.IMPORTE_UNIDAD - (FACTURAS_PROVEEDOR_DETALLES.IMPORTE_UNIDA' +
              'D * (FACTURAS_PROVEEDOR_DETALLES.DESCUENTO / 100))) AS IMPORTE_N' +
              'ETO_PRO_COMP,'#10'      AVG(FACTURAS_PROVEEDOR_DETALLES.IMPORTE_PORT' +
              'E) AS IMPORTE_PORTE_PRO_COMP'#10#10'    FROM FACTURAS_PROVEEDOR_DETALL' +
              'ES'#10'    LEFT OUTER JOIN FACTURAS_PROVEEDOR'#10'    ON (FACTURAS_PROVE' +
              'EDOR.ID = FACTURAS_PROVEEDOR_DETALLES.ID_FACTURA)'#10#10'    WHERE (FA' +
              'CTURAS_PROVEEDOR_DETALLES.ID_ARTICULO IS NOT NULL) AND (FACTURAS' +
              '_PROVEEDOR_DETALLES.ID_ARTICULO > 0)'#10'      AND (FACTURAS_PROVEED' +
              'OR_DETALLES.CANTIDAD > 0)'#10'      AND (FACTURAS_PROVEEDOR.FECHA_FA' +
              'CTURA BETWEEN :FECHAINI AND :FECHAFIN)'#10'    GROUP BY 1, 2)'#10#10'  GRO' +
              'UP BY 1, 2) MARGEN_COMPRAS'#10#10#10'ON (MARGEN_COMPRAS.ID_EMPRESA = MAR' +
              'GEN_VENTAS.ID_EMPRESA)'#10'AND (MARGEN_COMPRAS.ID_ARTICULO = MARGEN_' +
              'VENTAS.ID_ARTICULO)'#10#10#10'LEFT JOIN ARTICULOS ON (ARTICULOS.ID = MAR' +
              'GEN_VENTAS.ID_ARTICULO)'#10'LEFT JOIN CONTACTOS CLIENTES ON (CLIENTE' +
              'S.ID = MARGEN_VENTAS.ID_CLIENTE)'#10'LEFT JOIN CLIENTES_DATOS ON (CL' +
              'IENTES_DATOS.ID_CLIENTE = CLIENTES.ID)'#10'LEFT JOIN CONTACTOS AGENT' +
              'ES ON (AGENTES.ID = CLIENTES_DATOS.ID_AGENTE)'#10'WHERE ARTICULOS.IN' +
              'VENTARIABLE = 1) INF_MARGEN_ARTICULOS'
            StatementType = stSQL
            ColumnMappings = <
              item
                DatasetField = 'ID_ARTICULO'
                TableField = 'ID_ARTICULO'
              end
              item
                DatasetField = 'FAMILIA'
                TableField = 'FAMILIA'
              end
              item
                DatasetField = 'REFERENCIA'
                TableField = 'REFERENCIA'
              end
              item
                DatasetField = 'REFERENCIA_PROV'
                TableField = 'REFERENCIA_PROV'
              end
              item
                DatasetField = 'DESCRIPCION'
                TableField = 'DESCRIPCION'
              end
              item
                DatasetField = 'COMISIONABLE'
                TableField = 'COMISIONABLE'
              end
              item
                DatasetField = 'INVENTARIABLE'
                TableField = 'INVENTARIABLE'
              end
              item
                DatasetField = 'NIF_CIF_CLIENTE'
                TableField = 'NIF_CIF_CLIENTE'
              end
              item
                DatasetField = 'NOMBRE_CLIENTE'
                TableField = 'NOMBRE_CLIENTE'
              end
              item
                DatasetField = 'NOMBRE_COMERCIAL_CLIENTE'
                TableField = 'NOMBRE_COMERCIAL_CLIENTE'
              end
              item
                DatasetField = 'NIF_CIF_AGENTE'
                TableField = 'NIF_CIF_AGENTE'
              end
              item
                DatasetField = 'NOMBRE_AGENTE'
                TableField = 'NOMBRE_AGENTE'
              end
              item
                DatasetField = 'ID_EMPRESA'
                TableField = 'ID_EMPRESA'
              end
              item
                DatasetField = 'ID_CLIENTE'
                TableField = 'ID_CLIENTE'
              end
              item
                DatasetField = 'IMP_UNIDAD_ULT_VENT'
                TableField = 'IMP_UNIDAD_ULT_VENT'
              end
              item
                DatasetField = 'IMP_NETO_ULT_VENT'
                TableField = 'IMP_NETO_ULT_VENT'
              end
              item
                DatasetField = 'IMP_PORTE_ULT_VENT'
                TableField = 'IMP_PORTE_ULT_VENT'
              end
              item
                DatasetField = 'IMP_UNIDAD_PRO_VENT'
                TableField = 'IMP_UNIDAD_PRO_VENT'
              end
              item
                DatasetField = 'IMP_NETO_PRO_VENT'
                TableField = 'IMP_NETO_PRO_VENT'
              end
              item
                DatasetField = 'IMP_PORTE_PRO_VENT'
                TableField = 'IMP_PORTE_PRO_VENT'
              end
              item
                DatasetField = 'IMP_UNIDAD_COMPRA'
                TableField = 'IMP_UNIDAD_COMPRA'
              end
              item
                DatasetField = 'IMP_NETO_COMPRA'
                TableField = 'IMP_NETO_COMPRA'
              end
              item
                DatasetField = 'IMP_PORTE_COMPRA'
                TableField = 'IMP_PORTE_COMPRA'
              end
              item
                DatasetField = 'IMP_UNIDAD_ULT_COMP'
                TableField = 'IMP_UNIDAD_ULT_COMP'
              end
              item
                DatasetField = 'IMP_NETO_ULT_COMP'
                TableField = 'IMP_NETO_ULT_COMP'
              end
              item
                DatasetField = 'IMP_PORTE_ULT_COMP'
                TableField = 'IMP_PORTE_ULT_COMP'
              end
              item
                DatasetField = 'IMP_UNIDAD_PRO_COMP'
                TableField = 'IMP_UNIDAD_PRO_COMP'
              end
              item
                DatasetField = 'IMP_NETO_PRO_COMP'
                TableField = 'IMP_NETO_PRO_COMP'
              end
              item
                DatasetField = 'IMP_PORTE_PRO_COMP'
                TableField = 'IMP_PORTE_PRO_COMP'
              end
              item
                DatasetField = 'IMP_MARGEN_ULT_VENT_COMPRA'
                TableField = 'IMP_MARGEN_ULT_VENT_COMPRA'
              end
              item
                DatasetField = 'POR_MARGEN_ULT_VENT_COMPRA'
                TableField = 'POR_MARGEN_ULT_VENT_COMPRA'
              end
              item
                DatasetField = 'IMP_MARGEN_ULT_VENT_ULT_COMP'
                TableField = 'IMP_MARGEN_ULT_VENT_ULT_COMP'
              end
              item
                DatasetField = 'POR_MARGEN_ULT_VENT_ULT_COMP'
                TableField = 'POR_MARGEN_ULT_VENT_ULT_COMP'
              end
              item
                DatasetField = 'IMP_MARGEN_ULT_VENT_PRO_COMP'
                TableField = 'IMP_MARGEN_ULT_VENT_PRO_COMP'
              end
              item
                DatasetField = 'POR_MARGEN_ULT_VENT_PRO_COMP'
                TableField = 'POR_MARGEN_ULT_VENT_PRO_COMP'
              end
              item
                DatasetField = 'IMP_MARGEN_PRO_VENT_COMPRA'
                TableField = 'IMP_MARGEN_PRO_VENT_COMPRA'
              end
              item
                DatasetField = 'POR_MARGEN_PRO_VENT_COMPRA'
                TableField = 'POR_MARGEN_PRO_VENT_COMPRA'
              end
              item
                DatasetField = 'IMP_MARGEN_PRO_VENT_ULT_COMP'
                TableField = 'IMP_MARGEN_PRO_VENT_ULT_COMP'
              end
              item
                DatasetField = 'POR_MARGEN_PRO_VENT_ULT_COMP'
                TableField = 'POR_MARGEN_PRO_VENT_ULT_COMP'
              end
              item
                DatasetField = 'IMP_MARGEN_PRO_VENT_PRO_COMP'
                TableField = 'IMP_MARGEN_PRO_VENT_PRO_COMP'
              end
              item
                DatasetField = 'POR_MARGEN_PRO_VENT_PRO_COMP'
                TableField = 'POR_MARGEN_PRO_VENT_PRO_COMP'
              end>
          end>
        Name = 'InfMargenArticulo'
        Fields = <
          item
            Name = 'ID_EMPRESA'
            DataType = datInteger
            BlobType = dabtUnknown
            DictionaryEntry = 'InfVentasArticulo_ID_EMPRESA'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'ID_CLIENTE'
            DataType = datInteger
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'ID_ARTICULO'
            DataType = datInteger
            BlobType = dabtUnknown
            DictionaryEntry = 'InfVentasArticulo_ID_ARTICULO'
            InPrimaryKey = True
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'FAMILIA'
            DataType = datString
            Size = 255
            BlobType = dabtUnknown
            DictionaryEntry = 'InfVentasArticulo_FAMILIA'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'REFERENCIA'
            DataType = datString
            Size = 255
            BlobType = dabtUnknown
            DictionaryEntry = 'InfVentasArticulo_REFERENCIA'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'REFERENCIA_PROV'
            DataType = datString
            Size = 255
            BlobType = dabtUnknown
            DictionaryEntry = 'InfVentasArticulo_REFERENCIA_PROV'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'DESCRIPCION'
            DataType = datString
            Size = 255
            BlobType = dabtUnknown
            DictionaryEntry = 'InfVentasArticulo_DESCRIPCION'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'COMISIONABLE'
            DataType = datInteger
            BlobType = dabtUnknown
            DictionaryEntry = 'InfVentasArticulo_COMISIONABLE'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'INVENTARIABLE'
            DataType = datInteger
            BlobType = dabtUnknown
            DictionaryEntry = 'InfVentasArticulo_INVENTARIABLE'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'NIF_CIF_CLIENTE'
            DataType = datString
            Size = 15
            BlobType = dabtUnknown
            DictionaryEntry = 'InfVentasArticulo_NIF_CIF_CLIENTE'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'NOMBRE_CLIENTE'
            DataType = datString
            Size = 255
            BlobType = dabtUnknown
            DictionaryEntry = 'InfVentasArticulo_NOMBRE_CLIENTE'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'NOMBRE_COMERCIAL_CLIENTE'
            DataType = datString
            Size = 255
            BlobType = dabtUnknown
            DictionaryEntry = 'InfVentasArticulo_NOMBRE_COMERCIAL_CLIENTE'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'NIF_CIF_AGENTE'
            DataType = datString
            Size = 15
            BlobType = dabtUnknown
            DictionaryEntry = 'InfVentasArticulo_NIF_CIF_AGENTE'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'NOMBRE_AGENTE'
            DataType = datString
            Size = 255
            BlobType = dabtUnknown
            DictionaryEntry = 'InfVentasArticulo_NOMBRE_AGENTE'
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_UNIDAD_ULT_VENT'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_NETO_ULT_VENT'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_PORTE_ULT_VENT'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_UNIDAD_PRO_VENT'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_NETO_PRO_VENT'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_PORTE_PRO_VENT'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_UNIDAD_COMPRA'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_NETO_COMPRA'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_PORTE_COMPRA'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_UNIDAD_ULT_COMP'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_NETO_ULT_COMP'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_PORTE_ULT_COMP'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_UNIDAD_PRO_COMP'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_NETO_PRO_COMP'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_PORTE_PRO_COMP'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_MARGEN_ULT_VENT_COMPRA'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'POR_MARGEN_ULT_VENT_COMPRA'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_MARGEN_ULT_VENT_ULT_COMP'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'POR_MARGEN_ULT_VENT_ULT_COMP'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_MARGEN_ULT_VENT_PRO_COMP'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'POR_MARGEN_ULT_VENT_PRO_COMP'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_MARGEN_PRO_VENT_COMPRA'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'POR_MARGEN_PRO_VENT_COMPRA'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_MARGEN_PRO_VENT_ULT_COMP'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'POR_MARGEN_PRO_VENT_ULT_COMP'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'IMP_MARGEN_PRO_VENT_PRO_COMP'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end
          item
            Name = 'POR_MARGEN_PRO_VENT_PRO_COMP'
            DataType = datFloat
            BlobType = dabtUnknown
            DisplayWidth = 0
            Alignment = taLeftJustify
            InPrimaryKey = False
            Calculated = False
            Lookup = False
            LookupCache = False
          end>
        BusinessRulesClient.ScriptLanguage = rslPascalScript
        BusinessRulesServer.ScriptLanguage = rslPascalScript
      end>
    Commands = <>
    RelationShips = <>
    UpdateRules = <>
    Left = 56
    Top = 32
  end
  object DABINAdapter: TDABINAdapter
    Left = 56
    Top = 96
  end
  object DataDictionary: TDADataDictionary
    Fields = <
      item
        Name = 'InfVentasArticulo_ID_FACTURA'
        DataType = datInteger
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Id factura'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_ID_EMPRESA'
        DataType = datInteger
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Id empresa'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_REFERENCIA_FACTURA'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Ref. factura'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_FECHA_FACTURA'
        DataType = datDateTime
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Fecha factura'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_IMPORTE_TOTAL_FACTURA'
        DataType = datCurrency
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Importe factura'
        Alignment = taRightJustify
      end
      item
        Name = 'InfVentasArticulo_ID_COMISION_FACTURA'
        DataType = datInteger
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Id comision factura'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_ID_ARTICULO'
        DataType = datInteger
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Id art'#237'culo'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_FAMILIA'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Familia'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_REFERENCIA'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Referencia'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_REFERENCIA_PROV'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Ref. proveedor'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_DESCRIPCION'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Descripci'#243'n'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_COMISIONABLE'
        DataType = datInteger
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Comisionable'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_INVENTARIABLE'
        DataType = datInteger
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Inventariable'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_PRECIO_COSTE'
        DataType = datCurrency
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Precio coste'
        Alignment = taRightJustify
      end
      item
        Name = 'InfVentasArticulo_DESCUENTO_PROVEEDOR'
        DataType = datFloat
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Descuento prov.'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_PRECIO_NETO'
        DataType = datCurrency
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Precio neto'
        Alignment = taRightJustify
      end
      item
        Name = 'InfVentasArticulo_PRECIO_PORTE'
        DataType = datCurrency
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Precio porte'
        Alignment = taRightJustify
      end
      item
        Name = 'InfVentasArticulo_CANTIDAD'
        DataType = datInteger
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Cantidad'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_IMPORTE_UNIDAD'
        DataType = datCurrency
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Importe unidad'
        Alignment = taRightJustify
      end
      item
        Name = 'InfVentasArticulo_DESCUENTO_CLIENTE'
        DataType = datFloat
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Descuento cli.'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_IMPORTE_TOTAL'
        DataType = datCurrency
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Importe total'
        Alignment = taRightJustify
      end
      item
        Name = 'InfVentasArticulo_NIF_CIF_PROVEEDOR'
        DataType = datString
        Size = 15
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'NIF/CIF prov.'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_NOMBRE_PROVEEDOR'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Proveedor'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_CALLE_PROVEEDOR'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Calle prov.'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_POBLACION_PROVEEDOR'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Poblaci'#243'n prov.'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_PROVINCIA_PROVEEDOR'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Provincia prov.'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_NIF_CIF_CLIENTE'
        DataType = datString
        Size = 15
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'NIF/CIF cli.'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_NOMBRE_CLIENTE'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Cliente'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_NOMBRE_COMERCIAL_CLIENTE'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Nombre comercial'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_CALLE_CLIENTE'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Calle cli.'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_POBLACION_CLIENTE'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Poblaci'#243'n cli.'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_PROVINCIA_CLIENTE'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Provincia cli.'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_NIF_CIF_AGENTE'
        DataType = datString
        Size = 15
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'NIF/CIF agente'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_NOMBRE_AGENTE'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Agente'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_CALLE_AGENTE'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Calle agente'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_POBLACION_AGENTE'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Poblaci'#243'n agente'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_PROVINCIA_AGENTE'
        DataType = datString
        Size = 255
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Provincia agente'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_COMISION_AGENTE'
        DataType = datFloat
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Comisi'#243'n'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_IMPORTE_COMISION_AGENTE'
        DataType = datCurrency
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Importe comisi'#243'n'
        Alignment = taRightJustify
      end
      item
        Name = 'InfVentasArticulo_IMPORTE_NETO_VENTA'
        DataType = datFloat
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'IMPORTE_NETO_VENTA'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_IMPORTE_PORTE_VENTA'
        DataType = datFloat
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'IMPORTE_PORTE_VENTA'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfVentasArticulo_IMPORTE_TOTAL_VENTA'
        DataType = datFloat
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'IMPORTE_TOTAL_VENTA'
        Alignment = taLeftJustify
      end
      item
        Name = 'InfMargenArticulo_IMPORTE_UNIDAD_ULTIMA_COMPRA'
        DataType = datCurrency
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Precio coste '#250'ltima compra'
        Alignment = taRightJustify
      end
      item
        Name = 'InfMargenArticulo_IMPORTE_NETO_ULTIMA_COMPRA'
        DataType = datCurrency
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Precio neto ultima compra'
        Alignment = taRightJustify
      end
      item
        Name = 'InfMargenArticulo_IMPORTE_PORTE_ULTIMA_COMPRA'
        DataType = datCurrency
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Precio porte '#250'ltima compra'
        Alignment = taRightJustify
      end
      item
        Name = 'InfMargenArticulo_IMPORTE_UNIDAD_PROMEDIO_COMPRA'
        DataType = datCurrency
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Precio coste promedio'
        Alignment = taRightJustify
      end
      item
        Name = 'InfMargenArticulo_IMPORTE_NETO_PROMEDIO_COMPRA'
        DataType = datCurrency
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Precio neto promedio'
        Alignment = taRightJustify
      end
      item
        Name = 'InfMargenArticulo_IMPORTE_PORTE_PROMEDIO_COMPRA'
        DataType = datCurrency
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Precio porte promedio'
        Alignment = taRightJustify
      end
      item
        Name = 'InfMargenArticulo_IMPORTE_NETO_VENTA'
        DataType = datCurrency
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Importe neto venta'
        Alignment = taRightJustify
      end
      item
        Name = 'InfMargenArticulo_IMPORTE_MARGEN_COSTE'
        DataType = datCurrency
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Margen coste'
        Alignment = taRightJustify
      end
      item
        Name = 'InfMargenArticulo_PORCENTAJE_MARGEN_COSTE'
        DataType = datFloat
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = '% margen coste'
        Alignment = taRightJustify
      end
      item
        Name = 'InfMargenArticulo_IMPORTE_MARGEN_ULT_COMPRA'
        DataType = datCurrency
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Margen '#250'ltima compra'
        Alignment = taRightJustify
      end
      item
        Name = 'InfMargenArticulo_PORCENTAJE_MARGEN_ULT_COMPRA'
        DataType = datFloat
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = '% '#250'ltima compra'
        Alignment = taRightJustify
      end
      item
        Name = 'InfMargenArticulo_IMPORTE_MARGEN_PROM_COMPRA'
        DataType = datCurrency
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = 'Margen promedio'
        Alignment = taRightJustify
      end
      item
        Name = 'InfMargenArticulo_PORCENTAJE_MARGEN_PROM_COMPRA'
        DataType = datFloat
        BlobType = dabtUnknown
        DisplayWidth = 0
        DisplayLabel = '% margen promedio'
        Alignment = taRightJustify
      end>
    Left = 54
    Top = 158
  end
end
