簡體   English   中英

DataAreaId字段與Dynamics AX 2012中的FiscalCalendarPeriod表有何關聯?

[英]How is DataAreaId field related to FiscalCalendarPeriod table in Dynamics AX 2012?

我嘗試了很多方法,但似乎沒有一個方法能讓我在FiscalCalenderPeriod表和Dynamics AX 2012中的DataAreaId屬性之間找到具體的關系。

DataAreaID是Dymanics AX 2009中LedgerPeriod的一部分,但現在這個表已被刪除,因此數據已經標准化。

如何將FiscalCalenderPeriod映射到公司數據,即dataareaid?

DataAreaId標識Legal實體( CompanyInfo表中的記錄)。 每個Legal實體都有一個Ledger( Ledger表中的記錄,其中PrimaryForLegalEntity字段是CompanyInfo記錄的RecId )。 FiscalCalendar通過FiscalCalendar字段綁定到FiscalCalendar記錄。 FiscalCalendarPeriod記錄也屬於基於FiscalCalendar字段的特定FiscalCalendar

有一個輔助類FiscalCalendars ,它有許多處理財務日歷的方法。 例如,以下是獲取公司“CEU”當前期間結束日期的一種方法:

RecId fiscalCalendarRecId=Ledger::fiscalCalendar(CompanyInfo::find('CEU').RecId);
date currentDate=SystemDateGet();
date endDate=FiscalCalendars::findPeriodEndDateByDate(fiscalCalendarRecId,currentDate);
info(date2StrUsr(endDate));

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM