FacturaScripts

ListBusinessActionTrait

Contains common utilities for grouping and collecting documents.

Tags
author

Carlos García Gómez [email protected]

Table of Contents

addButton()  : mixed
redirect()  : mixed
addButtonApproveDocument()  : mixed
Adds buttons to approve documents.
addButtonGenerateAccountingInvoices()  : void
Adds button to lock invoices.
addButtonGroupDocument()  : void
Adds button to group documents.
addButtonLockInvoice()  : void
Adds button to lock invoices.
addButtonPayReceipt()  : void
Adds button to pay receipts.
approveDocumentAction()  : bool
Approves selected documents.
generateAccountingEntriesAction()  : bool
groupDocumentAction()  : bool
Group selected documents.
lockInvoiceAction()  : bool
Locks selected invoices.
payReceiptAction()  : bool
Sets selected receipts as paid.
validateFormToken()  : bool

Methods

addButton()

public abstract addButton(string $viewName, array<string|int, mixed> $btnArray) : mixed
Parameters
$viewName : string
$btnArray : array<string|int, mixed>
Return values
mixed

redirect()

public abstract redirect(string $url, int $delay) : mixed
Parameters
$url : string
$delay : int
Return values
mixed

addButtonApproveDocument()

Adds buttons to approve documents.

protected addButtonApproveDocument(string $viewName) : mixed
Parameters
$viewName : string
Return values
mixed

addButtonGenerateAccountingInvoices()

Adds button to lock invoices.

protected addButtonGenerateAccountingInvoices(string $viewName[, string|null $code = null ]) : void
Parameters
$viewName : string
$code : string|null = null
Return values
void

addButtonGroupDocument()

Adds button to group documents.

protected addButtonGroupDocument(string $viewName) : void
Parameters
$viewName : string
Return values
void

addButtonLockInvoice()

Adds button to lock invoices.

protected addButtonLockInvoice(string $viewName) : void
Parameters
$viewName : string
Return values
void

addButtonPayReceipt()

Adds button to pay receipts.

protected addButtonPayReceipt(string $viewName) : void
Parameters
$viewName : string
Return values
void

generateAccountingEntriesAction()

protected generateAccountingEntriesAction(mixed $model, mixed $allowUpdate, mixed $dataBase) : bool
Parameters
$model : mixed
$allowUpdate : mixed
$dataBase : mixed
Return values
bool

payReceiptAction()

Sets selected receipts as paid.

protected payReceiptAction(mixed $codes, Receipt $model, bool $allowUpdate, DataBase $dataBase, string $nick) : bool
Parameters
$codes : mixed
$model : Receipt
$allowUpdate : bool
$dataBase : DataBase
$nick : string
Return values
bool

Search results