AccountancyImport
class AccountancyImport (View source)
Manage the different format accountancy import
Properties
| DoliDB | $db | ||
| string[] | $errors |
Methods
float
cleanAmount(array<array{val: null|int|float|string, type: int<-1, 1>}> $arrayrecord, array<string, string> $listfields, int $record_key)
Clean amount
mixed
cleanValue(array<array{val: null|int|float|string, type: int<-1, 1>}> $arrayrecord, array<string, string> $listfields, int $record_key)
Clean value with trim
string
computeAmount(array<array{val: null|int|float|string, type: int<-1, 1>}> $arrayrecord, array<string, string> $listfields, int $record_key)
Compute amount
string
computeDirection(array<array{val: null|int|float|string, type: int<-1, 1>}> $arrayrecord, array<string, string> $listfields, int $record_key)
Compute direction
string
computePieceNum(array<array{val: null|int|float|string, type: int<-1, 1>}> $arrayrecord, array<string, string> $listfields, int $record_key)
Compute piece number
Details
__construct(DoliDB $db)
Constructor
float
cleanAmount(array<array{val: null|int|float|string, type: int<-1, 1>}> $arrayrecord, array<string, string> $listfields, int $record_key)
Clean amount
mixed
cleanValue(array<array{val: null|int|float|string, type: int<-1, 1>}> $arrayrecord, array<string, string> $listfields, int $record_key)
Clean value with trim
string
computeAmount(array<array{val: null|int|float|string, type: int<-1, 1>}> $arrayrecord, array<string, string> $listfields, int $record_key)
Compute amount
string
computeDirection(array<array{val: null|int|float|string, type: int<-1, 1>}> $arrayrecord, array<string, string> $listfields, int $record_key)
Compute direction
string
computePieceNum(array<array{val: null|int|float|string, type: int<-1, 1>}> $arrayrecord, array<string, string> $listfields, int $record_key)
Compute piece number