ReportingPeriod
class ReportingPeriod extends Model implements Segregatable, Recyclable
Class ReportingPeriod
Traits
Constants
| OPEN |
Reporting Period Status |
| CLOSED |
|
| ADJUSTING |
|
Properties
| protected array | $fillable | The attributes that are mass assignable. |
|
| Entity | $entity | ||
| int | $year | ||
| int | $period_count | ||
| string | $status | ||
| Carbon | $destroyed_at | ||
| Carbon | $deleted_at |
Methods
Construct new Reporting Period.
Instance Identifier.
Closing Rates.
Closing Transactions.
ReportingPeriod attributes.
Get the auto generated translation transactions for the period.
Commit the auto generated translation transactions for the period to the ledger.
Prepare Forex Account Balances translations.
Retrieve the currencies used in trasactions for the period.
Details
in
Segregating at line 28
static void
bootSegregating()
Register EntityScope for Model.
in
Segregating at line 46
BelongsTo
entity()
Model's Parent Entity.
in
Recycling at line 28
static void
bootRecycling()
Model recycling events.
in
Recycling at line 73
MorphMany
recycled()
Recycled Model records.
in
ModelTablePrefix at line 22
getTable()
Determine the model table name
at line 79
__construct($attributes = [])
Construct new Reporting Period.
at line 93
static ReportingPeriod
getPeriod(string|Carbon $date = null, Entity|null $entity = null)
Fetch reporting period for the date
at line 118
static int
year(string|Carbon $date = null, Entity|null $entity = null)
ReportingPeriod year
at line 145
static Carbon
yearStart(int $year, Entity|null $entity = null)
First day of the financial year that the calendar year labels. A financial year is labelled by the calendar year it starts in.
at line 159
string
toString($type = false)
Instance Identifier.
at line 170
HasMany
closingRates()
Closing Rates.
at line 180
HasMany
closingTransactions()
Closing Transactions.
at line 190
object
attributes()
ReportingPeriod attributes.
at line 200
array
getTranslations()
Get the auto generated translation transactions for the period.
at line 236
void
postTranslations()
Commit the auto generated translation transactions for the period to the ledger.
at line 255
array
prepareBalancesTranslation(int $forexAccountId, int|null $accountId = null)
Prepare Forex Account Balances translations.
at line 320
collection
transactionCurrencies(int $accountId = null)
Retrieve the currencies used in trasactions for the period.
at line 348
static Carbon
periodEnd($date = null, Entity|null $entity = null)
ReportingPeriod end date
at line 360
static Carbon
periodStart($date = null, Entity|null $entity = null)
ReportingPeriod start date