LedgerReport
extends Model
in package
Uses
HasFactory
Support for cached reports.
Tags
Table of Contents
- $currency : string
- $domainUuid : string
- $fromDate : Carbon|null
- $id : int
- $journalEntryId : int
- $name : string
- $reportData : string
- $timestamps : bool
- $toDate : Carbon
- create() :
- createFromMessage() : self
- toResponse() : array<string|int, mixed>
Properties
$currency
public
string
$currency
The report's currency.
$domainUuid
public
string
$domainUuid
the ledger domain for this report.
$fromDate
public
Carbon|null
$fromDate
The period start this report was generated for.
$id
public
int
$id
Primary key
$journalEntryId
public
int
$journalEntryId
The last journal entry at the time of report creation.
$name
public
string
$name
The report name
$reportData
public
string
$reportData
$timestamps
public
bool
$timestamps
= false
Disable timestamps.
$toDate
public
Carbon
$toDate
The period end this report was generated for.
Methods
create()
public
static create(array<string|int, mixed> $attributes) :
Provided by model.
Parameters
- $attributes : array<string|int, mixed>
Return values
—createFromMessage()
public
static createFromMessage(Report $message) : self
Parameters
- $message : Report
Return values
self —toResponse()
public
toResponse() : array<string|int, mixed>