fix change defunt and thanato

This commit is contained in:
Tolotsoa 2025-10-10 19:56:29 +03:00
parent 9bdab31b52
commit b60bb6e0b2

View File

@ -144,11 +144,12 @@ class DevisPdfTableRenderer
$lieuText = \OCA\Gestion\Helpers\FileExportHelpers::FormatTextForExport($devis['lieu_nom'] ?? '');
$addSmartCell($pdf, 103, $yDevis, 24, $lieuText);
$defuntText = \OCA\Gestion\Helpers\FileExportHelpers::FormatTextForExport($devis['defunt_nom'] ?? '');
$addSmartCell($pdf, 128, $yDevis, 19, $defuntText);
// COLONNE Thanatopracteur (après Lieu du soin)
$addSmartCell($pdf, 128, $yDevis, 19, $thanatoNom);
// NOUVELLE COLONNE : Thanatopracteur
$addSmartCell($pdf, 148, $yDevis, 19, $thanatoNom);
// COLONNE Défunt (après Thanato)
$defuntText = \OCA\Gestion\Helpers\FileExportHelpers::FormatTextForExport($devis['defunt_nom'] ?? '');
$addSmartCell($pdf, 148, $yDevis, 19, $defuntText);
$addSmartCell($pdf, 168, $yDevis, 10, number_format($devis['montant_htc'], 2, '.', '') . chr(128), 'R');
$addSmartCell($pdf, 179, $yDevis, 10, number_format($devis['montant_tva'], 2, '.', '') . chr(128), 'R');
@ -166,11 +167,12 @@ class DevisPdfTableRenderer
$lieuText = \OCA\Gestion\Helpers\FileExportHelpers::FormatTextForExport($devis['lieu_nom'] ?? '');
$addSmartCell($pdf, 111, $yDevis, 24, $lieuText);
$defuntText = \OCA\Gestion\Helpers\FileExportHelpers::FormatTextForExport($devis['defunt_nom'] ?? '');
$addSmartCell($pdf, 136, $yDevis, 24, $defuntText);
// COLONNE Thanatopracteur (après Lieu du soin)
$addSmartCell($pdf, 136, $yDevis, 24, $thanatoNom);
// NOUVELLE COLONNE : Thanatopracteur
$addSmartCell($pdf, 161, $yDevis, 44, $thanatoNom);
// COLONNE Défunt (après Thanato)
$defuntText = \OCA\Gestion\Helpers\FileExportHelpers::FormatTextForExport($devis['defunt_nom'] ?? '');
$addSmartCell($pdf, 161, $yDevis, 44, $defuntText);
}
}