Documentation

JournalDetail extends Model
in package
Uses HasFactory

Line item in a journal entry.

Tags
mixin

Builder

mixin

\Illuminate\Database\Query\Builder

Table of Contents

$account  : LedgerAccount
$amount  : string
$balances  : array<string|int, LedgerBalance>
$journalDetailId  : int
$journalEntryId  : int
$journalReferenceUuid  : string
$ledgerUuid  : string
$timestamps  : mixed
account()  : BelongsTo
Get the Account associated with this Detail.
balances()  : HasMany
Get the balances for the account connected to this detail.
entry()  : BelongsTo
Get the Journal entry that contains this detail.
toResponse()  : array<string|int, mixed>

Properties

$amount

public string $amount

The detail amount as a BCD string.

$journalEntryId

public int $journalEntryId

The JournalEntry ID that this detail belongs to.

$journalReferenceUuid

public string $journalReferenceUuid

Optional reference to an associated entity.

$ledgerUuid

public string $ledgerUuid

The ledger account this applies to.

Methods

account()

Get the Account associated with this Detail.

public account() : BelongsTo
Return values
BelongsTo

balances()

Get the balances for the account connected to this detail.

public balances() : HasMany
Return values
HasMany

entry()

Get the Journal entry that contains this detail.

public entry() : BelongsTo
Return values
BelongsTo

toResponse()

public toResponse() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results