FacturaScripts

AccountingPlanImport
in package

Description of AccountingPlanImport

Tags
author

Carlos García Gómez [email protected]

author

Raul Jimenez [email protected]

collaborator

Daniel Fernández Giménez [email protected]

Table of Contents

$dataBase  : DataBase
$exercise  : Ejercicio
Exercise related to the accounting plan.
__construct()  : mixed
importCSV()  : bool
Import data from CSV file.
importXML()  : bool
Import data from XML file.
createAccount()  : bool
Insert/update and account in accounting plan.
createSubaccount()  : bool
Insert or update an account in accounting Plan.
getData()  : SimpleXMLElement|array<string|int, mixed>
returns an array width the content of xml file
importCuenta()  : bool
insert Cuenta of accounting plan
importEpigrafe()  : bool
insert Epigrafe of accounting plan
importEpigrafeGroup()  : bool
Insert Groups of accounting plan
importSubcuenta()  : bool
Import subaccounts of accounting plan
processCsvData()  : bool
Load accounting plan from CSV File and imports in accounting plan.
searchParent()  : string
Search the parent of account in accounting Plan.
updateSpecialAccounts()  : mixed
Update special accounts from data file.

Properties

Methods

importCSV()

Import data from CSV file.

public importCSV(string $filePath, string $codejercicio) : bool
Parameters
$filePath : string
$codejercicio : string
Return values
bool

importXML()

Import data from XML file.

public importXML(string $filePath, string $codejercicio) : bool
Parameters
$filePath : string
$codejercicio : string
Return values
bool

createAccount()

Insert/update and account in accounting plan.

protected createAccount(string $code, string $definition[, string|null $parentCode = '' ][, string|null $codcuentaesp = '' ]) : bool
Parameters
$code : string
$definition : string
$parentCode : string|null = ''
$codcuentaesp : string|null = ''
Return values
bool

createSubaccount()

Insert or update an account in accounting Plan.

protected createSubaccount(string $code, string $description, string $parentCode[, string|null $codcuentaesp = '' ]) : bool
Parameters
$code : string
$description : string
$parentCode : string
$codcuentaesp : string|null = ''
Return values
bool

getData()

returns an array width the content of xml file

protected getData(string $filePath) : SimpleXMLElement|array<string|int, mixed>
Parameters
$filePath : string
Return values
SimpleXMLElement|array<string|int, mixed>

importCuenta()

insert Cuenta of accounting plan

protected importCuenta(SimpleXMLElement $data) : bool
Parameters
$data : SimpleXMLElement
Return values
bool

importEpigrafe()

insert Epigrafe of accounting plan

protected importEpigrafe(SimpleXMLElement $data) : bool
Parameters
$data : SimpleXMLElement
Return values
bool

importEpigrafeGroup()

Insert Groups of accounting plan

protected importEpigrafeGroup(SimpleXMLElement $data) : bool
Parameters
$data : SimpleXMLElement
Return values
bool

importSubcuenta()

Import subaccounts of accounting plan

protected importSubcuenta(SimpleXMLElement $data) : bool
Parameters
$data : SimpleXMLElement
Return values
bool

processCsvData()

Load accounting plan from CSV File and imports in accounting plan.

protected processCsvData(string $filePath) : bool
Parameters
$filePath : string
Return values
bool

searchParent()

Search the parent of account in accounting Plan.

protected searchParent(array<string|int, mixed> &$accountCodes, string $account) : string
Parameters
$accountCodes : array<string|int, mixed>
$account : string
Return values
string

updateSpecialAccounts()

Update special accounts from data file.

protected updateSpecialAccounts() : mixed
Return values
mixed

Search results