NEW Quadratus export with attachments in accountancy export
This commit is contained in:
parent
88ab5d7203
commit
6dedeb368d
@ -33,7 +33,7 @@ $siren = getDolGlobalString('MAIN_INFO_SIREN');
|
|||||||
$date_export = "_".dol_print_date(dol_now(), '%Y%m%d%H%M%S');
|
$date_export = "_".dol_print_date(dol_now(), '%Y%m%d%H%M%S');
|
||||||
$endaccountingperiod = dol_print_date(dol_now(), '%Y%m%d');
|
$endaccountingperiod = dol_print_date(dol_now(), '%Y%m%d');
|
||||||
|
|
||||||
if (!isset($withAttachments) || $withAttachments == 1) {
|
if (empty($withAttachment)) {
|
||||||
header('Content-Type: text/csv');
|
header('Content-Type: text/csv');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,6 +68,6 @@ if (($accountancyexport->getFormatCode($formatexportset) == 'fec' || $accountanc
|
|||||||
$completefilename = ($code ? $code."_" : "").($prefix ? $prefix."_" : "").$filename.($nodateexport ? "" : $date_export).".".$format;
|
$completefilename = ($code ? $code."_" : "").($prefix ? $prefix."_" : "").$filename.($nodateexport ? "" : $date_export).".".$format;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($withAttachments) || $withAttachments == 1) {
|
if (empty($withAttachment)) {
|
||||||
header('Content-Disposition: attachment;filename=' . $completefilename);
|
header('Content-Disposition: attachment;filename=' . $completefilename);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user