Documentation

Invoice extends AbstractBaseCrmModel
in package

Tags
todo

Missing softdeletes

Table of Contents

table  = "crm__invoices"
Table name, as constant, used to avoid table name duplication across the source code base.
$activityLogName  : string
$fillable  : array<int, string>
The attributes that are mass assignable.
$jobsEnabled  : bool
This parameter specify if jobs should be launched or not
$table  : string
Table name
customer()  : BelongsTo
getActivitylogOptions()  : LogOptions
Specifies which model properties should be logged in the activy log
invoiceItems()  : HasMany
refreshTotal()  : void
Refresh the total field of the invoice WARNING: it performs a save on db if total has changed
saveWithoutJobs()  : mixed
withoutJobs()  : mixed
Executes the callback disabling the jobs launching
boot()  : void
Boot the model and register the events
newFactory()  : InvoiceFactory
Get the Factory Class

Constants

table

Table name, as constant, used to avoid table name duplication across the source code base.

public mixed table = "crm__invoices"
Tags
const

string

Properties

$fillable

The attributes that are mass assignable.

protected array<int, string> $fillable = ['customer_id', 'external_id']

$jobsEnabled

This parameter specify if jobs should be launched or not

protected bool $jobsEnabled = true

$table

Table name

protected string $table = self::table

Methods

customer()

public customer() : BelongsTo
Return values
BelongsTo

getActivitylogOptions()

Specifies which model properties should be logged in the activy log

public getActivitylogOptions() : LogOptions
Return values
LogOptions

invoiceItems()

public invoiceItems() : HasMany
Return values
HasMany

refreshTotal()

Refresh the total field of the invoice WARNING: it performs a save on db if total has changed

public refreshTotal() : void
Return values
void

saveWithoutJobs()

public saveWithoutJobs() : mixed
Return values
mixed

withoutJobs()

Executes the callback disabling the jobs launching

public withoutJobs(callable $callback) : mixed
Parameters
$callback : callable
Return values
mixed

boot()

Boot the model and register the events

protected static boot() : void
Return values
void

Search results