dolibarr 19.0.3
AccountancyImport Class Reference

Manage the different format accountancy import. More...

Public Member Functions

 __construct (DoliDB $db)
 Constructor.
 
 cleanAmount (&$arrayrecord, $listfields, $record_key)
 Clean amount.
 
 cleanValue (&$arrayrecord, $listfields, $record_key)
 Clean value with trim.
 
 computeAmount (&$arrayrecord, $listfields, $record_key)
 Compute amount.
 
 computeDirection (&$arrayrecord, $listfields, $record_key)
 Compute direction.
 

Detailed Description

Manage the different format accountancy import.

Definition at line 40 of file accountancyimport.class.php.

Constructor & Destructor Documentation

◆ __construct()

AccountancyImport::__construct ( DoliDB $db)

Constructor.

Parameters
DoliDb$dbDatabase handler

Definition at line 53 of file accountancyimport.class.php.

Member Function Documentation

◆ cleanAmount()

AccountancyImport::cleanAmount ( & $arrayrecord,
$listfields,
$record_key )

Clean amount.

Parameters
array$arrayrecordArray of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]...
array$listfieldsFields list to add
int$record_keyRecord key
Returns
mixed Value

Definition at line 66 of file accountancyimport.class.php.

◆ cleanValue()

AccountancyImport::cleanValue ( & $arrayrecord,
$listfields,
$record_key )

Clean value with trim.

Parameters
array$arrayrecordArray of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]...
array$listfieldsFields list to add
int$record_keyRecord key
Returns
mixed Value

Definition at line 80 of file accountancyimport.class.php.

◆ computeAmount()

AccountancyImport::computeAmount ( & $arrayrecord,
$listfields,
$record_key )

Compute amount.

Parameters
array$arrayrecordArray of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]...
array$listfieldsFields list to add
int$record_keyRecord key
Returns
mixed Value

Definition at line 93 of file accountancyimport.class.php.

◆ computeDirection()

AccountancyImport::computeDirection ( & $arrayrecord,
$listfields,
$record_key )

Compute direction.

Parameters
array$arrayrecordArray of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]...
array$listfieldsFields list to add
int$record_keyRecord key
Returns
mixed Value

Definition at line 123 of file accountancyimport.class.php.


The documentation for this class was generated from the following file: