Reporting Periods

Reporting periods corresponds to the financial years of the entity’s operations. They are used to identify reports generated by the package.

Attributes

  • 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_id: The Id of the entity associated with the reporting period. Defaults to the entity of the logged in user.

Relations

  • $reportingPeriod->entity: The entity associated with the reporting period.

Methods

  • 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::periodStart($date): Retrieves the first 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.

Constants

  • 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.