PHP Класс app\models\Invoice

Наследование: extends app\models\Model
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$fieldAmount string
$fieldDueDate string
$fieldInvoiceDate string
$fieldInvoiceNumber string
$fieldNotes string
$fieldPaid string
$fieldTerms string
$patternFields array

Защищенные свойства (Protected)

Свойство Тип Описание
$casts array
$dates array
$fillable array
$presenter string

Открытые методы

Метод Описание
account ( ) : BelongsTo
affectsBalance ( ) : boolean
calcLink ( $invoice ) : string
canBePaid ( )
client ( ) : mixed
documents ( ) : mixed
expenses ( ) : mixed
frequency ( ) : BelongsTo
getAdjustment ( ) : float | integer
getAmountPaid ( boolean $calculate = false ) : integer | mixed
getAutoBillEnabled ( ) : boolean
getCurrencyCode ( ) : string
getDisplayName ( ) : mixed
getDueDate ( null $invoice_date = null ) : mixed | null
getEntityType ( ) : mixed
getFileName ( ) : string
getImportColumns ( ) : array
getImportMap ( ) : array
getInvitationLink ( $type = 'view', $forceOnsite = false )
getItemTaxable ( $invoiceItem, $invoiceTotal ) : float | integer
getLink ( ) : string
getName ( ) : mixed
getNextSendDate ( ) : null
getPDFPath ( ) : string
getPDFString ( ) : boolean | string
getPrettySchedule ( integer $min = 1, integer $max = 10 ) : null
getRequestedAmount ( ) : mixed
getRoute ( ) : string
getSchedule ( ) : boolean | Recurr\RecurrenceCollection
getTaxable ( ) : float | integer | mixed
getTaxes ( boolean $calculatePaid = false ) : array
hasDocuments ( ) : boolean
hasExpenseDocuments ( ) : boolean
hidePrivateFields ( )
invitations ( ) : mixed
invoice_design ( ) : BelongsTo
invoice_items ( ) : mixed
invoice_status ( ) : BelongsTo
isChanged ( ) : boolean
isInvoice ( ) : boolean
isOverdue ( ) : boolean
isPaid ( ) : boolean
isPartial ( ) : boolean
isQuote ( ) : boolean
isSent ( ) : boolean
isType ( $typeId ) : boolean
isViewed ( ) : boolean
markApproved ( )
markInvitationSent ( $invitation, boolean $messageId = false, boolean $notify = true )
markInvitationsSent ( boolean $notify = false )
markViewed ( )
parentTrashed ( )
payments ( ) : Illuminate\Database\Eloquent\Relations\HasMany
recurring_invoice ( ) : BelongsTo
recurring_invoices ( ) : Illuminate\Database\Eloquent\Relations\HasMany
scopeInvoiceType ( $query, $typeId ) : mixed
scopeInvoices ( $query ) : mixed
scopeQuotes ( $query ) : mixed
shouldSendToday ( ) : boolean
subEntityType ( )
trashed ( ) : boolean
updateBalances ( $balanceAdjustment, integer $partial )
updatePaidStatus ( boolean $save = true )
user ( ) : mixed

Приватные методы

Метод Описание
calculateTax ( &$taxes, $name, $rate, $amount, $paid )
getRawAdjustment ( ) : float
getRecurrenceRule ( ) : string

Описание методов

account() публичный метод

public account ( ) : BelongsTo
Результат Illuminate\Database\Eloquent\Relations\BelongsTo

affectsBalance() публичный метод

public affectsBalance ( ) : boolean
Результат boolean

canBePaid() публичный метод

public canBePaid ( )

client() публичный метод

public client ( ) : mixed
Результат mixed

documents() публичный метод

public documents ( ) : mixed
Результат mixed

expenses() публичный метод

public expenses ( ) : mixed
Результат mixed

frequency() публичный метод

public frequency ( ) : BelongsTo
Результат Illuminate\Database\Eloquent\Relations\BelongsTo

getAdjustment() публичный метод

public getAdjustment ( ) : float | integer
Результат float | integer

getAmountPaid() публичный метод

public getAmountPaid ( boolean $calculate = false ) : integer | mixed
$calculate boolean
Результат integer | mixed

getAutoBillEnabled() публичный метод

public getAutoBillEnabled ( ) : boolean
Результат boolean

getCurrencyCode() публичный метод

public getCurrencyCode ( ) : string
Результат string

getDisplayName() публичный метод

public getDisplayName ( ) : mixed
Результат mixed

getDueDate() публичный метод

public getDueDate ( null $invoice_date = null ) : mixed | null
$invoice_date null
Результат mixed | null

getEntityType() публичный метод

public getEntityType ( ) : mixed
Результат mixed

getFileName() публичный метод

public getFileName ( ) : string
Результат string

getImportColumns() публичный статический метод

public static getImportColumns ( ) : array
Результат array

getImportMap() публичный статический метод

public static getImportMap ( ) : array
Результат array

getItemTaxable() публичный метод

public getItemTaxable ( $invoiceItem, $invoiceTotal ) : float | integer
$invoiceItem
$invoiceTotal
Результат float | integer

getName() публичный метод

public getName ( ) : mixed
Результат mixed

getNextSendDate() публичный метод

public getNextSendDate ( ) : null
Результат null

getPDFPath() публичный метод

public getPDFPath ( ) : string
Результат string

getPDFString() публичный метод

public getPDFString ( ) : boolean | string
Результат boolean | string

getPrettySchedule() публичный метод

public getPrettySchedule ( integer $min = 1, integer $max = 10 ) : null
$min integer
$max integer
Результат null

getRequestedAmount() публичный метод

public getRequestedAmount ( ) : mixed
Результат mixed

getRoute() публичный метод

public getRoute ( ) : string
Результат string

getSchedule() публичный метод

public getSchedule ( ) : boolean | Recurr\RecurrenceCollection
Результат boolean | Recurr\RecurrenceCollection

getTaxable() публичный метод

public getTaxable ( ) : float | integer | mixed
Результат float | integer | mixed

getTaxes() публичный метод

public getTaxes ( boolean $calculatePaid = false ) : array
$calculatePaid boolean
Результат array

hasDocuments() публичный метод

public hasDocuments ( ) : boolean
Результат boolean

hasExpenseDocuments() публичный метод

public hasExpenseDocuments ( ) : boolean
Результат boolean

hidePrivateFields() публичный метод

public hidePrivateFields ( )

invitations() публичный метод

public invitations ( ) : mixed
Результат mixed

invoice_design() публичный метод

public invoice_design ( ) : BelongsTo
Результат Illuminate\Database\Eloquent\Relations\BelongsTo

invoice_items() публичный метод

public invoice_items ( ) : mixed
Результат mixed

invoice_status() публичный метод

public invoice_status ( ) : BelongsTo
Результат Illuminate\Database\Eloquent\Relations\BelongsTo

isChanged() публичный метод

public isChanged ( ) : boolean
Результат boolean

isInvoice() публичный метод

public isInvoice ( ) : boolean
Результат boolean

isOverdue() публичный метод

public isOverdue ( ) : boolean
Результат boolean

isPaid() публичный метод

public isPaid ( ) : boolean
Результат boolean

isPartial() публичный метод

public isPartial ( ) : boolean
Результат boolean

isQuote() публичный метод

public isQuote ( ) : boolean
Результат boolean

isSent() публичный метод

public isSent ( ) : boolean
Результат boolean

isType() публичный метод

public isType ( $typeId ) : boolean
$typeId
Результат boolean

isViewed() публичный метод

public isViewed ( ) : boolean
Результат boolean

markApproved() публичный метод

public markApproved ( )

markInvitationSent() публичный метод

public markInvitationSent ( $invitation, boolean $messageId = false, boolean $notify = true )
$invitation
$messageId boolean
$notify boolean

markInvitationsSent() публичный метод

public markInvitationsSent ( boolean $notify = false )
$notify boolean

markViewed() публичный метод

public markViewed ( )

parentTrashed() публичный метод

public parentTrashed ( )

payments() публичный метод

public payments ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Результат Illuminate\Database\Eloquent\Relations\HasMany

recurring_invoice() публичный метод

public recurring_invoice ( ) : BelongsTo
Результат Illuminate\Database\Eloquent\Relations\BelongsTo

recurring_invoices() публичный метод

public recurring_invoices ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Результат Illuminate\Database\Eloquent\Relations\HasMany

scopeInvoiceType() публичный метод

public scopeInvoiceType ( $query, $typeId ) : mixed
$query
$typeId
Результат mixed

scopeInvoices() публичный метод

public scopeInvoices ( $query ) : mixed
$query
Результат mixed

scopeQuotes() публичный метод

public scopeQuotes ( $query ) : mixed
$query
Результат mixed

shouldSendToday() публичный метод

public shouldSendToday ( ) : boolean
Результат boolean

subEntityType() публичный метод

public subEntityType ( )

trashed() публичный метод

public trashed ( ) : boolean
Результат boolean

updateBalances() публичный метод

public updateBalances ( $balanceAdjustment, integer $partial )
$balanceAdjustment
$partial integer

updatePaidStatus() публичный метод

public updatePaidStatus ( boolean $save = true )
$save boolean

user() публичный метод

public user ( ) : mixed
Результат mixed

Описание свойств

$casts защищенное свойство

protected array $casts
Результат array

$dates защищенное свойство

protected array $dates
Результат array

$fieldAmount публичное статическое свойство

public static string $fieldAmount
Результат string

$fieldDueDate публичное статическое свойство

public static string $fieldDueDate
Результат string

$fieldInvoiceDate публичное статическое свойство

public static string $fieldInvoiceDate
Результат string

$fieldInvoiceNumber публичное статическое свойство

public static string $fieldInvoiceNumber
Результат string

$fieldNotes публичное статическое свойство

public static string $fieldNotes
Результат string

$fieldPaid публичное статическое свойство

public static string $fieldPaid
Результат string

$fieldTerms публичное статическое свойство

public static string $fieldTerms
Результат string

$fillable защищенное свойство

protected array $fillable
Результат array

$patternFields публичное статическое свойство

public static array $patternFields
Результат array

$presenter защищенное свойство

protected string $presenter
Результат string