Axapta DataAreaId字段与Dynamics AX 2012中的FiscalLendarPeriod表有何关联?
我尝试了许多方法,但似乎没有一种方法能够在dynamics AX 2012中获得FiscalLenderPeriod表和DataAreaId属性之间的具体关系 DataAreaID是Dymanics AX 2009中分类账周期的一部分,但现在该表已被定价,因此数据已被标准化Axapta DataAreaId字段与Dynamics AX 2012中的FiscalLendarPeriod表有何关联?,axapta,dynamics-ax-2012,Axapta,Dynamics Ax 2012,我尝试了许多方法,但似乎没有一种方法能够在dynamics AX 2012中获得FiscalLenderPeriod表和DataAreaId属性之间的具体关系 DataAreaID是Dymanics AX 2009中分类账周期的一部分,但现在该表已被定价,因此数据已被标准化 如何将FiscalLenderPeriod映射到公司数据,即dataareaid?adataareaid标识法律实体(公司信息表中的记录)。每个法人实体都有一个分类账(在分类账表中的一条记录,PrimaryForLegalE
如何将FiscalLenderPeriod映射到公司数据,即dataareaid?a
dataareaid
标识法律实体(公司信息表中的记录)。每个法人实体都有一个分类账(在分类账
表中的一条记录,PrimaryForLegalEntity
字段是公司信息
记录的RecId
)。分类账通过fiscalendar
字段绑定到fiscalendar
记录fiscalendarperiod
记录也属于基于fiscalendar
字段的特定fiscalendar
有一个助手类FiscalCalendars
,它有许多处理会计日历的方法。例如,这里有一种方法可以获取公司“CEU”当前期间的结束日期:
RecId fiscalCalendarRecId=Ledger::fiscalCalendar(CompanyInfo::find('CEU').RecId);
date currentDate=SystemDateGet();
date endDate=FiscalCalendars::findPeriodEndDateByDate(fiscalCalendarRecId,currentDate);
info(date2StrUsr(endDate));