dolibarr 21.0.0-alpha
|
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. | |
Manage the different format accountancy import.
Definition at line 41 of file accountancyimport.class.php.
AccountancyImport::__construct | ( | DoliDB | $db | ) |
Constructor.
Definition at line 58 of file accountancyimport.class.php.
AccountancyImport::cleanAmount | ( | & | $arrayrecord, |
$listfields, | |||
$record_key ) |
Clean amount.
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_key | Record key |
Definition at line 71 of file accountancyimport.class.php.
References price2num().
AccountancyImport::cleanValue | ( | & | $arrayrecord, |
$listfields, | |||
$record_key ) |
Clean value with trim.
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_key | Record key |
Definition at line 85 of file accountancyimport.class.php.
AccountancyImport::computeAmount | ( | & | $arrayrecord, |
$listfields, | |||
$record_key ) |
Compute amount.
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_key | Record key |
Definition at line 98 of file accountancyimport.class.php.
References price2num().
AccountancyImport::computeDirection | ( | & | $arrayrecord, |
$listfields, | |||
$record_key ) |
Compute direction.
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_key | Record key |
Definition at line 127 of file accountancyimport.class.php.
References price2num().
AccountancyImport::computePieceNum | ( | & | $arrayrecord, |
$listfields, | |||
$record_key ) |
Compute piece number.
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_key | Record key |
Definition at line 153 of file accountancyimport.class.php.