Merge branch 'fixes/fix-export-utf-and-logo-path' into staging

This commit is contained in:
Tiavina 2024-12-30 14:31:50 +03:00
commit b516009f28
3 changed files with 11 additions and 11 deletions

View File

@ -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";

View File

@ -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;
}

View File

@ -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()
{