AccountingBase
        
        extends AccountingBase
    
    
            
            in package
            
        
    
    
    
        
            Class created by Core/Base/PluginDeploy
Tags
Table of Contents
- $dataBase : DataBase
 - Link with the active dataBase
 - $dateFrom : string
 - Start date.
 - $dateTo : string
 - End date.
 - $exercise : Ejercicio
 - Fiscal exercise
 - __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.
 - toolBox() : ToolBox
 
Properties
$dataBase
Link with the active dataBase
    protected
        DataBase
    $dataBase
    
    
    
    
$dateFrom
Start date.
    protected
        string
    $dateFrom
    
    
    
    
$dateTo
End date.
    protected
        string
    $dateTo
    
    
    
    
$exercise
Fiscal exercise
    protected
        Ejercicio
    $exercise
    
    
    
    
Methods
__construct()
AccountingBase constructor.
    public
                    __construct() : mixed
    
    
    
        Return values
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> = []
 
Return values
mixed —setExercise()
Load exercise data for the specified code
    public
                    setExercise(string $code) : mixed
    
        Parameters
- $code : string
 
Return values
mixed —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
    
    
    
        Return values
mixed —toolBox()
    protected
                    toolBox() : ToolBox