ListBusinessActionTrait
Contains common utilities for grouping and collecting documents.
Tags
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 —approveDocumentAction()
Approves selected documents.
protected
approveDocumentAction(mixed $codes, TransformerDocument $model, bool $allowUpdate, DataBase $dataBase) : bool
Parameters
- $codes : mixed
- $model : TransformerDocument
- $allowUpdate : bool
- $dataBase : DataBase
Return values
bool —generateAccountingEntriesAction()
protected
generateAccountingEntriesAction(mixed $model, mixed $allowUpdate, mixed $dataBase) : bool
Parameters
- $model : mixed
- $allowUpdate : mixed
- $dataBase : mixed
Return values
bool —groupDocumentAction()
Group selected documents.
protected
groupDocumentAction(mixed $codes, TransformerDocument $model) : bool
Parameters
- $codes : mixed
- $model : TransformerDocument
Return values
bool —lockInvoiceAction()
Locks selected invoices.
protected
lockInvoiceAction(mixed $codes, TransformerDocument $model, bool $allowUpdate, DataBase $dataBase) : bool
Parameters
- $codes : mixed
- $model : TransformerDocument
- $allowUpdate : bool
- $dataBase : DataBase
Return values
bool —payReceiptAction()
Sets selected receipts as paid.
protected
payReceiptAction(mixed $codes, Receipt $model, bool $allowUpdate, DataBase $dataBase, string $nick) : bool
Parameters
Return values
bool —validateFormToken()
protected
abstract validateFormToken() : bool