ClosingToAcounting
in package
Class that performs accounting closures
Table of Contents
Properties
- $copySubAccounts : bool
- Indicates whether the accounting account plan should be copied to the new fiscal year.
- $dataBase : DataBase
- It provides direct access to the database.
- $exercise : Ejercicio
- Exercise where the accounting process is performed.
- $journalClosing : int
- Journal Id for closing accounting entry.
- $journalOpening : int
- Journal Id for opening accounting entry.
Methods
- __construct() : mixed
- Class Constructor
- delete() : bool
- Execute the delete process, deleting selected entry accounts and reopening exercise.
- exec() : bool
- Execute the main process of regularization, closing and opening of accounts.
- deleteClosing() : bool
- Delete closing accounting entry
- deleteOpening() : bool
- Delete opening accounting entry
- deleteRegularization() : bool
- Delete regularization accounting entry
- execCloseInvoices() : bool
- Lock all invoices from this exercise.
- execClosing() : bool
- Execute account closing
- execOpening() : bool
- Execute account opening
- execRegularization() : bool
- Execute account regularization
- updateSpecialAccounts() : void
- Update special accounts from data file.
Properties
$copySubAccounts
Indicates whether the accounting account plan should be copied to the new fiscal year.
protected
bool
$copySubAccounts
$dataBase
It provides direct access to the database.
protected
static DataBase
$dataBase
$exercise
Exercise where the accounting process is performed.
protected
Ejercicio
$exercise
$journalClosing
Journal Id for closing accounting entry.
protected
int
$journalClosing
$journalOpening
Journal Id for opening accounting entry.
protected
int
$journalOpening
Methods
__construct()
Class Constructor
public
__construct() : mixed
delete()
Execute the delete process, deleting selected entry accounts and reopening exercise.
public
delete(Ejercicio $exercise, array<string|int, mixed> $data) : bool
Parameters
- $exercise : Ejercicio
- $data : array<string|int, mixed>
Return values
boolexec()
Execute the main process of regularization, closing and opening of accounts.
public
exec(Ejercicio $exercise, array<string|int, mixed> $data) : bool
Parameters
- $exercise : Ejercicio
- $data : array<string|int, mixed>
Return values
booldeleteClosing()
Delete closing accounting entry
protected
deleteClosing() : bool
Return values
booldeleteOpening()
Delete opening accounting entry
protected
deleteOpening() : bool
Return values
booldeleteRegularization()
Delete regularization accounting entry
protected
deleteRegularization() : bool
Return values
boolexecCloseInvoices()
Lock all invoices from this exercise.
protected
execCloseInvoices() : bool
Return values
boolexecClosing()
Execute account closing
protected
execClosing() : bool
Return values
boolexecOpening()
Execute account opening
protected
execOpening() : bool
Return values
boolexecRegularization()
Execute account regularization
protected
execRegularization() : bool
Return values
boolupdateSpecialAccounts()
Update special accounts from data file.
protected
updateSpecialAccounts() : void