Definition at line 29 of file api_accountancy.class.php.
◆ exportData()
Accountancy::exportData |
( |
|
$period, |
|
|
|
$date_min = '' , |
|
|
|
$date_max = '' , |
|
|
|
$format = '' , |
|
|
|
$lettering = 0 , |
|
|
|
$alreadyexport = 0 , |
|
|
|
$notnotifiedasexport = 0 |
|
) |
| |
Accountancy export data.
- Parameters
-
string | $period | Period : 'lastmonth', 'currentmonth', 'last3months', 'last6months', 'currentyear', 'lastyear', 'fiscalyear', 'lastfiscalyear', 'actualandlastfiscalyear' or 'custom' (see above) |
string | $date_min | [=''] Start date of period if 'custom' is set in period parameter Date format is 'YYYY-MM-DD' |
string | $date_max | [=''] End date of period if 'custom' is set in period parameter Date format is 'YYYY-MM-DD' |
string | $format | [=''] by default uses '1' for 'Configurable (CSV)' for format number or '1000' for FEC or '1010' for FEC2 (see AccountancyExport class) |
int | $lettering | [=0] by default don't export or 1 to export lettering data (columns 'letterring_code' and 'date_lettering' returns empty or not) |
int | $alreadyexport | [=0] by default export data only if it's not yet exported or 1 already exported (always export data even if 'date_export" is set) |
int | $notnotifiedasexport | [=0] by default notified as exported or 1 not notified as exported (when the export is done, notified or not the column 'date_export') |
- Returns
- string
@url GET exportdata
- Exceptions
-
RestException | 401 Insufficient rights |
RestException | 404 Accountancy export period not found |
RestException | 404 Accountancy export start or end date not defined |
RestException | 404 Accountancy export format not found |
RestException | 500 Error on accountancy export |
Definition at line 90 of file api_accountancy.class.php.
The documentation for this class was generated from the following file: