Documentation

CustomBill extends Model
in package
uses HasFactory

Class CustomBill

Represents a custom bill for a Pelanggan.

Table of Contents

Properties

$additional_cost  : float
$bill_id  : int
$end_period  : string|null
$newest_amount  : float
$note  : string|null
$restitution  : float
$start_period  : string|null
$casts  : mixed
$fillable  : mixed
The attributes that are mass assignable.
$table  : mixed

Methods

bill()  : BelongsTo
Get the bill associated with the custom bill.
getPeriodLength()  : int
Get the length of the period between bill start and end.

Properties

$additional_cost

public float $additional_cost

The additional cost amount.

$bill_id

public int $bill_id

The ID of the associated bill.

$end_period

public string|null $end_period

The end period of the custom bill.

$newest_amount

public float $newest_amount

The newest amount after adjustments.

$note

public string|null $note

Optional note for the custom bill.

$restitution

public float $restitution

The restitution amount.

$start_period

public string|null $start_period

The start period of the custom bill.

$casts

protected mixed $casts = ['start_period' => 'date', 'end_period' => 'date']

$fillable

The attributes that are mass assignable.

protected mixed $fillable = ['bill_id', 'restitution', 'additional_cost', 'newest_amount', 'note', 'start_period', 'end_period']

Methods

bill()

Get the bill associated with the custom bill.

public bill() : BelongsTo
Return values
BelongsTo

getPeriodLength()

Get the length of the period between bill start and end.

public getPeriodLength() : int
Return values
int

The number of months in the period.


        
On this page

Search results