Ledger
extends Ledger
in package
Class created by Core/Base/PluginDeploy
Tags
Table of Contents
- $dataBase : DataBase
- $dateFrom : string
- $dateTo : string
- $exercise : Ejercicio
- $format : string
- __construct() : mixed
- generate() : array<string|int, mixed>
- formatMoney() : string
- getCuentaBalance() : float
- getData() : array<string|int, mixed>
- getDataGroupedByAccount() : array<string|int, mixed>
- getDataGroupedBySubAccount() : array<string|int, mixed>
- getDataWhere() : string
- processLine() : void
- processLineBalanceGroupedByAccount() : mixed
- processLineBalanceGroupedBySubAccount() : mixed
Properties
$dataBase
protected
DataBase
$dataBase
$dateFrom
protected
string
$dateFrom
$dateTo
protected
string
$dateTo
$exercise
protected
Ejercicio
$exercise
$format
protected
string
$format
Methods
__construct()
public
__construct() : mixed
Return values
mixed —generate()
public
generate(int $idcompany, string $dateFrom, string $dateTo[, array<string|int, mixed> $params = [] ]) : array<string|int, mixed>
Parameters
- $idcompany : int
- $dateFrom : string
- $dateTo : string
- $params : array<string|int, mixed> = []
Return values
array<string|int, mixed> —formatMoney()
protected
formatMoney(float $value, bool $bold) : string
Parameters
- $value : float
- $bold : bool
Return values
string —getCuentaBalance()
protected
getCuentaBalance(string $codcuenta) : float
Parameters
- $codcuenta : string
Return values
float —getData()
protected
getData([array<string|int, mixed> $params = [] ]) : array<string|int, mixed>
Parameters
- $params : array<string|int, mixed> = []
Return values
array<string|int, mixed> —getDataGroupedByAccount()
protected
getDataGroupedByAccount([array<string|int, mixed> $params = [] ]) : array<string|int, mixed>
Parameters
- $params : array<string|int, mixed> = []
Return values
array<string|int, mixed> —getDataGroupedBySubAccount()
protected
getDataGroupedBySubAccount([array<string|int, mixed> $params = [] ]) : array<string|int, mixed>
Parameters
- $params : array<string|int, mixed> = []
Return values
array<string|int, mixed> —getDataWhere()
protected
getDataWhere([array<string|int, mixed> $params = [] ]) : string
Parameters
- $params : array<string|int, mixed> = []
Return values
string —processLine()
protected
processLine(array<string|int, mixed> &$ledger, array<string|int, mixed> $line, array<string|int, mixed> $params) : void
Parameters
- $ledger : array<string|int, mixed>
- $line : array<string|int, mixed>
- $params : array<string|int, mixed>
Return values
void —processLineBalanceGroupedByAccount()
protected
processLineBalanceGroupedByAccount(array<string|int, mixed> &$balances, array<string|int, mixed> &$ledger, array<string|int, mixed> $line) : mixed
Parameters
- $balances : array<string|int, mixed>
- $ledger : array<string|int, mixed>
- $line : array<string|int, mixed>
Return values
mixed —processLineBalanceGroupedBySubAccount()
protected
processLineBalanceGroupedBySubAccount(array<string|int, mixed> &$balances, array<string|int, mixed> &$ledger, array<string|int, mixed> $line) : mixed
Parameters
- $balances : array<string|int, mixed>
- $ledger : array<string|int, mixed>
- $line : array<string|int, mixed>