PHP 클래스 app\models\Invoice

상속: extends app\models\Model
파일 보기 프로젝트 열기: hillelcoren/invoice-ninja 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$fieldAmount string
$fieldDueDate string
$fieldInvoiceDate string
$fieldInvoiceNumber string
$fieldNotes string
$fieldPaid string
$fieldTerms string
$patternFields array

보호된 프로퍼티들

프로퍼티 타입 설명
$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