class LineItem extends Model implements Recyclable, Segragatable

Class LineItem

Traits

Properties

protected array $fillable The attributes that are mass assignable.
Entity $entity
Transaction $transaction
Vat $vat
Account $account
Account $vatAccount
Carbon $date
int $quantity
float $amount
Carbon $destroyed_at
Carbon $deleted_at

Methods

static null
bootSegragating()

Register EntityScope for Model.

HasOne
entity()

Model's Parent Entity.

static void
bootRecycling()

Model recycling events.

from Recycling
MorphMany
recycled()

Recycled Model records.

from Recycling
getTable()

Determine the model table name

HasMany
ledgers()

LineItem Ledgers.

BelongsTo
transaction()

LineItem Transaction.

BelongsTo
account()

LineItem Account.

BelongsTo
vat()

LineItem VAT.

HasOne
vatAccount()

LineItem Vat Account.

object
attributes()

LineItem attributes.

bool
save(array $options = [])

Check LineItem Vat.

Details

in Segragating at line 29
static null bootSegragating()

Register EntityScope for Model.

Return Value

null

in Segragating at line 54
HasOne entity()

Model's Parent Entity.

Return Value

HasOne

in Recycling at line 26
static void bootRecycling()

Model recycling events.

Return Value

void

in Recycling at line 69
MorphMany recycled()

Recycled Model records.

Return Value

MorphMany

in ModelTablePrefix at line 20
getTable()

Determine the model table name

at line 67
HasMany ledgers()

LineItem Ledgers.

Return Value

HasMany

at line 77
BelongsTo transaction()

LineItem Transaction.

Return Value

BelongsTo

at line 87
BelongsTo account()

LineItem Account.

Return Value

BelongsTo

at line 97
BelongsTo vat()

LineItem VAT.

Return Value

BelongsTo

at line 107
HasOne vatAccount()

LineItem Vat Account.

Return Value

HasOne

at line 117
object attributes()

LineItem attributes.

Return Value

object

at line 125
bool save(array $options = [])

Check LineItem Vat.

Parameters

array $options

Return Value

bool