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

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Mar 30 10:51:13 EDT 2010


Author: erickson
Date: 2010-03-30 10:51:10 -0400 (Tue, 30 Mar 2010)
New Revision: 16055

Modified:
   trunk/Open-ILS/examples/fm_IDL.xml
Log:
added pcrud entries for fund allocations and fund debits

Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml	2010-03-30 14:34:53 UTC (rev 16054)
+++ trunk/Open-ILS/examples/fm_IDL.xml	2010-03-30 14:51:10 UTC (rev 16055)
@@ -4948,7 +4948,7 @@
 		</permacrud>
 	</class>
 
-	<class id="acqfdeb" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::fund_debit" oils_persist:tablename="acq.fund_debit" reporter:label="Debit From Fund">
+	<class id="acqfdeb" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fund_debit" oils_persist:tablename="acq.fund_debit" reporter:label="Debit From Fund">
 		<fields oils_persist:primary="id" oils_persist:sequence="acq.fund_debit_id_seq">
 			<field reporter:label="Debit ID" name="id" reporter:datatype="id" />
 			<field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
@@ -4963,6 +4963,22 @@
 			<link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
 			<link field="origin_currency_type" reltype="has_a" key="code" map="" class="acqct"/>
 		</links>
+		<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+			<actions>
+				<create permission="ADMIN_ACQ_FUND">
+                    <context link="fund" field="org"/>
+                </create>
+				<retrieve permission="ADMIN_ACQ_FUND">
+                    <context link="fund" field="org"/>
+                </retrieve>
+				<update permission="ADMIN_ACQ_FUND">
+                    <context link="fund" field="org"/>
+                </update>
+				<delete permission="ADMIN_ACQ_FUND">
+                    <context link="fund" field="org"/>
+                </delete>
+			</actions>
+		</permacrud>
 	</class>
 
 	<class id="acqf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fund" oils_persist:tablename="acq.fund" reporter:label="Fund">
@@ -5140,7 +5156,7 @@
 		</links>
 	</class>
 
-	<class id="acqfa" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::fund_allocation" oils_persist:tablename="acq.fund_allocation" reporter:label="Fund Allocation">
+	<class id="acqfa" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fund_allocation" oils_persist:tablename="acq.fund_allocation" reporter:label="Fund Allocation">
 		<fields oils_persist:primary="id" oils_persist:sequence="acq.fund_allocation_id_seq">
 			<field reporter:label="Allocation ID" name="id" reporter:datatype="id" />
 			<field reporter:label="Fund" name="fund" reporter:datatype="link" />
@@ -5155,6 +5171,22 @@
 			<link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
 			<link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
 		</links>
+		<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+			<actions>
+				<create permission="ADMIN_ACQ_FUND">
+                    <context link="fund" field="org"/>
+                </create>
+				<retrieve permission="ADMIN_ACQ_FUND">
+                    <context link="fund" field="org"/>
+                </retrieve>
+				<update permission="ADMIN_ACQ_FUND">
+                    <context link="fund" field="org"/>
+                </update>
+				<delete permission="ADMIN_ACQ_FUND">
+                    <context link="fund" field="org"/>
+                </delete>
+			</actions>
+		</permacrud>
 	</class>
 
     <class id="acqfap" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fund_allocation_percent" oils_persist:tablename="acq.fund_allocation_percent" reporter:label="Fund Allocation Percent">



More information about the open-ils-commits mailing list