[open-ils-commits] r16142 - trunk/Open-ILS/examples (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Apr 6 14:20:09 EDT 2010


Author: erickson
Date: 2010-04-06 14:20:04 -0400 (Tue, 06 Apr 2010)
New Revision: 16142

Modified:
   trunk/Open-ILS/examples/fm_IDL.xml
Log:
added entries and items virtaul fields off of invoice.  more column name repairs

Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml	2010-04-06 16:47:24 UTC (rev 16141)
+++ trunk/Open-ILS/examples/fm_IDL.xml	2010-04-06 18:20:04 UTC (rev 16142)
@@ -873,7 +873,7 @@
 	<class id="aiit" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::invoice_item_type" oils_persist:tablename="acq.invoice_item_type" reporter:label="Non-bibliographic Invoice Item Type" oils_persist:field_safe="true">
 		<fields oils_persist:primary="code">
 			<field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
-			<field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+			<field reporter:label="Label" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
 		</fields>
 		<links/>
         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
@@ -4632,12 +4632,16 @@
 			<field reporter:label="Receive Method" name="recv_method" reporter:datatype="link" />
 			<field reporter:label="Invoice Type" name="inv_type" reporter:datatype="text" />
 			<field reporter:label="Vendor Invoice ID" name="inv_ident" reporter:datatype="text" />
+			<field reporter:label="Invoice Entries" name="entries" reporter:datatype="link" oils_persist:virtual="true"/>
+			<field reporter:label="Invoice Items" name="items" reporter:datatype="link" oils_persist:virtual="true"/>
 		</fields>
 		<links>
 			<link field="receiver" reltype="has_a" key="id" map="" class="aou"/>
 			<link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
 			<link field="shipper" reltype="has_a" key="id" map="" class="acqpro"/>
 			<link field="recv_method" reltype="has_a" key="code" map="" class="acqim"/>
+			<link field="entries" reltype="has_many" key="invoice" map="" class="acqie"/>
+			<link field="items" reltype="has_many" key="invoice" map="" class="acqii"/>
 		</links>
         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
             <actions>
@@ -4702,6 +4706,7 @@
 			<link field="invoice" reltype="has_a" key="id" map="" class="acqinv"/>
 			<link field="purchase_order" reltype="has_a" key="id" map="" class="acqpo"/>
 			<link field="fund_debit" reltype="has_a" key="id" map="" class="acqfdeb"/>
+			<link field="inv_item_type" reltype="has_a" key="code" map="" class="aiit"/>
 		</links>
         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
             <actions>



More information about the open-ils-commits mailing list