FacturaScripts

InvoiceTrait uses trait:short

Trait con la funcionalidad común de las facturas.

Table of Contents

Properties

$codigorect  : string
$editable  : bool
$fecha  : string
$fechadevengo  : string
$idasiento  : int
$idfactura  : int
$idfacturarect  : int
$pagada  : bool
$vencida  : mixed
$refunds  : array<string|int, mixed>

Methods

all()  : array<string|int, mixed>
delete()  : bool
getAccountingEntry()  : Asiento
getReceipts()  : array<string|int, mixed>
getRefunds()  : array<string|int, static>
install()  : string
Esta función se ejecuta al crear la tabla del modelo. Devuelve el SQL que se ejecutará después de la creación de la tabla. Útil para insertar valores por defecto.
paid()  : bool
parentDocuments()  : array<string|int, TransformerDocument>
Devuelve todos los documentos padre de este.
primaryColumn()  : string
testDate()  : bool
onChange()  : bool
onChangeTotal()  : bool

Properties

Methods

all()

public abstract static all([array<string|int, mixed> $where = [] ][, array<string|int, mixed> $order = [] ][, int $offset = 0 ][, int $limit = 0 ]) : array<string|int, mixed>
Parameters
$where : array<string|int, mixed> = []
$order : array<string|int, mixed> = []
$offset : int = 0
$limit : int = 0
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()

Esta función se ejecuta al crear la tabla del modelo. Devuelve el SQL que se ejecutará después de la creación de la tabla. Útil para insertar valores por defecto.

public install() : string
Return values
string

primaryColumn()

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

        
On this page

Search results