Author: danydb
Date: 2013-10-12 22:23:33 +0200 (Sat, 12 Oct 2013)
New Revision: 5492
Modified:
phpcompta/trunk/include/export_ledger_csv.php
Log:
task #0000890: PRINTJRN : export PDF et CSV des operations detaillees
Cosmetique : nom export csv
Modified: phpcompta/trunk/include/export_ledger_csv.php
===================================================================
--- phpcompta/trunk/include/export_ledger_csv.php 2013-10-12 20:05:47 UTC
(rev 5491)
+++ phpcompta/trunk/include/export_ledger_csv.php 2013-10-12 20:23:33 UTC
(rev 5492)
@@ -22,9 +22,10 @@
* \brief Send a ledger in CSV format
*/
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
+$fDate = date('dmy-Hi');
header('Pragma: public');
header('Content-type: application/csv');
-header('Content-Disposition: attachment;filename="jrn.csv"',FALSE);
+header('Content-Disposition: attachment;filename="jrn-'.$fDate.'.csv"',FALSE);
include_once ("ac_common.php");
require_once('class_own.php');
require_once 'class_acc_ledger_sold.php';
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
_______________________________________________
Phpcompta est un logiciel libre de comptabilité en ligne
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev