Merge branch 'fixes/fix-rapport-bijoux-text' into staging
This commit is contained in:
commit
7e59f78335
@ -2372,24 +2372,37 @@ class PageController extends Controller {
|
||||
|
||||
$pdf->setY($pdf->GetY()+10);
|
||||
|
||||
$hasTaker = false;
|
||||
foreach ($bijoux as $key => $bijou) {
|
||||
$currentBijouHasTaker = $bijou->taker_name != null && $bijou->taker_name != "" && $bijou->taker_name != "-";
|
||||
if($currentBijouHasTaker){
|
||||
$hasTaker = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
$columnNumber = $hasTaker ? 3 : 2;
|
||||
$pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("À la suite de notre prise en charge, une liste des bijoux appartenant au défunt a été établie comme suit :")), '','J',0);
|
||||
$pdf->setY($pdf->GetY()+5);
|
||||
$col_width = round(($pdf->GetPageWidth()-30)/3);
|
||||
$col_width = round(($pdf->GetPageWidth()-30)/$columnNumber);
|
||||
$pdf->SetFont('ComicSans', 'B', 10);
|
||||
$pdf->MultiCell($col_width, 8, utf8_decode(html_entity_decode("Désignation")), 'LTRB', 'C');
|
||||
$pdf->SetXY($col_width+15, $pdf->GetY()-8);
|
||||
$pdf->SetFont('ComicSans', 'B', 10);
|
||||
$pdf->MultiCell($col_width, 8, utf8_decode(html_entity_decode("Commentaire")), 'LTRB', 'C');
|
||||
$pdf->SetXY($col_width+75, $pdf->GetY()-8);
|
||||
$pdf->SetFont('ComicSans', 'B', 10);
|
||||
$pdf->MultiCell($col_width, 8, utf8_decode(html_entity_decode("Qui a récupéré le bijou")), 'LTRB', 'C');
|
||||
if($hasTaker){
|
||||
$pdf->SetXY($col_width+75, $pdf->GetY()-8);
|
||||
$pdf->SetFont('ComicSans', 'B', 10);
|
||||
$pdf->MultiCell($col_width, 8, utf8_decode(html_entity_decode("Prise en charge des bijoux par")), 'LTRB', 'C');
|
||||
}
|
||||
foreach ($bijoux as $key => $bijou) {
|
||||
$pdf->SetFont('ComicSans', '', 10);
|
||||
$pdf->MultiCell($col_width, 8, utf8_decode(html_entity_decode($bijou->designation)), 'LTRB', 'L');
|
||||
$pdf->SetXY($col_width+15, $pdf->GetY()-8); $pdf->SetFont('ComicSans', '', 10);
|
||||
$pdf->MultiCell($col_width, 8, utf8_decode(html_entity_decode($bijou->commentaire)), 'LTRB', 'L');
|
||||
$pdf->SetXY($col_width+75, $pdf->GetY()-8); $pdf->SetFont('ComicSans', '', 10);
|
||||
$pdf->MultiCell($col_width, 8, utf8_decode(html_entity_decode($bijou->taker_name)), 'LTRB', 'L');
|
||||
if($hasTaker){
|
||||
$pdf->SetXY($col_width+75, $pdf->GetY()-8); $pdf->SetFont('ComicSans', '', 10);
|
||||
$pdf->MultiCell($col_width, 8, utf8_decode(html_entity_decode($bijou->taker_name)), 'LTRB', 'L');
|
||||
}
|
||||
}
|
||||
$photosCount = 0;
|
||||
if($withPhotos){
|
||||
|
||||
@ -25,7 +25,7 @@ $coverProducts = $_['coverProducts'];
|
||||
<div class="d-flex justify-content-between">
|
||||
<div class="div">
|
||||
<button id="exportCareCertificate" class="btn btn-secondary" type="button">Générer l'attestation de soins</button>
|
||||
<button id="pacemakerBtn" class="btn btn-secondary" type="button">Générer l'attestation pacemaker</button>
|
||||
<button id="pacemakerBtn" class="btn btn-secondary" type="button">Générer l'attestation retrait de pile</button>
|
||||
<button id="rapportSoinBtn" class="btn btn-secondary" type="button">Générer le rapport de soins</button>
|
||||
<button id="showRapportBijouxExportModal" class="btn btn-secondary" type="button" data-toggle="modal" data-target="#saveRapportBijouxModal">Générer le rapport des bijoux</button>
|
||||
</div>
|
||||
@ -489,7 +489,7 @@ $coverProducts = $_['coverProducts'];
|
||||
<th>Désignation</th>
|
||||
<th><?php p($l->t('Comment')); ?></th>
|
||||
<th><?php p($l->t('Photo')); ?></th>
|
||||
<th><?php p($l->t('Nom de la personne qui a récupéré ces bijoux')); ?></th>
|
||||
<th><?php p($l->t('Prise en charge des bijoux par')); ?></th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user