﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<data-set>
  <relations format-version="3" relations-version="20230829" main-table="GIDesign" stable-sharing="True" file-name="(Name)">
    <link from="GIFilter (DesignID)" to="GIDesign (DesignID)" />
    <link from="GIGroupBy (DesignID)" to="GIDesign (DesignID)" />
    <link from="GIMassAction (DesignID)" to="GIDesign (DesignID)" />
    <link from="GIMassUpdateField (DesignID)" to="GIDesign (DesignID)" />
    <link from="GINavigationScreen (DesignID)" to="GIDesign (DesignID)" />
    <link from="GINavigationParameter (DesignID, NavigationScreenLineNbr)" to="GINavigationScreen (DesignID, LineNbr)" />
    <link from="GINavigationCondition (DesignID, NavigationScreenLineNbr)" to="GINavigationScreen (DesignID, LineNbr)" />
    <link from="GIOn (DesignID, RelationNbr)" to="GIRelation (DesignID, LineNbr)" />
    <link from="GIRecordDefault (DesignID)" to="GIDesign (DesignID)" />
    <link from="GIRelation (DesignID, ParentTable)" to="GITable (DesignID, Alias)" />
    <link from="GIRelation (DesignID, ChildTable)" to="GITable (DesignID, Alias)" />
    <link from="GIResult (DesignID)" to="GIDesign (DesignID)" />
    <link from="GIResult (ObjectName, DesignID)" to="GITable (Alias, DesignID)" />
    <link from="GISort (DesignID)" to="GIDesign (DesignID)" />
    <link from="GITable (DesignID)" to="GIDesign (DesignID)" />
    <link from="GIWhere (DesignID)" to="GIDesign (DesignID)" />
    <link from="SiteMap (Url)" to="GIDesign (DesignID)" type="WeakByUrl" linkname="toDesignById" baseurl="~/GenericInquiry/GenericInquiry.aspx" paramnames="id" />
    <link from="SiteMap (Url)" to="GIDesign (Name)" type="WeakByUrl" linkname="toDesignByName" baseurl="~/GenericInquiry/GenericInquiry.aspx" />
    <link from="ListEntryPoint (ListScreenID)" to="SiteMap (ScreenID)" />
    <link from="SiteMap (ScreenID)" to="GIDesign (PrimaryScreenIDNew)" linkname="to1Screen" />
    <link from="FilterHeader (ScreenID)" to="SiteMap (ScreenID)" />
    <link from="FilterRow (FilterID)" to="FilterHeader (FilterID)" />
    <link from="PivotTable (NoteID)" to="FilterHeader (RefNoteID)" />
    <link from="PivotField (ScreenID, PivotTableID)" to="PivotTable (ScreenID, PivotTableID)" />
    <link from="MUIScreen (NodeID)" to="SiteMap (NodeID)" />
    <link from="MUIWorkspace (WorkspaceID)" to="MUIScreen (WorkspaceID)" type="FromMaster" linkname="workspaceToScreen" split-location="yes" updateable="True" />
    <link from="MUISubcategory (SubcategoryID)" to="MUIScreen (SubcategoryID)" type="FromMaster" updateable="True" />
    <link from="MUITile (ScreenID)" to="SiteMap (ScreenID)" />
    <link from="MUIWorkspace (WorkspaceID)" to="MUITile (WorkspaceID)" type="FromMaster" linkname="workspaceToTile" split-location="yes" updateable="True" />
    <link from="MUIArea (AreaID)" to="MUIWorkspace (AreaID)" type="FromMaster" updateable="True" />
    <link from="MUIPinnedScreen (NodeID, WorkspaceID)" to="MUIScreen (NodeID, WorkspaceID)" type="WeakIfEmpty" isEmpty="Username" />
    <link from="MUIFavoriteWorkspace (WorkspaceID)" to="MUIWorkspace (WorkspaceID)" type="WeakIfEmpty" isEmpty="Username" />
    <link from="GIDesign (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="GIFilter (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="GIFilter (NoteID)" to="GIFilterKvExt (RecordID)" type="RowKvExt" />
    <link from="GIGroupBy (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="GIOn (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="GIRelation (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="GIResult (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="GIResult (NoteID)" to="GIResultKvExt (RecordID)" type="RowKvExt" />
    <link from="GISort (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="GITable (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="GIWhere (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="FilterHeader (NoteID)" to="Note (NoteID)" type="Note" />
    <link from="FilterHeader (NoteID)" to="FilterHeaderKvExt (RecordID)" type="RowKvExt" />
  </relations>
  <layout>
    <table name="GIDesign">
      <table name="GIFilter" uplink="(DesignID) = (DesignID)">
        <table name="Note" uplink="(NoteID) = (NoteID)" />
        <table name="GIFilterKvExt" uplink="(NoteID) = (RecordID)" />
      </table>
      <table name="GIGroupBy" uplink="(DesignID) = (DesignID)">
        <table name="Note" uplink="(NoteID) = (NoteID)" />
      </table>
      <table name="GIMassAction" uplink="(DesignID) = (DesignID)" />
      <table name="GIMassUpdateField" uplink="(DesignID) = (DesignID)" />
      <table name="GINavigationScreen" uplink="(DesignID) = (DesignID)">
        <table name="GINavigationParameter" uplink="(DesignID, LineNbr) = (DesignID, NavigationScreenLineNbr)" />
        <table name="GINavigationCondition" uplink="(DesignID, LineNbr) = (DesignID, NavigationScreenLineNbr)" />
      </table>
      <table name="GIRecordDefault" uplink="(DesignID) = (DesignID)" />
      <table name="GISort" uplink="(DesignID) = (DesignID)">
        <table name="Note" uplink="(NoteID) = (NoteID)" />
      </table>
      <table name="GITable" uplink="(DesignID) = (DesignID)">
        <table name="GIRelation" uplink="(DesignID, Alias) = (DesignID, ParentTable)">
          <table name="GIOn" uplink="(DesignID, LineNbr) = (DesignID, RelationNbr)">
            <table name="Note" uplink="(NoteID) = (NoteID)" />
          </table>
          <table name="Note" uplink="(NoteID) = (NoteID)" />
        </table>
        <table name="GIResult" uplink="(Alias, DesignID) = (ObjectName, DesignID)">
          <table name="Note" uplink="(NoteID) = (NoteID)" />
          <table name="GIResultKvExt" uplink="(NoteID) = (RecordID)" />
        </table>
        <table name="Note" uplink="(NoteID) = (NoteID)" />
      </table>
      <table name="GIWhere" uplink="(DesignID) = (DesignID)">
        <table name="Note" uplink="(NoteID) = (NoteID)" />
      </table>
      <table name="SiteMap" uplink="(DesignID) = (Url)" linkname="toDesignById">
        <table name="ListEntryPoint" uplink="(ScreenID) = (ListScreenID)" />
        <table name="FilterHeader" uplink="(ScreenID) = (ScreenID)">
          <table name="FilterRow" uplink="(FilterID) = (FilterID)" />
          <table name="PivotTable" uplink="(RefNoteID) = (NoteID)">
            <table name="PivotField" uplink="(ScreenID, PivotTableID) = (ScreenID, PivotTableID)" />
          </table>
          <table name="Note" uplink="(NoteID) = (NoteID)" />
          <table name="FilterHeaderKvExt" uplink="(NoteID) = (RecordID)" />
        </table>
        <table name="MUIScreen" uplink="(NodeID) = (NodeID)">
          <table name="MUIPinnedScreen" uplink="(NodeID, WorkspaceID) = (NodeID, WorkspaceID)" />
        </table>
        <table name="MUITile" uplink="(ScreenID) = (ScreenID)" />
      </table>
      <table name="SiteMap" uplink="(Name) = (Url)" linkname="toDesignByName">
        <table name="ListEntryPoint" uplink="(ScreenID) = (ListScreenID)" />
        <table name="FilterHeader" uplink="(ScreenID) = (ScreenID)">
          <table name="FilterRow" uplink="(FilterID) = (FilterID)" />
          <table name="PivotTable" uplink="(RefNoteID) = (NoteID)">
            <table name="PivotField" uplink="(ScreenID, PivotTableID) = (ScreenID, PivotTableID)" />
          </table>
          <table name="Note" uplink="(NoteID) = (NoteID)" />
          <table name="FilterHeaderKvExt" uplink="(NoteID) = (RecordID)" />
        </table>
        <table name="MUIScreen" uplink="(NodeID) = (NodeID)">
          <table name="MUIPinnedScreen" uplink="(NodeID, WorkspaceID) = (NodeID, WorkspaceID)" />
        </table>
        <table name="MUITile" uplink="(ScreenID) = (ScreenID)" />
      </table>
      <table name="SiteMap" uplink="(PrimaryScreenIDNew) = (ScreenID)" linkname="to1Screen">
        <table name="ListEntryPoint" uplink="(ScreenID) = (ListScreenID)" />
        <table name="FilterHeader" uplink="(ScreenID) = (ScreenID)">
          <table name="FilterRow" uplink="(FilterID) = (FilterID)" />
          <table name="PivotTable" uplink="(RefNoteID) = (NoteID)">
            <table name="PivotField" uplink="(ScreenID, PivotTableID) = (ScreenID, PivotTableID)" />
          </table>
          <table name="Note" uplink="(NoteID) = (NoteID)" />
          <table name="FilterHeaderKvExt" uplink="(NoteID) = (RecordID)" />
        </table>
        <table name="MUIScreen" uplink="(NodeID) = (NodeID)">
          <table name="MUIPinnedScreen" uplink="(NodeID, WorkspaceID) = (NodeID, WorkspaceID)" />
        </table>
        <table name="MUITile" uplink="(ScreenID) = (ScreenID)" />
      </table>
      <table name="Note" uplink="(NoteID) = (NoteID)" />
    </table>
    <table name="MUIWorkspace">
      <table name="MUIFavoriteWorkspace" uplink="(WorkspaceID) = (WorkspaceID)" />
    </table>
    <table name="MUISubcategory" />
    <table name="MUIArea" />
  </layout>
  <data>
    <GIDesign>
      <row DesignID="77c69aa9-1316-411b-8625-c97f0641c841" Name="QQ100004" FilterColCount="3" PageSize="0" ExportTop="0" NewRecordCreationEnabled="0" MassDeleteEnabled="0" AutoConfirmDelete="0" MassRecordsUpdateEnabled="0" MassActionsOnRecordsEnabled="0" ExposeViaOData="0" ExposeViaMobile="0" ShowDeletedRecords="0" ShowArchivedRecords="0" NotesAndFilesTable="$&lt;None&gt;">
        <GISort LineNbr="1" IsActive="1" DataFieldName="ARInvoice.docDate" SortOrder="D" />
        <GITable Alias="SalesPerson" Name="PX.Objects.AR.SalesPerson" Type="0">
          <GIResult LineNbr="19" SortOrder="19" IsActive="1" Field="descr" Caption="Salesperson Name" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="0" RowID="4b26601d-f5ef-400b-be7a-7b53ac8d9ba7" />
          <GIResult LineNbr="18" SortOrder="18" IsActive="1" Field="salesPersonCD" Caption="Salesperson ID" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="0" RowID="4e8626a8-2dd5-4bcc-b226-a68f5a72be35" />
        </GITable>
        <GITable Alias="InventoryItem" Name="PX.Objects.IN.InventoryItem" Type="0">
          <GIResult LineNbr="16" SortOrder="11" IsActive="1" Field="itemClassID" Caption="Item Class" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="0" RowID="25a65558-3171-4c37-8d41-fa6c9123eb87" />
          <GIResult LineNbr="8" SortOrder="10" IsActive="1" Field="descr" Caption="Item Description" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="0" RowID="d893a229-3c2b-4513-a4fe-1930d4b3f0ba" />
          <GIResult LineNbr="7" SortOrder="9" IsActive="1" Field="inventoryCD" Caption="Item" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="0" RowID="460cfa1d-4a03-4b2c-9219-32b4c724305a" />
        </GITable>
        <GITable Alias="Customer" Name="PX.Objects.AR.Customer" Type="0">
          <GIResult LineNbr="17" SortOrder="7" IsActive="1" Field="customerClassID" Caption="Customer Class" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="0" RowID="9ea04d47-b17d-43d4-8480-01d5741d226a" />
          <GIResult LineNbr="6" SortOrder="6" IsActive="1" Field="acctName" Caption="Customer Name" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="0" RowID="929c581d-248e-4cb8-8ef1-1d04f192e13d" />
          <GIResult LineNbr="5" SortOrder="5" IsActive="1" Field="acctCD" Caption="Customer ID" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="0" RowID="278349d9-7a76-4f20-bedb-a5fc0dc505cb" />
        </GITable>
        <GITable Alias="ARTran" Name="PX.Objects.AR.ARTran" Type="0">
          <GIRelation LineNbr="4" ChildTable="SalesPerson" IsActive="1" JoinType="L">
            <GIOn LineNbr="7" ParentField="salesPersonID" Condition="E" ChildField="salesPersonID" Operation="A" />
          </GIRelation>
          <GIRelation LineNbr="3" ChildTable="InventoryItem" IsActive="1" JoinType="L">
            <GIOn LineNbr="5" ParentField="inventoryID" Condition="E" ChildField="inventoryID" Operation="A" />
          </GIRelation>
          <GIRelation LineNbr="1" ChildTable="ARInvoice" IsActive="1" JoinType="I">
            <GIOn LineNbr="2" ParentField="refNbr" Condition="E" ChildField="refNbr" Operation="A" />
            <GIOn LineNbr="1" ParentField="tranType" Condition="E" ChildField="docType" Operation="A" />
          </GIRelation>
          <GIResult LineNbr="15" SortOrder="17" IsActive="1" Field="margin" Caption="Margin" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="0" RowID="21158738-d7aa-4dc6-a2fe-ac6c39feb8c1" />
          <GIResult LineNbr="14" SortOrder="16" IsActive="1" Field="cost" Caption="Cost" IsVisible="1" DefaultNav="1" TotalAggregateFunction="SUM" QuickFilter="0" FastFilter="0" RowID="b93ff70e-35e6-467e-8086-69e5551ec0d6" />
          <GIResult LineNbr="13" SortOrder="8" IsActive="1" Field="tranDesc" Caption="Transaction Descr." IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="0" RowID="c193306b-243a-4c5e-9e5e-2a5540a08a58" />
          <GIResult LineNbr="12" SortOrder="15" IsActive="1" Field="netSalesAmount" Caption="Net Sales" IsVisible="1" DefaultNav="1" TotalAggregateFunction="SUM" QuickFilter="0" FastFilter="0" RowID="58495df8-e737-4af7-bda7-ac18ec45cc89" />
          <GIResult LineNbr="11" SortOrder="14" IsActive="1" Field="=IIf([ARInvoice.DocType]='CRM',-[ARTran.TranAmt],[ARTran.TranAmt])" SchemaField="ARTran.TranAmt" Caption="Amount" IsVisible="1" DefaultNav="1" TotalAggregateFunction="SUM" QuickFilter="0" FastFilter="0" RowID="7a12e71d-9b71-4dad-ae41-e862b5c19dfc" />
          <GIResult LineNbr="10" SortOrder="13" IsActive="1" Field="=IIf([ARInvoice.DocType]='CRM',-[ARTran.ExtPrice],[ARTran.ExtPrice])" SchemaField="ARTran.ExtPrice" Caption="Ext. Price" IsVisible="1" DefaultNav="1" TotalAggregateFunction="SUM" QuickFilter="0" FastFilter="0" RowID="30894441-9f4c-4d7f-9c3a-0ac1dcca9d2c" />
          <GIResult LineNbr="9" SortOrder="12" IsActive="1" Field="=IIf([ARInvoice.DocType]='CRM',-[ARTran.Qty],[ARTran.Qty])" SchemaField="ARTran.Qty" Caption="Quantity" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="0" RowID="b1246741-7287-4a50-9bf3-e3b787450a32" />
          <GIResult LineNbr="4" SortOrder="3" IsActive="1" Field="lineNbr" Caption="Line Nbr." IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="0" RowID="a6925545-0f75-41d5-a478-93cd573ecd39" />
        </GITable>
        <GITable Alias="ARInvoice" Name="PX.Objects.AR.ARInvoice" Type="0">
          <GIRelation LineNbr="2" ChildTable="Customer" IsActive="1" JoinType="L">
            <GIOn LineNbr="6" ParentField="customerID" Condition="E" ChildField="bAccountID" Operation="A" />
          </GIRelation>
          <GIResult LineNbr="3" SortOrder="4" IsActive="1" Field="docDate" Caption="Date" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="0" RowID="8119d70a-3e0b-4977-81fc-ba8edf37a6b3" />
          <GIResult LineNbr="2" SortOrder="2" IsActive="1" Field="refNbr" Caption="Reference Nbr." IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="0" RowID="0e4f147e-a734-4154-800e-90154852835f" />
          <GIResult LineNbr="1" SortOrder="1" IsActive="1" Field="docType" Caption="Type" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="0" RowID="bfd2c635-7af6-40ad-9934-b75f65baf295" />
        </GITable>
        <SiteMap linkname="toDesignById">
          <row Title="AR Invoice Lines" Url="~/GenericInquiry/GenericInquiry.aspx?id=77c69aa9-1316-411b-8625-c97f0641c841" ScreenID="QQ100004" NodeID="802e2a0b-c9f2-47fd-91f1-071cdef55ef4" ParentID="00000000-0000-0000-0000-000000000000">
            <MUIScreen IsPortal="0" WorkspaceID="cc3cccfd-f18b-4d70-90dc-bf30a36a95df" Order="40" SubcategoryID="98e86774-69e3-41ea-b94f-eb2c7a8426d4">
              <MUIPinnedScreen IsPortal="0" Username="" IsPinned="1" />
            </MUIScreen>
          </row>
        </SiteMap>
      </row>
    </GIDesign>
    <MUIWorkspace>
      <row IsPortal="0" WorkspaceID="cc3cccfd-f18b-4d70-90dc-bf30a36a95df" Order="875" Title="GI Library" Icon="table" IsSystem="0" />
    </MUIWorkspace>
    <MUISubcategory>
      <row IsPortal="1" SubcategoryID="98e86774-69e3-41ea-b94f-eb2c7a8426d4" Order="896" Name="Inquiries" Icon="" IsSystem="1" />
      <row IsPortal="0" SubcategoryID="98e86774-69e3-41ea-b94f-eb2c7a8426d4" Order="896" Name="Inquiries" Icon="" IsSystem="1" />
    </MUISubcategory>
  </data>
</data-set>