FacturaScripts

InvoiceTrait

Description of InvoiceTrait

Tags
author

Carlos García Gómez [email protected]

Table of Contents

$codigorect  : string
$editable  : bool
$fecha  : string
$fechadevengo  : string
$idfactura  : int
$idfacturarect  : int
$pagada  : bool
$vencida  : mixed
$refunds  : array<string|int, mixed>
all()  : array<string|int, mixed>
delete()  : bool
getReceipts()  : array<string|int, mixed>
getRefunds()  : array<string|int, static>
install()  : string
This function is called when creating the model table. Returns the SQL that will be executed after the creation of the table. Useful to insert values default.
paid()  : bool
parentDocuments()  : array<string|int, TransformerDocument>
Returns all parent document of this one.
primaryColumn()  : string
Returns the name of the column that is the model's primary key.
testDate()  : bool
onChange()  : bool
onChangeTotal()  : bool
setPreviousData()  : mixed

Properties

Methods

all()

public abstract all([array<string|int, mixed> $where = [] ][, array<string|int, mixed> $order = [] ], int $offset[, int $limit = 50 ]) : array<string|int, mixed>
Parameters
$where : array<string|int, mixed> = []
$order : array<string|int, mixed> = []
$offset : int
$limit : int = 50
Return values
array<string|int, mixed>

getReceipts()

public abstract getReceipts() : array<string|int, mixed>
Return values
array<string|int, mixed>

getRefunds()

public getRefunds() : array<string|int, static>
Return values
array<string|int, static>

install()

This function is called when creating the model table. Returns the SQL that will be executed after the creation of the table. Useful to insert values default.

public install() : string
Return values
string

primaryColumn()

Returns the name of the column that is the model's primary key.

public static primaryColumn() : string
Return values
string

testDate()

public abstract testDate() : bool
Return values
bool

onChange()

protected onChange(string $field) : bool
Parameters
$field : string
Return values
bool

onChangeTotal()

protected onChangeTotal() : bool
Return values
bool

setPreviousData()

protected setPreviousData([array<string|int, mixed> $fields = [] ]) : mixed
Parameters
$fields : array<string|int, mixed> = []
Return values
mixed

Search results