GitLab's annual major release is around the corner. Along with a lot of new and exciting features, there will be a few breaking changes. Learn more here.

Commit c9dad788 authored by Dany wm de Bontridder's avatar Dany wm de Bontridder
Browse files

bug mantis#1831 Problème séparateur dans export FEC

parent 9611e6bb
......@@ -141,8 +141,8 @@ class Export_FEC_CSV extends Export
"Montantdevise",
"Idevise"
];
$csv->set_encoding("latin1");
$csv->set_sep_field("\t");
$csv->set_encoding($this->encoding);
$csv->set_sep_field($this->get_char_delimiter($this->delimiter));
$csv->send_header();
$csv->write_header($aTitle);
$aOperation=$this->fetch_data();
......
......@@ -38,7 +38,10 @@ $fec_tab->set_comment(_("Permet l'export des opérations en FEC pour tous les jo
//-----------------------------------------------------------------------------
// export CSV
//-----------------------------------------------------------------------------
ob_start();
$csv_encoding->selected="utf8";
$delimiter->selected=1;
ob_start();
?>
<form method="GET" action="extension.raw.php">
<?php echo \HtmlInput::array_to_hidden(array('gDossier','ac','plugin_code','sa'), $_REQUEST);?>
......@@ -79,6 +82,9 @@ $fec_tab->set_comment(_("Permet l'export des opérations en FEC pour tous les jo
$date_start->id=uniqid();
$date_end->id=uniqid();
$num_siren=new IText("num_siren");
$csv_encoding->selected="latin1";
$delimiter->selected=2;
?>
<form method="GET" action="extension.raw.php">
<?php echo \HtmlInput::hidden("export_type",'FEC');?>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment