FiscalCalendars Class [AX 2012]
The FiscalCalendars class is used to support the functionality to define and use fiscal calendars, years, and periods.
| Method | Description | |
|---|---|---|
| addWarning | Add validation messages to list. |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| fiscalPeriodStatusEvent | Executes different event subscribers through the fiscalPeriodStatusEvent event if the status of the period has changed. |
| getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
| handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
| new | Initializes a new instance of the Object class. (Inherited from Object.) |
| notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) |
| notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) |
| objectOnServer | Determines whether the object is on a server. (Inherited from Object.) |
| owner | Returns the instance that owns the object. (Inherited from Object.) |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| showMessages | Shows all the validation messages from all event subscribers. |
| toString | Returns a string that represents the current object. (Inherited from Object.) |
| usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
| wait | Pauses a process. (Inherited from Object.) |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
| ::areDatesInSameFiscalYear | Determines whether the two dates that are provided belong to the same fiscal year for the current company. |
| ::arePeriodsOpen | Checks whether all the periods after the date are open, even if the date itself is not in the specified fiscal calendar. |
| ::checkDateIsValid | Validates the transaction date for posting in the ledger module. |
| ::checkLedgerPeriodDateModule | Checks whether posting in the ledger is enabled based on the specified transaction date and module. |
| ::checkModuleIsOpen | Checks whether there is a period with permissions to post the transactions in the specified module for the specified date. |
| ::checkModuleOpen | Checks whether there is a fiscal calendar period with permissions to post in the specified module for the specified date and the current user has permission to post transactions. |
| ::checkNoExistUnpostedTransInJournals | Indicates whether there are unposted journals for the specified fiscal calendar period and the current company. |
| ::checkPeriodIsOpen | Checks whether there is an open period present for the specified date. |
| ::copyPrevYear | Copies the information about periods from the most recent fiscal calendar year to the new fiscal calendar year at the time a fiscal year is created. |
| ::createClosing | Creates a fiscal calendar period with a value of PeriodCode::Closing. |
| ::createLedgerPeriodPermissions | Inserts the module status values for all the modules for a specified LedgerFiscalCalendarPeriod field in the LedgerPeriodModuleAccessControl table. |
| ::createYear | Creates the fiscal year and periods in the specified calendar, and sets quarters, months, and module permissions for the periods created. |
| ::deleteAllLedgerPeriods | Deletes all the LedgerFiscalCalendarPeriod table records. |
| ::deleteAllLedgerYears | Deletes all the LedgerFiscalCalendarYear table records. |
| ::deleteLedgerPeriods | Deletes all the LedgerFiscalCalendarPeriod table records. |
| ::deleteLedgerPeriodsForPeriod | Deletes all the LedgerFiscalCalendarPeriod table records for the specified period. |
| ::deleteLedgerPeriodsForYear | Deletes all the LedgerFiscalCalendarPeriod table records for the specified year. |
| ::deleteLedgerYearForYear | Deletes all the LedgerFiscalCalendarYear table records. |
| ::deleteLedgerYears | Deletes all the LedgerFiscalCalendarYear table records. |
| ::deletePeriod | Deletes a fiscal calendar period. |
| ::deleteYear | Deletes a fiscal calendar year and all periods in that fiscal calendar year. |
| ::dividePeriod | Divides a fiscal calendar period into two fiscal calendar periods. |
| ::existAllPeriodsClosedInYear | Determines whether the FiscalCalendarPeriod table record for closed period status exists. |
| ::existCalendar | Determines whether the specified record in the FiscalCalendar table exists. |
| ::existClosingPeriodForDate | Determines whether a closing period record in the FiscalCalendarPeriod table exists for the specified date. |
| ::existDate | Determines whether a specified fiscal calendar period in the FiscalCalendarPeriod table exists. |
| ::existDateInClosingPeriod | Determines whether the specified date exists in the specified closing period record of the FiscalCalendarPeriod table. |
| ::existDateWithOpenStatus | Validates the transaction date. |
| ::existFiscalYear | Determines whether the specified record in the FiscalCalendarYear table exists. |
| ::existOpeningPeriodForDate | Determines whether the opening period record exists in the FiscalCalendarPeriod table for the specified date and fiscal calendar. |
| ::existStartDateByDate | Determines whether a record exists in the FiscalCalendarPeriod table so that the specified date exists, and the specified date is the start date of the fiscal calendar period. |
| ::existUnpostedInventJournalTrans | Determines whether the records exist in the InventJournalTrans table in the date range specified by the start date and end date. |
| ::existUnpostedLedgerJournalTrans | Determines whether the records exist in the LedgerJournalTrans table in the date range specified by the start date and end date. |
| ::existUnpostedProjectTrans | Determines whether the records exist in the journal tables in the date range that is specified by the start date and end date. |
| ::existUnpostedTransInJournals | Determines whether the records exist in the ledger journal or invent journal for the specified date range. |
| ::existUnpostedTransInYear | Determines whether unposted transaction records exist for the specified fiscal calendar year in the specified fiscal calendar. |
| ::existYearByYearStatusDates | Indicates whether the specified record of the FiscalCalendarYear table record for the specified parameters exists. |
| ::findClosingPeriodByDate | Determines the first closing period after the specified date. |
| ::findClosingPeriodEndDateByDate | Finds the end date of the first object that has only a closing period after the specified date. |
| ::findClosingPeriodStartDateByDate | Finds the first closing date after the specified date. |
| ::findDataAreaIdCntForFiscalCalendar | Finds the company name for which the fiscal calendar is associated. |
| ::findFirstClosingPeriodNameByDate | Finds the name of the first closing period with an open status that falls in the specified date in the fiscal calendar. |
| ::findFirstDayOfMonth | Determines the first day of the month in which the date falls in the fiscal calendar. |
| ::findFirstDayofPeriod | Determines the first day of the period in which the date falls in the fiscal calendar. |
| ::findFirstDayOfQuarter | Determines the first day of the quarter in which the date falls in the fiscal calendar. |
| ::findFirstDayofYear | Determines the first day of the fiscal year in which the date falls in the fiscal calendar. |
| ::findFirstOpenPeriodInYear | Finds the first open fiscal calendar period by using the specified date. |
| ::findFirstOpenStartDateInYear | Finds the start date of the first open fiscal calendar period. |
| ::findFirstOpenStartDateModule | Finds the start date of the first open fiscal calendar period after specified date for given module. |
| ::findFirstOperatingPeriodByYear | Finds the first operating fiscal year period. |
| ::findFiscalYearEndDateByDate | Finds the end date of the fiscal calendar year that the specified date falls in. |
| ::findFiscalYearStartEndDatesByDate | Determines the start date and end date of the fiscal year for the specified date. |
| ::findLastDayOfMonth | Determines the last day of the month in which the date falls in the fiscal calendar. |
| ::findLastDayofPeriod | Determines the last day of the fiscal calendar period in which the date falls. |
| ::findLastDayOfQuarter | Determines the last day of the quarter in which the date falls in the fiscal calendar. |
| ::findLastDayofYear | Determines the last day of the fiscal year in which the date falls in the fiscal calendar. |
| ::findLastOperatingPeriodByYear | Finds the last operating fiscal year period. |
| ::findLedgerPeriod | Finds the LedgerFiscalCalendarPeriod record for the specified parameters. |
| ::findLedgerPeriodByPeriodTypeDate | Finds a ledger fiscal calendar period in the specified fiscal calendar. |
| ::findLedgerYear | Finds the LedgerFiscalCalendarYear record for the specified parameters. |
| ::findLedgerYearByCalendarLedgerDate | Finds the LedgerFiscalCalendarYear record for the specified parameters. |
| ::findMiddleOfMonth | Determines the middle of the month in which the date falls in the fiscal calendar. |
| ::findMiddleOfPeriod | Determines the middle of the fiscal period in which the date falls in the fiscal calendar. |
| ::findMiddleOfQuarter | Determines the middle of the quarter in which the date falls in the fiscal calendar. |
| ::findMiddleOfYear | Determines the middle of the fiscal year in which the date falls in the fiscal calendar. |
| ::findMonthByDate | Determines the month in which the specified date falls in the fiscal calendar. |
| ::findMonthTodate | Finds the start date of the month number received. |
| ::findNextPeriod | Determines the start date of the fiscal calendar period after the current period. |
| ::findNextPeriodByClosingPeriodStartDate | Finds the fiscal calendar period after the specified start date of the closing period. |
| ::findNextQuarter | Determines the start date of the quarter after the current quarter. |
| ::findNextYearStart | Determines the FiscalCalendarYear table record before the specified date. |
| ::findOpeningPeriodByDate | Determines the last opening fiscal period before the specified date. |
| ::findOpeningPeriodByNextPeriodStartDate | Finds the opening period after a closing period by using the specified start date of the period after a closing period. |
| ::findOpeningPeriodStartDateByDate | Finds the start date of the opening period for the specified date. |
| ::findOpeningStartDateByDate | Determines the start date of the last opening period before the specified date in the fiscal calendar associated with the company information record. |
| ::findPeriodByPeriodCodeDate | Finds a fiscal calendar period in the specified fiscal calendar. |
| ::findPeriodEndDateByDate | Finds the end date of the fiscal calendar period for the specified date. |
| ::findPeriodEndDateByDateWithIndex | Finds the end date of the fiscal calendar period in which the specified date falls. |
| ::findPeriodPositionByDate | Determines the position of the period in the fiscal calendar. |
| ::findPeriodStartDateByDate | Determines the start date of the fiscal calendar period for the specified date. |
| ::findPeriodStartDateByDateWithIndex | Determines the start date of the fiscal calendar period in which the specified date falls. |
| ::findPeriodToDate | Determines the start date of the period number passed. |
| ::findPeriodToMonth | Determines the month number of the specified fiscal calendar period number. |
| ::findPreviousPeriod | Determines the start date of the fiscal calendar period before the current period. |
| ::findPrevPeriodEndDateByDate | Determines the end date of the fiscal calendar period before the specified date. |
| ::findPrevQuarter | Determines the start date of the quarter before the current quarter. |
| ::findPrevYear | Finds the FiscalCalendarYear table record before the specified date. |
| ::findProjProposalJour | Finds the record in the ProjProposalJour table in the date range that is specified by the start date and end date. |
| ::findQuarterByDate | Determines the quarter number in which the specified date falls. |
| ::findShortNameByTypeDate | Finds a fiscal calendar period short name in the specified fiscal calendar. |
| ::findStartDateMonthFwd | Finds the start date of the month which is a specified number of months away from the specified date. |
| ::findStartDatePeriodFwd | Finds the start date of the fiscal calendar period which is a specified number of fiscal calendar periods away from the specified date. |
| ::findUnpostedInventJournalTrans | Find the records in the InventJournalTrans table in the date range specified by the start date and end date. |
| ::findUnpostedLedgerJournalTrans | Finds the record in the LedgerJournalTrans table in the date range specified by the start date and end date. |
| ::findUnpostedProjControlPeriodTable | Find the record in the ProjControlPeriodTable table in the date range that is specified by the start date and end date. |
| ::findUnpostedProjJournalTrans | Finds the record in the ProjJournalTrans table in the date range that is specified by the start date and end date. |
| ::findYearEndClosingPeriodByDate | Finds the last closing period in the fiscal year in which the specified date falls. |
| ::fiscalPeriodStatusEventInitiator | Initiates the event and then returns the status of the event. |
| ::getFiscalCalendarYearType | Gets the type of the fiscal calendar year in which the specified date falls. |
| ::getPeriodModule | Gets the LedgerPeriodModuleAccessControl table record for the specified module and fiscal calendar period record ID. |
| ::insertAllLedgerPeriods | Creates all the records in the LedgerFiscalCalendarPeriod table for a calendar. |
| ::insertAllLedgerYears | Creates all the records in the LedgerFiscalCalendarYear table for a calendar. |
| ::insertLedgerPeriodPermissions | Inserts records in the LedgerPeriodModuleAccessControl table. |
| ::insertLedgerPeriods | Creates records in the LedgerFiscalCalendarPeriod table. |
| ::insertLedgerPeriodsForPeriod | Creates records in the LedgerFiscalCalendarPeriod table for a period. |
| ::insertLedgerPeriodsForYear | Creates records in the LedgerFiscalCalendarPeriod table for a year. |
| ::insertLedgerYearForYear | Creates records in the LedgerFiscalCalendarYear table for a year. |
| ::insertLedgerYears | Creates records in the LedgerFiscalCalendarYear table. |
| ::isDateInOpenPeriod | Validates that the specified date exists in the fiscal period in the fiscal calendar and the Status enumeration value of the fiscal period is Open. |
| ::nextPeriodStartDateByDate | Retrieves the start date of the next fiscal calendar period. |
| ::numberOfClosingPeriods | Retrieves the number of closing periods for the specified date. |
| ::numberOfPeriodsBetweenDates | Retrieves the number of periods on or between two dates. |
| ::numberOfPeriodsInYear | Retrieves the number of periods in a fiscal year. |
| ::numberOfPeriodsLeftInYear | Retrieves the number of fiscal calendar periods between the current date and the end date of the fiscal year. |
| ::updateYearCloseByCalendarLedgerDate | Updates the status of the ledger year to close. |
| ::validateClosingPeriod | Validates the parameters entered in the FiscalCalendarClosing dialog box. |
| ::validateCopyPrevYear | Validates the parameters entered in the FiscalCalendarCreateYear dialog box. |
| ::validateCreateYear | Validates the parameters entered in the FiscalCalendarCreateYear dialog box. |
| ::validateDeletePeriod | Validates the parameters entered in the FiscalCalendarDeletePeriod dialog box. |
| ::validateDeleteYear | Validates the parameters entered in the FiscalCalendarDeleteYear dialog box. |
| ::validateDividePeriod | Validates the parameters entered in the FiscalCalendarDividePeriod dialog box. |
Community Additions
ADD
Show: