FacturaScripts

AccountingBase
in package

AbstractYes

Description of AccountingBase

Table of Contents

Properties

$dataBase  : DataBase
Link with the active dataBase
$dateFrom  : string
Start date.
$dateTo  : string
End date.
$exercise  : Ejercicio
Fiscal exercise

Methods

__construct()  : mixed
AccountingBase constructor.
generate()  : mixed
Generate the balance amounts between two dates.
setExercise()  : mixed
Load exercise data for the specified code
setExerciseFromDate()  : bool
Load exercise data for the company and date
addToDate()  : string
Returns a new date.
getData()  : mixed
Obtains the balances for each one of the sections of the balance sheet according to their assigned accounts.

Properties

Methods

__construct()

AccountingBase constructor.

public __construct() : mixed

generate()

Generate the balance amounts between two dates.

public abstract generate(string $dateFrom, string $dateTo[, array<string|int, mixed> $params = [] ]) : mixed
Parameters
$dateFrom : string
$dateTo : string
$params : array<string|int, mixed> = []

setExercise()

Load exercise data for the specified code

public setExercise(string $code) : mixed
Parameters
$code : string

setExerciseFromDate()

Load exercise data for the company and date

public setExerciseFromDate(int $idcompany, string $date) : bool
Parameters
$idcompany : int
$date : string
Return values
bool

addToDate()

Returns a new date.

protected addToDate(string $date, string $add) : string
Parameters
$date : string
$add : string
Return values
string

getData()

Obtains the balances for each one of the sections of the balance sheet according to their assigned accounts.

protected abstract getData() : mixed

        
On this page

Search results