FacturaScripts

ClosingToAcounting
in package

Class that performs accounting closures

Tags
author

Carlos García Gómez [email protected]

author

Jose Antonio Cuello Principal [email protected]

Table of Contents

$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.
__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()  : mixed
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

$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
Return values
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
bool

exec()

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
bool

deleteClosing()

Delete closing accounting entry

protected deleteClosing() : bool
Return values
bool

deleteOpening()

Delete opening accounting entry

protected deleteOpening() : bool
Return values
bool

deleteRegularization()

Delete regularization accounting entry

protected deleteRegularization() : bool
Return values
bool

execCloseInvoices()

Lock all invoices from this exercise.

protected execCloseInvoices() : bool
Return values
bool

execClosing()

Execute account closing

protected execClosing() : bool
Return values
bool

execOpening()

Execute account opening

protected execOpening() : bool
Return values
bool

execRegularization()

Execute account regularization

protected execRegularization() : bool
Return values
bool

updateSpecialAccounts()

Update special accounts from data file.

protected updateSpecialAccounts() : mixed
Return values
mixed

Search results