AccountancyExport
class AccountancyExport (View source)
Manage the different format accountancy export
Properties
| static int | $EXPORT_TYPE_CONFIGURABLE | ||
| static int | $EXPORT_TYPE_AGIRIS | ||
| static int | $EXPORT_TYPE_EBP | ||
| static int | $EXPORT_TYPE_CEGID | ||
| static int | $EXPORT_TYPE_COGILOG | ||
| static int | $EXPORT_TYPE_COALA | ||
| static int | $EXPORT_TYPE_BOB50 | ||
| static int | $EXPORT_TYPE_CIEL | ||
| static int | $EXPORT_TYPE_SAGE50_SWISS | ||
| static int | $EXPORT_TYPE_CHARLEMAGNE | ||
| static int | $EXPORT_TYPE_QUADRATUS | ||
| static int | $EXPORT_TYPE_WINFIC | ||
| static int | $EXPORT_TYPE_OPENCONCERTO | ||
| static int | $EXPORT_TYPE_LDCOMPTA | ||
| static int | $EXPORT_TYPE_LDCOMPTA10 | ||
| static int | $EXPORT_TYPE_GESTIMUMV3 | ||
| static int | $EXPORT_TYPE_GESTIMUMV5 | ||
| static int | $EXPORT_TYPE_ISUITEEXPERT | ||
| static int | $EXPORT_TYPE_ISTEA | ||
| static int | $EXPORT_TYPE_FEC | ||
| static int | $EXPORT_TYPE_FEC2 | ||
| DoliDB | $db | ||
| string[] | $errors | ||
| string | $separator | ||
| string | $end_line | ||
| array{downloadFilePath: string, downloadFileMimeType: string, downloadFileFullName: string}|array{} | $generatedfiledata |
Methods
Array with all export type available (key + label)
Return string to summarize the format (Used to generated export filename)
Array with all export types available (key + label) and parameters for config
Return the MIME type of a file
Function who chose which export to use with the default config, and make the export into a file
Export format : COGILOG Last review for this format : 2022-07-12 Alexandre Spangaro ([email protected])
Export format : CIEL (Format XIMPORT) Format since 2003 compatible CIEL version > 2002 / Sage50 Last review for this format : 2021-09-13 Alexandre Spangaro ([email protected])
Export format : Quadratus (Format ASCII) Format since 2015 compatible QuadraCOMPTA Last review for this format : 2025/12/21 Alexandre Spangaro ([email protected])
Export format : WinFic - eWinfic - WinSis Compta Last review for this format : 2022-11-01 Alexandre Spangaro ([email protected])
Export format : Agiris Isacompta
Export format : OpenConcerto
Export format : Configurable CSV
Export format : FEC Last review for this format : 2023/10/12 Alexandre Spangaro ([email protected])
Export format : FEC2 Last review for this format : 2023/10/12 Alexandre Spangaro ([email protected])
Export format : SAGE50SWISS
Export format : LD Compta version 9 http://www.ldsysteme.fr/fileadmin/telechargement/np/ldcompta/Documentation/IntCptW9.pdf
Export format : LD Compta version 10 & higher Last review for this format : 08-15-2021 Alexandre Spangaro ([email protected])
Export format : Charlemagne
Export format : Gestimum V3
Export format : Gestimum V5
Export format : iSuite Expert
trunc
toAnsi
Details
__construct(DoliDB $db)
Constructor
array<int|string, string>|array<int|string, array{id: int|string, label: string, position: int, disabled?: string}>
getType(int<0, 1> $mode = 0)
Array with all export type available (key + label)
static string
getFormatCode(int $type)
Return string to summarize the format (Used to generated export filename)
array{param: array<int|string, array<string, string>>, cr: array<int|string, string>, format: array<string, string>}
getTypeConfig()
Array with all export types available (key + label) and parameters for config
string
getMimeType(int $formatexportset)
Return the MIME type of a file
int
export(BookKeepingLine[] $TData, int $formatexportset, int<0, 1> $withAttachment = 0, int<1, 1> $downloadMode = 1, int<1, 2> $outputMode = 1, int<1, 1> $noouput = 1)
Function who chose which export to use with the default config, and make the export into a file
void
exportCegid(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
Export format : CEGID
void
exportCogilog(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
Export format : COGILOG Last review for this format : 2022-07-12 Alexandre Spangaro ([email protected])
void
exportCoala(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
Export format : COALA
void
exportBob50(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
Export format : BOB50
void
exportCiel(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
Export format : CIEL (Format XIMPORT) Format since 2003 compatible CIEL version > 2002 / Sage50 Last review for this format : 2021-09-13 Alexandre Spangaro ([email protected])
Help : https://sage50c.online-help.sage.fr/aide-technique/ In sage software | Use menu : "Exchange" > "Importing entries..."
If you want to force filename to "XIMPORT.TXT" for automatically import file present in a directory : use constant ACCOUNTING_EXPORT_XIMPORT_FORCE_FILENAME
array<string, array{name: string, path: string}>
exportQuadratus(BookKeepingLine[] $objectLines, ?resource $exportFile = null, array<string, array{name: string, path: string}> $archiveFileList = array(), int<0, 1> $withAttachment = 0)
Export format : Quadratus (Format ASCII) Format since 2015 compatible QuadraCOMPTA Last review for this format : 2025/12/21 Alexandre Spangaro ([email protected])
Information on format: https://docplayer.fr/20769649-Fichier-d-entree-ascii-dans-quadracompta.html Help to import in Quadra: https://wiki.dolibarr.org/index.php?title=Module_Comptabilit%C3%A9_en_Partie_Double#Import_vers_CEGID_Quadra In QuadraCompta | Use menu : "Outils" > "Suivi des dossiers" > "Import ASCII(Compta)"
void
exportWinfic(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
Export format : WinFic - eWinfic - WinSis Compta Last review for this format : 2022-11-01 Alexandre Spangaro ([email protected])
void
exportEbp(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
Export format : EBP
void
exportAgiris(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
Export format : Agiris Isacompta
void
exportOpenConcerto(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
Export format : OpenConcerto
void
exportConfigurable(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
Export format : Configurable CSV
void
exportISTEA(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
Export format : ISTEA
array<string, array{name: string, path: string}>
exportFEC(BookKeepingLine[] $objectLines, ?resource $exportFile = null, array<string, array{name: string, path: string}> $archiveFileList = array(), int<0, 1> $withAttachment = 0)
Export format : FEC Last review for this format : 2023/10/12 Alexandre Spangaro ([email protected])
Help to import in your software: https://wiki.dolibarr.org/index.php?title=Module_Comptabilit%C3%A9_en_Partie_Double#Exports_avec_fichiers_sources
array<string, array{name: string, path: string}>
exportFEC2(BookKeepingLine[] $objectLines, ?resource $exportFile = null, array<string, array{name: string, path: string}> $archiveFileList = array(), int<0, 1> $withAttachment = 0)
Export format : FEC2 Last review for this format : 2023/10/12 Alexandre Spangaro ([email protected])
Help to import in your software: https://wiki.dolibarr.org/index.php?title=Module_Comptabilit%C3%A9_en_Partie_Double#Exports_avec_fichiers_sources
void
exportSAGE50SWISS(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
void
exportLDCompta(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
Export format : LD Compta version 9 http://www.ldsysteme.fr/fileadmin/telechargement/np/ldcompta/Documentation/IntCptW9.pdf
void
exportLDCompta10(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
Export format : LD Compta version 10 & higher Last review for this format : 08-15-2021 Alexandre Spangaro ([email protected])
Help : http://www.ldsysteme.fr/fileadmin/telechargement/np/ldcompta/Documentation/IntCptW10.pdf
void
exportCharlemagne(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
Export format : Charlemagne
void
exportGestimumV3(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
Export format : Gestimum V3
void
exportGestimumV5(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
Export format : Gestimum V5
void
exportiSuiteExpert(BookKeepingLine[] $objectLines, ?resource $exportFile = null)
Export format : iSuite Expert
by OpenSolus [https://opensolus.fr]
static string
trunc(string $str, int $size)
trunc
static string
toAnsi(string $str, int $size = -1)
toAnsi