Add accepting_usr to IDL to fix reporter field
authorRemington Steed <rjs7@calvin.edu>
Thu, 14 Mar 2013 18:37:17 +0000 (14:37 -0400)
committerBen Shum <bshum@biblio.org>
Sat, 27 Apr 2013 05:19:25 +0000 (01:19 -0400)
In the reporter interface, the view 'Payments: Brick-and-mortar' is
missing the 'Accepting User' field, which is present in the similar view
'Payments: Desk'. This field is already present in the database view and
is simply missing from the IDL.  Since it is needed for certain kinds of
reports, this commit adds the missing IDL fields. It also adds the
missing 'reporter:datatype' to an existing instance of the IDL field.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/examples/fm_IDL.xml

index 40ca175..122e044 100644 (file)
@@ -6431,6 +6431,7 @@ SELECT  usr,
                        <field reporter:label="Payment Date/Time" name="payment_ts" reporter:datatype="timestamp"/>
                        <field reporter:label="Payment Type" name="payment_type" reporter:datatype="text"/>
                        <field reporter:label="Billable Transaction" name="xact" reporter:datatype="link"/>
                        <field reporter:label="Payment Date/Time" name="payment_ts" reporter:datatype="timestamp"/>
                        <field reporter:label="Payment Type" name="payment_type" reporter:datatype="text"/>
                        <field reporter:label="Billable Transaction" name="xact" reporter:datatype="link"/>
+                       <field reporter:label="Accepting User" name="accepting_usr" reporter:datatype="link"/>
                        <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
                        <field reporter:label="Cash Payment Detail" name="cash_payment" oils_persist:virtual="true" reporter:datatype="link"/>
                        <field reporter:label="Credit Card Payment Detail" name="credit_card_payment" oils_persist:virtual="true" reporter:datatype="link"/>
                        <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
                        <field reporter:label="Cash Payment Detail" name="cash_payment" oils_persist:virtual="true" reporter:datatype="link"/>
                        <field reporter:label="Credit Card Payment Detail" name="credit_card_payment" oils_persist:virtual="true" reporter:datatype="link"/>
@@ -6449,6 +6450,7 @@ SELECT  usr,
                        <link field="forgive_payment" reltype="might_have" key="id" map="" class="mfp"/>
                        <link field="goods_payment" reltype="might_have" key="id" map="" class="mgp"/>
                        <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
                        <link field="forgive_payment" reltype="might_have" key="id" map="" class="mfp"/>
                        <link field="goods_payment" reltype="might_have" key="id" map="" class="mgp"/>
                        <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
+                       <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
                </links>
        </class>
        <class id="mndp" controller="open-ils.reporter" oils_obj:fieldmapper="money::non_drawer_payment" oils_persist:tablename="money.non_drawer_payment_view" reporter:core="true" reporter:label="Payments: Non-drawer Staff">
                </links>
        </class>
        <class id="mndp" controller="open-ils.reporter" oils_obj:fieldmapper="money::non_drawer_payment" oils_persist:tablename="money.non_drawer_payment_view" reporter:core="true" reporter:label="Payments: Non-drawer Staff">
@@ -6481,7 +6483,7 @@ SELECT  usr,
                        <field reporter:label="Payment Date/Time" name="payment_ts" reporter:datatype="timestamp"/>
                        <field reporter:label="Payment Type" name="payment_type" reporter:datatype="text"/>
                        <field reporter:label="Billable Transaction" name="xact" reporter:datatype="link"/>
                        <field reporter:label="Payment Date/Time" name="payment_ts" reporter:datatype="timestamp"/>
                        <field reporter:label="Payment Type" name="payment_type" reporter:datatype="text"/>
                        <field reporter:label="Billable Transaction" name="xact" reporter:datatype="link"/>
-                       <field reporter:label="Accepting User" name="accepting_usr" />
+                       <field reporter:label="Accepting User" name="accepting_usr" reporter:datatype="link"/>
                        <field reporter:label="Cash Drawer" name="cash_drawer" reporter:datatype="link"/>
                        <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
                        <field reporter:label="Cash Payment" name="cash_payment" oils_persist:virtual="true" reporter:datatype="link"/>
                        <field reporter:label="Cash Drawer" name="cash_drawer" reporter:datatype="link"/>
                        <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
                        <field reporter:label="Cash Payment" name="cash_payment" oils_persist:virtual="true" reporter:datatype="link"/>