<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: niujiaqing1265 $
    $Date: 2010/12/09 05:48:38 $
    $Revision: 1.2 $
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" defaultorderby="type_code" extend="gld.gld_exchangerate_types" extendMode="extend">
    <bm:fields>
        <bm:field name="type_code" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="170" forQuery="true" fordisplay="true" prompt="GLD_EXCHANGERATE_TYPES.TYPE_CODE"/>
        <bm:field name="type_name_id" multiLanguage="true" multiLanguageDescField="type_name"/>
        <bm:field name="type_name" displayWidth="170" forQuery="true" fordisplay="true" prompt="GLD_EXCHANGERATE_TYPES.TYPE_NAME"/>
        <bm:field name="rate_method_code" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="170" fordisplay="true" prompt="GLD_EXCHANGERATE_TYPES.RATE_METHOD_CODE"/>
    </bm:fields>
    <bm:data-filters>
        <bm:data-filter enforceActions="query" expression="ENABLED_FLAG=&apos;Y&apos;"/>
    </bm:data-filters>
    <bm:features>
        <f:multi-language-storage/>
    </bm:features>
    <bm:ref-fields/>
    <bm:query-fields>
        <bm:query-field name="type_code" queryExpression=" ge.type_code like &apos;%&apos;||${@type_code}||&apos;%&apos;"/>
        <bm:query-field name="type_name" queryExpression="exists (select 1 from fnd_descriptions fd where ge.type_name_id=fd.description_id and fd.description_text like &apos;%&apos;||${@type_name}||&apos;%&apos; and fd.language = ${/session/@lang})"/>
    </bm:query-fields>
</bm:model>
