dolibarr  17.0.0
Public Member Functions | Static Public Member Functions | List of all members
AccountancyExport Class Reference

Manage the different format accountancy export. More...

Collaboration diagram for AccountancyExport:
Collaboration graph
[legend]

Public Member Functions

 __construct (DoliDB $db)
 Constructor. More...
 
 getType ()
 Array with all export type available (key + label) More...
 
 getTypeConfig ()
 Array with all export type available (key + label) and parameters for config. More...
 
 getMimeType ($formatexportset)
 Return the MIME type of a file. More...
 
 export (&$TData, $formatexportset)
 Function who chose which export to use with the default config, and make the export into a file. More...
 
 exportCegid ($objectLines)
 Export format : CEGID. More...
 
 exportCogilog ($objectLines)
 Export format : COGILOG. More...
 
 exportCoala ($objectLines)
 Export format : COALA. More...
 
 exportBob50 ($objectLines)
 Export format : BOB50. More...
 
 exportCiel (&$TData)
 Export format : CIEL (Format XIMPORT) Format since 2003 compatible CIEL version > 2002 / Sage50 Last review for this format : 2021-09-13 Alexandre Spangaro (aspan.nosp@m.garo.nosp@m.@open.nosp@m.-dsi.nosp@m..fr) More...
 
 exportQuadratus (&$TData)
 Export format : Quadratus (Format ASCII) Format since 2015 compatible QuadraCOMPTA Last review for this format : 2023/01/28 Alexandre Spangaro (aspan.nosp@m.garo.nosp@m.@open.nosp@m.-dsi.nosp@m..fr) More...
 
 exportWinfic (&$TData)
 Export format : WinFic - eWinfic - WinSis Compta Last review for this format : 2022-11-01 Alexandre Spangaro (aspan.nosp@m.garo.nosp@m.@open.nosp@m.-dsi.nosp@m..fr) More...
 
 exportEbp ($objectLines)
 Export format : EBP. More...
 
 exportAgiris ($objectLines)
 Export format : Agiris Isacompta. More...
 
 exportOpenConcerto ($objectLines)
 Export format : OpenConcerto. More...
 
 exportConfigurable ($objectLines)
 Export format : Configurable CSV. More...
 
 exportFEC ($objectLines)
 Export format : FEC. More...
 
 exportFEC2 ($objectLines)
 Export format : FEC2. More...
 
 exportSAGE50SWISS ($objectLines)
 Export format : SAGE50SWISS. More...
 
 exportLDCompta ($objectLines)
 Export format : LD Compta version 9 http://www.ldsysteme.fr/fileadmin/telechargement/np/ldcompta/Documentation/IntCptW9.pdf. More...
 
 exportLDCompta10 ($objectLines)
 Export format : LD Compta version 10 & higher Last review for this format : 08-15-2021 Alexandre Spangaro (aspan.nosp@m.garo.nosp@m.@open.nosp@m.-dsi.nosp@m..fr) More...
 
 exportCharlemagne ($objectLines)
 Export format : Charlemagne. More...
 
 exportGestimumV3 ($objectLines)
 Export format : Gestimum V3. More...
 
 exportGestimumV5 ($objectLines)
 Export format : Gestimum V5. More...
 
 exportiSuiteExpert ($objectLines)
 Export format : iSuite Expert. More...
 

Static Public Member Functions

static getFormatCode ($type)
 Return string to summarize the format (Used to generated export filename) More...
 
static trunc ($str, $size)
 trunc More...
 
static toAnsi ($str, $size=-1)
 toAnsi More...
 

Detailed Description

Manage the different format accountancy export.

Definition at line 44 of file accountancyexport.class.php.

Constructor & Destructor Documentation

◆ __construct()

AccountancyExport::__construct ( DoliDB  $db)

Constructor.

Parameters
DoliDb$dbDatabase handler

Definition at line 96 of file accountancyexport.class.php.

Member Function Documentation

◆ export()

AccountancyExport::export ( $TData,
  $formatexportset 
)

Function who chose which export to use with the default config, and make the export into a file.

Parameters
array$TDataArray with data
int$formatexportsetId of export format
Returns
void

Definition at line 318 of file accountancyexport.class.php.

◆ exportAgiris()

AccountancyExport::exportAgiris (   $objectLines)

Export format : Agiris Isacompta.

Parameters
array$objectLinesdata
Returns
void

Definition at line 858 of file accountancyexport.class.php.

◆ exportBob50()

AccountancyExport::exportBob50 (   $objectLines)

Export format : BOB50.

Parameters
array$objectLinesdata
Returns
void

Definition at line 497 of file accountancyexport.class.php.

◆ exportCegid()

AccountancyExport::exportCegid (   $objectLines)

Export format : CEGID.

Parameters
array$objectLinesdata
Returns
void

Definition at line 411 of file accountancyexport.class.php.

◆ exportCharlemagne()

AccountancyExport::exportCharlemagne (   $objectLines)

Export format : Charlemagne.

Parameters
array$objectLinesdata
Returns
void

Definition at line 1748 of file accountancyexport.class.php.

◆ exportCiel()

AccountancyExport::exportCiel ( $TData)

Export format : CIEL (Format XIMPORT) Format since 2003 compatible CIEL version > 2002 / Sage50 Last review for this format : 2021-09-13 Alexandre Spangaro (aspan.nosp@m.garo.nosp@m.@open.nosp@m.-dsi.nosp@m..fr)

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

Parameters
array$TDatadata
Returns
void

Definition at line 543 of file accountancyexport.class.php.

◆ exportCoala()

AccountancyExport::exportCoala (   $objectLines)

Export format : COALA.

Parameters
array$objectLinesdata
Returns
void

Definition at line 469 of file accountancyexport.class.php.

◆ exportCogilog()

AccountancyExport::exportCogilog (   $objectLines)

Export format : COGILOG.

Parameters
array$objectLinesdata
Returns
void

Definition at line 436 of file accountancyexport.class.php.

◆ exportConfigurable()

AccountancyExport::exportConfigurable (   $objectLines)

Export format : Configurable CSV.

Parameters
array$objectLinesdata
Returns
void

Definition at line 928 of file accountancyexport.class.php.

◆ exportEbp()

AccountancyExport::exportEbp (   $objectLines)

Export format : EBP.

Parameters
array$objectLinesdata
Returns
void

Definition at line 823 of file accountancyexport.class.php.

◆ exportFEC()

AccountancyExport::exportFEC (   $objectLines)

Export format : FEC.

Parameters
array$objectLinesdata
Returns
void

Definition at line 959 of file accountancyexport.class.php.

◆ exportFEC2()

AccountancyExport::exportFEC2 (   $objectLines)

Export format : FEC2.

Parameters
array$objectLinesdata
Returns
void

Definition at line 1092 of file accountancyexport.class.php.

◆ exportGestimumV3()

AccountancyExport::exportGestimumV3 (   $objectLines)

Export format : Gestimum V3.

Parameters
array$objectLinesdata
Returns
void

Definition at line 1812 of file accountancyexport.class.php.

◆ exportGestimumV5()

AccountancyExport::exportGestimumV5 (   $objectLines)

Export format : Gestimum V5.

Parameters
array$objectLinesdata
Returns
void

Definition at line 1910 of file accountancyexport.class.php.

◆ exportiSuiteExpert()

AccountancyExport::exportiSuiteExpert (   $objectLines)

Export format : iSuite Expert.

by OpenSolus [https://opensolus.fr]

Parameters
array$objectLinesdata
Returns
void

Definition at line 1953 of file accountancyexport.class.php.

◆ exportLDCompta()

AccountancyExport::exportLDCompta (   $objectLines)

Export format : LD Compta version 9 http://www.ldsysteme.fr/fileadmin/telechargement/np/ldcompta/Documentation/IntCptW9.pdf.

Parameters
array$objectLinesdata
Returns
void

Definition at line 1349 of file accountancyexport.class.php.

◆ exportLDCompta10()

AccountancyExport::exportLDCompta10 (   $objectLines)

Export format : LD Compta version 10 & higher Last review for this format : 08-15-2021 Alexandre Spangaro (aspan.nosp@m.garo.nosp@m.@open.nosp@m.-dsi.nosp@m..fr)

Help : http://www.ldsysteme.fr/fileadmin/telechargement/np/ldcompta/Documentation/IntCptW10.pdf

Parameters
array$objectLinesdata
Returns
void

Definition at line 1483 of file accountancyexport.class.php.

◆ exportOpenConcerto()

AccountancyExport::exportOpenConcerto (   $objectLines)

Export format : OpenConcerto.

Parameters
array$objectLinesdata
Returns
void

Definition at line 897 of file accountancyexport.class.php.

◆ exportQuadratus()

AccountancyExport::exportQuadratus ( $TData)

Export format : Quadratus (Format ASCII) Format since 2015 compatible QuadraCOMPTA Last review for this format : 2023/01/28 Alexandre Spangaro (aspan.nosp@m.garo.nosp@m.@open.nosp@m.-dsi.nosp@m..fr)

Help : https://docplayer.fr/20769649-Fichier-d-entree-ascii-dans-quadracompta.html In QuadraCompta | Use menu : "Outils" > "Suivi des dossiers" > "Import ASCII(Compta)"

Parameters
array$TDatadata
Returns
void

Definition at line 590 of file accountancyexport.class.php.

◆ exportSAGE50SWISS()

AccountancyExport::exportSAGE50SWISS (   $objectLines)

◆ exportWinfic()

AccountancyExport::exportWinfic ( $TData)

Export format : WinFic - eWinfic - WinSis Compta Last review for this format : 2022-11-01 Alexandre Spangaro (aspan.nosp@m.garo.nosp@m.@open.nosp@m.-dsi.nosp@m..fr)

Help : https://wiki.gestan.fr/lib/exe/fetch.php?media=wiki:v15:compta:accountancy-format_winfic-ewinfic-winsiscompta.pdf

Parameters
array$TDatadata
Returns
void

Definition at line 737 of file accountancyexport.class.php.

◆ getFormatCode()

static AccountancyExport::getFormatCode (   $type)
static

Return string to summarize the format (Used to generated export filename)

Parameters
int$typeFormat id
Returns
string Format code

Definition at line 154 of file accountancyexport.class.php.

◆ getMimeType()

AccountancyExport::getMimeType (   $formatexportset)

Return the MIME type of a file.

Parameters
int$formatexportsetId of export format
Returns
string MIME type.

Definition at line 295 of file accountancyexport.class.php.

◆ getType()

AccountancyExport::getType ( )

Array with all export type available (key + label)

Returns
array of type

Definition at line 112 of file accountancyexport.class.php.

◆ getTypeConfig()

AccountancyExport::getTypeConfig ( )

Array with all export type available (key + label) and parameters for config.

Returns
array of type

Definition at line 192 of file accountancyexport.class.php.

◆ toAnsi()

static AccountancyExport::toAnsi (   $str,
  $size = -1 
)
static

toAnsi

Parameters
string$strOriginal string to encode and optionaly truncate
integer$sizeTruncate string after $size characters
Returns
string String encoded in Windows-1251 charset

Definition at line 2019 of file accountancyexport.class.php.

References dol_string_nohtmltag().

◆ trunc()

static AccountancyExport::trunc (   $str,
  $size 
)
static

trunc

Parameters
string$strString
integer$sizeData to trunc
Returns
string

Definition at line 2007 of file accountancyexport.class.php.

References dol_trunc().


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