Reporting periods corresponds to the financial years of the entity’s operations. They are used to identify reports generated by the package.
period_count
: The period count is an integer that indicates the number of periods the entity has been in operation. It serves as an index to transaction numbers for easy identification and tracing.year
: The calendar year corresponding to the reporting period.status
: The status of the period. Defaults to ReportingPeriod::OPEN
.entity
: The Entity associated with the reporting period. Defaults to the entity of the logged in user.ReportingPeriod::periodCount($date):
Retrieves the period count of the date given, and if none is given of the current date.ReportingPeriod::year($date):
Retrieves the calendar year of the date given, and if none is given of the current date.ReportingPeriod::getPeriod($date):
Retrieves the reporting period of the date given, and if none is given of the current date.ReportingPeriod::periodStart($date):
Retrieves the first date of the reporting period for the date given, and if none is given of the current date.ReportingPeriod::periodEnd($date):
Retrieves the last date of the reporting period for the date given, and if none is given of the current date.$reportingPeriod->attributes():
Presents the reporting period’s attributes as an object. Useful for debugging.$reportingPeriod->toString():
The string representation of the Reporting Period object instance.ReportingPeriod::OPEN
: An open reporting period is one that is currently having transactions posted in it.ReportingPeriod::CLOSED
: A closed reporting period is one which has been audited and therefore does not allow any more transactions to be posted.ReportingPeriod::ADJUSTING
: During the adjusting status of a period only transactions that adjust the figures in the reports for audit purposes may be posted.MissingReportingPeriod
: The Entity does not have a reporting period for the date given.