web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Behind AX / AX 2012 - Check if period c...

AX 2012 - Check if period closed

metin emre Profile Picture metin emre 502
Ledger:

FiscalCalendars::checkModuleIsOpen(SysModule::Ledger, LedgerJournalTrans.TransDate,FiscalCalendars::findPeriodByPeriodCodeDate(Ledger::fiscalCalendar(CompanyInfo::find().RecId),LedgerJournalTable.ETGTransDate),false)

Sales:

FiscalCalendars::checkModuleIsOpen(SysModule::Sales, CustInvoiceJour.InvoiceDate,FiscalCalendars::findPeriodByPeriodCodeDate(Ledger::fiscalCalendar(CompanyInfo::find().RecId),CustInvoiceJour.InvoiceDate),false)

Invent closing:

InventClosing::findClosingDate(endmth(InventJournalTrans.TransDate))

This was originally posted here.

Comments

*This post is locked for comments