dolibarr 20.0.0
|
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 40 of file accountancyimport.class.php.
AccountancyImport::__construct | ( | DoliDB | $db | ) |
Constructor.
Definition at line 57 of file accountancyimport.class.php.
AccountancyImport::cleanAmount | ( | & | $arrayrecord, |
$listfields, | |||
$record_key ) |
Clean amount.
array | $arrayrecord | Array of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]... |
array | $listfields | Fields list to add |
int | $record_key | Record key |
Definition at line 70 of file accountancyimport.class.php.
References price2num().
AccountancyImport::cleanValue | ( | & | $arrayrecord, |
$listfields, | |||
$record_key ) |
Clean value with trim.
array | $arrayrecord | Array of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]... |
array | $listfields | Fields list to add |
int | $record_key | Record key |
Definition at line 84 of file accountancyimport.class.php.
AccountancyImport::computeAmount | ( | & | $arrayrecord, |
$listfields, | |||
$record_key ) |
Compute amount.
array | $arrayrecord | Array of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]... |
array | $listfields | Fields list to add |
int | $record_key | Record key |
Definition at line 97 of file accountancyimport.class.php.
References price2num().
AccountancyImport::computeDirection | ( | & | $arrayrecord, |
$listfields, | |||
$record_key ) |
Compute direction.
array | $arrayrecord | Array of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]... |
array | $listfields | Fields list to add |
int | $record_key | Record key |
Definition at line 126 of file accountancyimport.class.php.
References price2num().
AccountancyImport::computePieceNum | ( | & | $arrayrecord, |
$listfields, | |||
$record_key ) |
Compute piece number.
array | $arrayrecord | Array of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]... |
array | $listfields | Fields list to add |
int | $record_key | Record key |
Definition at line 152 of file accountancyimport.class.php.