JournalDetail
extends Model
in package
Uses
HasFactory
Line item in a journal entry.
Tags
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
$account
public
LedgerAccount
$account
linked account
$amount
public
string
$amount
The detail amount as a BCD string.
$balances
public
array<string|int, LedgerBalance>
$balances
Balance records for this detail.
$journalDetailId
public
int
$journalDetailId
Primary key.
$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.
$timestamps
public
mixed
$timestamps
= false
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>