LP#1687125: adjust relationship between acqpro and acqpron
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 29 Jun 2017 14:14:17 +0000 (10:14 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 29 Jun 2017 15:57:45 +0000 (11:57 -0400)
A provider can have many notes, and "provider_notes" is effectively
virtual.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/examples/fm_IDL.xml

index d4eb723..00734a8 100644 (file)
@@ -7699,7 +7699,7 @@ SELECT  usr,
                        <field reporter:label="Fax Phone" name="fax_phone" reporter:datatype="text" />
                        <field reporter:label="Default Claim Policy" name="default_claim_policy" reporter:datatype="link" />
                        <field reporter:label="Default # Copies" name="default_copy_count" reporter:datatype="int" />
-                       <field reporter:label="Note" name="provider_note" reporter:datatype="link" />
+                       <field reporter:label="Notes" name="provider_notes" oils_persist:virtual="true" reporter:datatype="link" />
                </fields>
                <links>
                        <link field="currency_type" reltype="has_a" key="code" map="" class="acqct"/>
@@ -7707,7 +7707,7 @@ SELECT  usr,
             <link field="addresses" reltype="has_many" map="" key="provider" class="acqpa"/>
             <link field="edi_default" reltype="has_a" map="" key="id" class="acqedi"/>
                        <link field="default_claim_policy" reltype="has_a" map="" key="id" class="acqclp"/>
-                       <link field="provider_note" reltype="has_a" map="" key="id" class="acqpron"/>
+                       <link field="provider_notes" reltype="has_many" map="" key="provider" class="acqpron"/>
                </links>
         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
             <actions>