dolibarr 20.0.0
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.
 
 computePieceNum (&$arrayrecord, $listfields, $record_key)
 Compute piece number.
 

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 57 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
float Value

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

References price2num().

◆ 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 84 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
string Value

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

References price2num().

◆ 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
string Value

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

References price2num().

◆ computePieceNum()

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

Compute piece number.

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
string Value

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


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