LP#1702489 - Wrong join type on Acq Lineitem Detail
authorChris Sharp <csharp@georgialibraries.org>
Wed, 5 Jul 2017 14:24:32 +0000 (10:24 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 5 Jul 2017 14:38:32 +0000 (10:38 -0400)
The Line Item Detail reporting source offers the wrong
type of nullability when nullability selection is
enabled and the user selects the Evergreen Copy ID
link (offers "Parent" but should be "Child"). This is
because the fieldmapper assumes a "has_a" relationship
between acqlid and acp when it should be a "might_have".

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/examples/fm_IDL.xml

index 69d3f2b..deb223a 100644 (file)
@@ -8826,7 +8826,7 @@ SELECT  usr,
                </fields>
                <links>
                        <link field="lineitem" reltype="has_a" key="id" map="" class="jub"/>
-                       <link field="eg_copy_id" reltype="has_a" key="id" map="" class="acp"/>
+                       <link field="eg_copy_id" reltype="might_have" key="id" map="" class="acp"/>
                        <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
                        <link field="fund_debit" reltype="has_a" key="id" map="" class="acqfdeb"/>
                        <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>