dolibarr 21.0.0-beta
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 41 of file accountancyimport.class.php.

Constructor & Destructor Documentation

◆ __construct()

AccountancyImport::__construct ( DoliDB $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

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

Member Function Documentation

◆ cleanAmount()

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

Clean amount.

Parameters
array<array{val:null|int|float|string,type:int<-1,1>}>$arrayrecord Array of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]...
array<string,string>$listfields Fields list to add
int$record_keyRecord key
Returns
float Value

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

References price2num().

◆ cleanValue()

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

Clean value with trim.

Parameters
array<array{val:null|int|float|string,type:int<-1,1>}>$arrayrecord Array of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]...
array<string,string>$listfields Fields list to add
int$record_keyRecord key
Returns
mixed Value

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

◆ computeAmount()

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

Compute amount.

Parameters
array<array{val:null|int|float|string,type:int<-1,1>}>$arrayrecord Array of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]...
array<string,string>$listfields Fields list to add
int$record_keyRecord key
Returns
string Value

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

References price2num().

◆ computeDirection()

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

Compute direction.

Parameters
array<array{val:null|int|float|string,type:int<-1,1>}>$arrayrecord Array of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]...
array<string,string>$listfields Fields list to add
int$record_keyRecord key
Returns
string Value

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

References price2num().

◆ computePieceNum()

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

Compute piece number.

Parameters
array<array{val:null|int|float|string,type:int<-1,1>}>$arrayrecord Array of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]...
array<string,string>$listfields Fields list to add
int$record_keyRecord key
Returns
string Value

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

References $conf.


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