PHP Class app\models\Invoice

Inheritance: extends app\models\Model
Afficher le fichier Open project: hillelcoren/invoice-ninja Class Usage Examples

Méthodes publiques

Свойство Type Description
$fieldAmount string
$fieldDueDate string
$fieldInvoiceDate string
$fieldInvoiceNumber string
$fieldNotes string
$fieldPaid string
$fieldTerms string
$patternFields array

Protected Properties

Свойство Type Description
$casts array
$dates array
$fillable array
$presenter string

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
calculateTax ( &$taxes, $name, $rate, $amount, $paid )
getRawAdjustment ( ) : float
getRecurrenceRule ( ) : string

Method Details

account() public méthode

public account ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

affectsBalance() public méthode

public affectsBalance ( ) : boolean
Résultat boolean

canBePaid() public méthode

public canBePaid ( )

client() public méthode

public client ( ) : mixed
Résultat mixed

documents() public méthode

public documents ( ) : mixed
Résultat mixed

expenses() public méthode

public expenses ( ) : mixed
Résultat mixed

frequency() public méthode

public frequency ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

getAdjustment() public méthode

public getAdjustment ( ) : float | integer
Résultat float | integer

getAmountPaid() public méthode

public getAmountPaid ( boolean $calculate = false ) : integer | mixed
$calculate boolean
Résultat integer | mixed

getAutoBillEnabled() public méthode

public getAutoBillEnabled ( ) : boolean
Résultat boolean

getCurrencyCode() public méthode

public getCurrencyCode ( ) : string
Résultat string

getDisplayName() public méthode

public getDisplayName ( ) : mixed
Résultat mixed

getDueDate() public méthode

public getDueDate ( null $invoice_date = null ) : mixed | null
$invoice_date null
Résultat mixed | null

getEntityType() public méthode

public getEntityType ( ) : mixed
Résultat mixed

getFileName() public méthode

public getFileName ( ) : string
Résultat string

getImportColumns() public static méthode

public static getImportColumns ( ) : array
Résultat array

getImportMap() public static méthode

public static getImportMap ( ) : array
Résultat array

getItemTaxable() public méthode

public getItemTaxable ( $invoiceItem, $invoiceTotal ) : float | integer
$invoiceItem
$invoiceTotal
Résultat float | integer

getName() public méthode

public getName ( ) : mixed
Résultat mixed

getNextSendDate() public méthode

public getNextSendDate ( ) : null
Résultat null

getPDFPath() public méthode

public getPDFPath ( ) : string
Résultat string

getPDFString() public méthode

public getPDFString ( ) : boolean | string
Résultat boolean | string

getPrettySchedule() public méthode

public getPrettySchedule ( integer $min = 1, integer $max = 10 ) : null
$min integer
$max integer
Résultat null

getRequestedAmount() public méthode

public getRequestedAmount ( ) : mixed
Résultat mixed

getRoute() public méthode

public getRoute ( ) : string
Résultat string

getSchedule() public méthode

public getSchedule ( ) : boolean | Recurr\RecurrenceCollection
Résultat boolean | Recurr\RecurrenceCollection

getTaxable() public méthode

public getTaxable ( ) : float | integer | mixed
Résultat float | integer | mixed

getTaxes() public méthode

public getTaxes ( boolean $calculatePaid = false ) : array
$calculatePaid boolean
Résultat array

hasDocuments() public méthode

public hasDocuments ( ) : boolean
Résultat boolean

hasExpenseDocuments() public méthode

public hasExpenseDocuments ( ) : boolean
Résultat boolean

hidePrivateFields() public méthode

public hidePrivateFields ( )

invitations() public méthode

public invitations ( ) : mixed
Résultat mixed

invoice_design() public méthode

public invoice_design ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

invoice_items() public méthode

public invoice_items ( ) : mixed
Résultat mixed

invoice_status() public méthode

public invoice_status ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

isChanged() public méthode

public isChanged ( ) : boolean
Résultat boolean

isInvoice() public méthode

public isInvoice ( ) : boolean
Résultat boolean

isOverdue() public méthode

public isOverdue ( ) : boolean
Résultat boolean

isPaid() public méthode

public isPaid ( ) : boolean
Résultat boolean

isPartial() public méthode

public isPartial ( ) : boolean
Résultat boolean

isQuote() public méthode

public isQuote ( ) : boolean
Résultat boolean

isSent() public méthode

public isSent ( ) : boolean
Résultat boolean

isType() public méthode

public isType ( $typeId ) : boolean
$typeId
Résultat boolean

isViewed() public méthode

public isViewed ( ) : boolean
Résultat boolean

markApproved() public méthode

public markApproved ( )

markInvitationSent() public méthode

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

markInvitationsSent() public méthode

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

markViewed() public méthode

public markViewed ( )

parentTrashed() public méthode

public parentTrashed ( )

payments() public méthode

public payments ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Résultat Illuminate\Database\Eloquent\Relations\HasMany

recurring_invoice() public méthode

public recurring_invoice ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

recurring_invoices() public méthode

public recurring_invoices ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Résultat Illuminate\Database\Eloquent\Relations\HasMany

scopeInvoiceType() public méthode

public scopeInvoiceType ( $query, $typeId ) : mixed
$query
$typeId
Résultat mixed

scopeInvoices() public méthode

public scopeInvoices ( $query ) : mixed
$query
Résultat mixed

scopeQuotes() public méthode

public scopeQuotes ( $query ) : mixed
$query
Résultat mixed

shouldSendToday() public méthode

public shouldSendToday ( ) : boolean
Résultat boolean

subEntityType() public méthode

public subEntityType ( )

trashed() public méthode

public trashed ( ) : boolean
Résultat boolean

updateBalances() public méthode

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

updatePaidStatus() public méthode

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

user() public méthode

public user ( ) : mixed
Résultat mixed

Property Details

$casts protected_oe property

protected array $casts
Résultat array

$dates protected_oe property

protected array $dates
Résultat array

$fieldAmount public_oe static_oe property

public static string $fieldAmount
Résultat string

$fieldDueDate public_oe static_oe property

public static string $fieldDueDate
Résultat string

$fieldInvoiceDate public_oe static_oe property

public static string $fieldInvoiceDate
Résultat string

$fieldInvoiceNumber public_oe static_oe property

public static string $fieldInvoiceNumber
Résultat string

$fieldNotes public_oe static_oe property

public static string $fieldNotes
Résultat string

$fieldPaid public_oe static_oe property

public static string $fieldPaid
Résultat string

$fieldTerms public_oe static_oe property

public static string $fieldTerms
Résultat string

$fillable protected_oe property

protected array $fillable
Résultat array

$patternFields public_oe static_oe property

public static array $patternFields
Résultat array

$presenter protected_oe property

protected string $presenter
Résultat string