Balance
class Balance extends Model implements Recyclable, Clearable, Segragatable
Class Balance
Traits
Constants
MODELNAME |
Balance Model Name |
DEBIT |
Balance Type |
CREDIT |
|
Properties
protected array | $fillable | The attributes that are mass assignable. | |
Entity | $entity | ||
Account | $account | ||
Currency | $currency | ||
ExchangeRate | $exchangeRate | ||
integer | $year | ||
string | $reference | ||
string | $transaction_no | ||
string | $transaction_type | ||
string | $balance_type | ||
float | $amount | ||
Carbon | $destroyed_at | ||
Carbon | $deleted_at |
Methods
Construct new Balance.
Get Human Readable Balance Type.
Get Human Readable Balance types
isPosted analog for Assignment model.
isCredited analog for Assignment model.
Cleared Object type.
getAmount analog for Assignment model.
Balance Currency.
Balance Account.
Balance Exchange Rate.
Balance attributes.
Balance Validation.
Details
in Segragating at line 29
static null
bootSegragating()
Register EntityScope for Model.
in Segragating at line 54
HasOne
entity()
Model's Parent Entity.
in Recycling at line 26
static void
bootRecycling()
Model recycling events.
in Recycling at line 69
MorphMany
recycled()
Recycled Model records.
in Clearing at line 21
clearedAmount()
Cleared Transaction amount.
in Clearing at line 35
MorphMany
clearances()
Cleared Model records.
in ModelTablePrefix at line 20
getTable()
Determine the model table name
at line 95
__construct($attributes = [])
Construct new Balance.
at line 125
static string
getType(string $type)
Get Human Readable Balance Type.
at line 137
static array
getTypes(array $types)
Get Human Readable Balance types
at line 150
bool
isPosted()
isPosted analog for Assignment model.
at line 160
bool
isCredited()
isCredited analog for Assignment model.
at line 170
string
getClearedType()
Cleared Object type.
at line 180
string
getAmount()
getAmount analog for Assignment model.
at line 190
BelongsTo
currency()
Balance Currency.
at line 200
BelongsTo
account()
Balance Account.
at line 210
BelongsTo
exchangeRate()
Balance Exchange Rate.
at line 220
object
attributes()
Balance attributes.
at line 228
bool
save(array $options = [])
Balance Validation.