Merge branch 'fixes/fix-export-utf-and-logo-path' into staging
This commit is contained in:
commit
b516009f28
@ -50,15 +50,15 @@ class ExportClientStatisticService {
|
||||
$filename .= $client['client_nom'] . '-' . $client['client_entreprise'] . '--';
|
||||
}
|
||||
$filename = rtrim($filename, '-');
|
||||
return $filename;
|
||||
return utf8_decode(html_entity_decode($filename));
|
||||
}
|
||||
|
||||
public function getExportClientFileHeader(): string{
|
||||
$fileHeader =
|
||||
'Client'.';'.
|
||||
'Mois'.';'.
|
||||
'Année'.';'.
|
||||
'Nb defunts'.';'.
|
||||
utf8_decode(html_entity_decode('Année')).';'.
|
||||
utf8_decode(html_entity_decode('Nb défunts')).';'.
|
||||
'Nb articles'.';'.
|
||||
'Total HT'.';'.
|
||||
"\n";
|
||||
|
||||
@ -52,22 +52,22 @@ class ExportThanatoStatisticService {
|
||||
$filename .= $thanato['thanato_nom'] . '-' . $thanato['thanato_prenom'] . '--';
|
||||
}
|
||||
$filename = rtrim($filename, '-');
|
||||
return $filename;
|
||||
return utf8_decode(html_entity_decode($filename));
|
||||
}
|
||||
|
||||
public function getExportThanatoFileHeader(): string{
|
||||
$fileHeader =
|
||||
'Thanatopracteur'.';'.
|
||||
'Date'.';'.
|
||||
'Heure Debut'.';'.
|
||||
'Heure Fin'.';'.
|
||||
utf8_decode(html_entity_decode('Heure de début')).';'.
|
||||
'Heure de fin'.';'.
|
||||
'Soins'.';'.
|
||||
utf8_decode(html_entity_decode('Jour/Ferie')).';'.
|
||||
utf8_decode(html_entity_decode('Jour/Férié')).';'.
|
||||
utf8_decode(html_entity_decode('Nom et Prénom')).';'.
|
||||
'Lieu'.';'.
|
||||
'Pompe funebre'.';'.
|
||||
'Pompe funebre adresse'.';'.
|
||||
'Distance Total (km)'.';'.
|
||||
utf8_decode(html_entity_decode('Pompe funèbre')).';'.
|
||||
utf8_decode(html_entity_decode('Pompe funèbre adresse')).';'.
|
||||
'Distance Totale (km)'.';'.
|
||||
"\n";
|
||||
return $fileHeader;
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@ class InvoicePdfHandler extends FPDF {
|
||||
|
||||
private $factureData = [];
|
||||
private $logo = null;
|
||||
private $logoPath = "/var/www/html/custom_apps/gestion/img/";
|
||||
private $logoPath = "/var/www/html/data/admin/files/.gestion/";
|
||||
|
||||
function Header()
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user