[英]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.