Acumatica 针灸通用查询中实际数与预算数的关联

Acumatica 针灸通用查询中实际数与预算数的关联,acumatica,Acumatica,我试图展示每月预算金额和实际支出之间的比较。我通过AccountID将GLBudgetLineDetail内部联接到Account,然后通过GLBudgetLineDetail.SubID、GLBudgetLineDetail.FinPeriodID、Account.AccountCD、GLBudgetLineDetail.BranchID和GLBudgetLineDetail.LedgerID右联接到GLTranR) 然后我为FinPeriod From/To和GL Account From/

我试图展示每月预算金额和实际支出之间的比较。我通过AccountID将GLBudgetLineDetail内部联接到Account,然后通过GLBudgetLineDetail.SubID、GLBudgetLineDetail.FinPeriodID、Account.AccountCD、GLBudgetLineDetail.BranchID和GLBudgetLineDetail.LedgerID右联接到GLTranR)

然后我为FinPeriod From/To和GL Account From/To设置参数。在进行故障排除时,我创建了两组Account From/To范围:一组基于GLTranR的模式,另一组基于GLBudgetLineDetail。这没用

问题是,出现了超出范围的错误帐户

以下是将GI导出为XML:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<data-set>
  <relations format-version="3" relations-version="20190630" 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="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" />
  </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>
      <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>
        <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>
        <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>
        <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="8f1ea22e-8067-458b-9ed7-d39c729d27a7" Name="Work-Account2" FilterColCount="3" PageSize="0" ExportTop="0" NewRecordCreationEnabled="0" MassDeleteEnabled="0" AutoConfirmDelete="0" MassRecordsUpdateEnabled="0" MassActionsOnRecordsEnabled="0" ExposeViaOData="1" ExposeViaMobile="0">
        <GIFilter LineNbr="6" IsActive="1" Name="BudgetAccountTo" FieldName="Account.accountCD" DataType="string" DisplayName="Budget Account To" IsExpression="0" DefaultValue="78999" ColSpan="1" Required="1" />
        <GIFilter LineNbr="5" IsActive="1" Name="BudgetAccountFrom" FieldName="Account.accountCD" DataType="string" DisplayName="Budget Account From" IsExpression="0" DefaultValue="71101" ColSpan="1" Required="1" />
        <GIFilter LineNbr="4" IsActive="1" Name="FinPeriodTo" FieldName="GLTranR.finPeriodID" DataType="string" DisplayName="Period To" IsExpression="0" DefaultValue="012021" ColSpan="1" Required="1" />
        <GIFilter LineNbr="3" IsActive="1" Name="FinPeriodFrom" FieldName="GLTranR.finPeriodID" DataType="string" DisplayName="Period From" IsExpression="0" DefaultValue="012021" ColSpan="1" Required="1" />
        <GIFilter LineNbr="2" IsActive="1" Name="GLAccountTo" FieldName="GLTranR.accountID" DataType="string" DisplayName="GL Acct To" IsExpression="0" DefaultValue="78999" ColSpan="1" Required="1" />
        <GIFilter LineNbr="1" IsActive="1" Name="GLAccountFrom" FieldName="GLTranR.AccountID" DataType="string" DisplayName="GL Acct From" IsExpression="0" DefaultValue="71101" ColSpan="1" Required="1" />
        <GIGroupBy LineNbr="7" IsActive="0" DataFieldName="Sub.SubCD" />
        <GIGroupBy LineNbr="6" IsActive="0" DataFieldName="=Substring( [Sub.SubCD], 13, 4 )" />
        <GIGroupBy LineNbr="5" IsActive="0" DataFieldName="GLBudgetLineDetail.SubID" />
        <GIGroupBy LineNbr="4" IsActive="0" DataFieldName="=IsNull( [Account.AccountCD], [GLTranR.AccountID] )" />
        <GIGroupBy LineNbr="3" IsActive="0" DataFieldName="GLBudgetLineDetail.FinPeriodID" />
        <GIGroupBy LineNbr="2" IsActive="0" DataFieldName="GLTranR.SubID" />
        <GIGroupBy LineNbr="1" IsActive="0" DataFieldName="SegmentValue.Value" />
        <GITable Alias="GLTranR" Name="PX.Objects.GL.GLTranR">
          <GIResult LineNbr="9" SortOrder="5" IsActive="1" Field="accountID" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="1" RowID="121c09af-c9a3-45f4-a23d-dd30ff5c581b" />
          <GIResult LineNbr="5" SortOrder="2" IsActive="1" Field="=[GLTranR.DebitAmt]-[GLTranR.CreditAmt]" SchemaField="GLBudgetLineDetail.Amount" Caption="Actual Amount" IsVisible="1" DefaultNav="1" AggregateFunction="SUM" QuickFilter="0" FastFilter="1" RowID="fecc1500-3b5d-49d6-8279-0432aa3e1fa6" />
        </GITable>
        <GITable Alias="GLBudgetLineDetail" Name="PX.Objects.GL.GLBudgetLineDetail">
          <GIRelation LineNbr="2" ChildTable="GLTranR" IsActive="1" JoinType="R">
            <GIOn LineNbr="12" ParentField="GLBudgetLineDetail.LedgerID" Condition="E " ChildField="GLTranR.LedgerID" CloseBrackets=")        " Operation="A" />
            <GIOn LineNbr="11" ParentField="GLBudgetLineDetail.BranchID" Condition="E " ChildField="GLTranR.BranchID" Operation="A" />
            <GIOn LineNbr="10" ParentField="Account.AccountCD" Condition="E " ChildField="GLTranR.AccountID" Operation="A" />
            <GIOn LineNbr="9" ParentField="GLBudgetLineDetail.FinPeriodID" Condition="E " ChildField="GLTranR.FinPeriodID" Operation="A" />
            <GIOn LineNbr="8" OpenBrackets="(        " ParentField="GLBudgetLineDetail.SubID" Condition="E " ChildField="GLTranR.SubID" Operation="A" />
          </GIRelation>
          <GIRelation LineNbr="1" ChildTable="Account" IsActive="1" JoinType="I">
            <GIOn LineNbr="13" ParentField="GLBudgetLineDetail.AccountID" Condition="E " ChildField="Account.AccountID" Operation="A" />
          </GIRelation>
          <GIResult LineNbr="10" SortOrder="6" IsActive="1" Field="finPeriodID" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="1" RowID="60c3f0fb-aa3f-4f39-a8f2-859c0aa4b191" />
          <GIResult LineNbr="7" SortOrder="4" IsActive="1" Field="=IsNull( [Account.AccountCD], [GLTranR.AccountID] )" Caption="Account#" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="1" RowID="ecb39bff-9a86-4c0e-a539-ef6e6bdcf62f" />
          <GIResult LineNbr="6" SortOrder="3" IsActive="1" Field="amount" SchemaField="GLBudgetLineDetail.Amount" Caption="Budget" IsVisible="1" DefaultNav="1" AggregateFunction="SUM" QuickFilter="0" FastFilter="1" RowID="891141b9-1820-43b1-942c-c5ebe6bceb36" />
          <GIResult LineNbr="4" SortOrder="1" IsActive="0" Field="=IsNull([GLBudgetLineDetail.FinPeriodID], [GLTranR.FinPeriodID])" Caption="Period" IsVisible="1" DefaultNav="1" QuickFilter="0" FastFilter="1" RowID="2da8338e-04cd-47c8-a848-7f860532425c" />
        </GITable>
        <GITable Alias="Account" Name="PX.Objects.GL.Account" />
        <GIWhere LineNbr="4" IsActive="1" DataFieldName="GLTranR.finPeriodID" Condition="B " IsExpression="0" Value1="=[FinPeriodFrom]" Value2="[FinPeriodTo]" CloseBrackets=")        " Operation="A" />
        <GIWhere LineNbr="3" IsActive="1" OpenBrackets="(        " DataFieldName="GLBudgetLineDetail.finPeriodID" Condition="B " IsExpression="0" Value1="=[FinPeriodFrom]" Value2="[FinPeriodTo]" Operation="O" />
        <GIWhere LineNbr="2" IsActive="1" DataFieldName="Account.accountCD" Condition="B " IsExpression="0" Value1="[BudgetAccountFrom]" Value2="[BudgetAccountTo]" CloseBrackets=")        " Operation="A" />
        <GIWhere LineNbr="1" IsActive="1" OpenBrackets="(        " DataFieldName="GLTranR.accountID" Condition="B " IsExpression="0" Value1="=[GLAccountFrom]" Value2="[GLAccountTo]" Operation="O" />
        <SiteMap linkname="toDesignById">
          <row Title="Work-Account2" Url="~/genericinquiry/genericinquiry.aspx?id=8f1ea22e-8067-458b-9ed7-d39c729d27a7" ScreenID="GI000114" NodeID="7bce3055-febd-420c-bd5c-3b7802f9cf87" ParentID="00000000-0000-0000-0000-000000000000">
            <MUIScreen IsPortal="0" WorkspaceID="bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb" Order="2360" SubcategoryID="98e86774-69e3-41ea-b94f-eb2c7a8426d4" />
          </row>
        </SiteMap>
      </row>
    </GIDesign>
    <MUIWorkspace>
      <row IsPortal="1" WorkspaceID="bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb" Order="5" Title="Data Views" Icon="poll" IsSystem="1" />
      <row IsPortal="0" WorkspaceID="bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb" Order="32" Title="Data Views" Icon="poll" IsSystem="1" />
    </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>

多谢各位