InvoiceTrait
Description of InvoiceTrait
Tags
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
$codigorect
    public
        string
    $codigorect
    
    
    
    
$editable
    public
        bool
    $editable
    
    
    
    
$fecha
    public
        string
    $fecha
    
    
    
    
$fechadevengo
    public
        string
    $fechadevengo
    
    
    
    
$idfactura
    public
        int
    $idfactura
    
    
    
    
$idfacturarect
    public
        int
    $idfacturarect
    
    
    
    
$pagada
    public
        bool
    $pagada
    
    
    
    
$vencida
    public
        mixed
    $vencida
    
    
        
    
$refunds
    private
        array<string|int, mixed>
    $refunds
    
    
    
    
Methods
all()
    public
    abstract        static        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> —delete()
    public
                    delete() : bool
        
    
    
        Return values
bool —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 —paid()
    public
                    paid() : bool
        
    
    
        Return values
bool —parentDocuments()
Returns all parent document of this one.
    public
                    parentDocuments() : array<string|int, TransformerDocument>
    
    
    
        Return values
array<string|int, TransformerDocument> —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> = []