Documentation

PriceList extends AbstractBaseCrmModel
in package

Tags
mixin

IsBillableAbstractClass

Table of Contents

promo_next_price_list_fk  = "crm__price_list_promo_next_price_list_id_foreign"
The Foreign key used to relate the promo_next_price_list_id
promo_next_price_list_id  = "promo_next_price_list_id"
The column which holds the id for the promo next PriceList
table  = "crm__price_lists"
Table name, as constant, used to avoid table name duplication across the source code base.
$activityLogName  : string
$casts  : array<string|int, string>
The attrivutes that should be casted
$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
$with  : array<string|int, string>
Eager load PromoNextPriceList
getActivitylogOptions()  : LogOptions
Specifies which model properties should be logged in the activy log
priceListDefaults()  : HasMany
promoNextPriceList()  : BelongsTo
promotions()  : BelongsToMany
The promotions for which this price list is eligible
saveWithoutJobs()  : mixed
withoutJobs()  : mixed
Executes the callback disabling the jobs launching
boot()  : void
Boot the model and register the events
newFactory()  : PriceListFactory
Get the Factory Class

Constants

promo_next_price_list_fk

The Foreign key used to relate the promo_next_price_list_id

public mixed promo_next_price_list_fk = "crm__price_list_promo_next_price_list_id_foreign"
Tags
const

string

promo_next_price_list_id

The column which holds the id for the promo next PriceList

public mixed promo_next_price_list_id = "promo_next_price_list_id"
Tags
const

string

table

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

public mixed table = "crm__price_lists"
Tags
const

string

Properties

$casts

The attrivutes that should be casted

protected array<string|int, string> $casts = ['is_billable' => 'bool', 'billable_directly' => 'bool', 'billable_multiplier' => 'float', 'billable_one_time' => 'bool', 'billable_one_time_cost' => 'float', 'billable_per_usage' => 'bool', 'billable_per_usage_cost' => 'float', 'billable_upon_relation' => 'bool', 'billable_hourly' => 'bool', 'billable_hourly_cost' => 'float', 'billable_monthly' => 'bool', 'billable_monthly_cost' => 'float', 'is_promo' => 'boolean']

$fillable

The attributes that are mass assignable.

protected array<int, string> $fillable = ['name', 'is_billable', 'billable_directly', 'billable_one_time', 'billable_one_time_cost', 'billable_per_usage', 'billable_per_usage_cost', 'billable_upon_relation', 'billable_upon_relation_class', 'billable_upon_relation_fk', 'billable_hourly', 'billable_hourly_cost', 'billable_monthly', 'billable_monthly_cost']

$jobsEnabled

This parameter specify if jobs should be launched or not

protected bool $jobsEnabled = true

$table

Table name

protected string $table = self::table

$with

Eager load PromoNextPriceList

protected array<string|int, string> $with = ['promoNextPriceList']

Methods

getActivitylogOptions()

Specifies which model properties should be logged in the activy log

public getActivitylogOptions() : LogOptions
Return values
LogOptions

priceListDefaults()

public priceListDefaults() : HasMany
Return values
HasMany

promoNextPriceList()

public promoNextPriceList() : BelongsTo
Return values
BelongsTo

promotions()

The promotions for which this price list is eligible

public promotions() : BelongsToMany
Return values
BelongsToMany

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