added virtual links for funding_source credit/allocation and fund allocation/debit
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 12 Feb 2008 17:27:50 +0000 (17:27 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 12 Feb 2008 17:27:50 +0000 (17:27 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@8732 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/fm_IDL.xml

index 15480c8..c4a0e71 100644 (file)
                        <field reporter:label="Currency" name="currency_type" oils_obj:array_position="6" oils_persist:virtual="false" oils_persist:primitive="string" reporter:datatype="link" />
 
                        <field name="summary" oils_obj:array_position="7" oils_persist:virtual="true"/>
+                       <field reporter:label="Allocations" name="allocations" oils_obj:array_position="8" oils_persist:virtual="true" reporter:datatype="link"/>
+                       <field reporter:label="Credits" name="credits" oils_obj:array_position="9" oils_persist:virtual="true" reporter:datatype="link"/>
                </fields>
                <links>
                        <link field="currency_type" reltype="has_a" key="code" map="" class="acqct"/>
                        <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+            <link field="allocations" reltype="has_many" key="funding_source" class="acqfa"/>
+            <link field="credits" reltype="has_many" key="funding_source" class="acqfscred"/>
                </links>
         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
             <actions>
                        <field reporter:label="Year" name="year" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="int" />
                        <field reporter:label="Currency Type" name="currency_type" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text" />
                        <field name="summary" oils_obj:array_position="8" oils_persist:virtual="true"/>
+                       <field reporter:label="Allocations" name="allocations" oils_obj:array_position="9" oils_persist:virtual="true" reporter:datatype="link"/>
+                       <field reporter:label="Debits" name="debits" oils_obj:array_position="10" oils_persist:virtual="true" reporter:datatype="link"/>
                </fields>
                <links>
                        <link field="org" reltype="has_a" key="id" map="" class="aou"/>
                        <link field="currency_type" reltype="has_a" key="code" map="" class="acqct"/>
+            <link field="allocations" reltype="has_many" key="fund" class="acqfa"/>
+            <link field="debits" reltype="has_many" key="fund" class="acqfdeb"/>
                </links>
        </class>