@@ -3548,7 +3548,9 @@ discard block |
||
| 3548 | 3548 | $deja_regle = $invoice->getSommePaiement(); |
| 3549 | 3549 | |
| 3550 | 3550 | $resteapayer = price2num($invoice->total_ttc - $deja_regle - $total_ttc_rg - $creditnoteamount - $depositsamount, 'MT'); |
| 3551 | - if ($invoice->paye) $resteapayer = 0; |
|
| 3551 | + if ($invoice->paye) { |
|
| 3552 | + $resteapayer = 0; |
|
| 3553 | + } |
|
| 3552 | 3554 | |
| 3553 | 3555 | $y = 0; |
| 3554 | 3556 | |
@@ -3598,7 +3600,9 @@ discard block |
||
| 3598 | 3600 | |
| 3599 | 3601 | if ($deja_regle > 0) { |
| 3600 | 3602 | $title=$outputlangs->transnoentities("PaymentsAlreadyDone"); |
| 3601 | - if ($invoice->type == 2) $title=$outputlangs->transnoentities("PaymentsBackAlreadyDone"); |
|
| 3603 | + if ($invoice->type == 2) { |
|
| 3604 | + $title=$outputlangs->transnoentities("PaymentsBackAlreadyDone"); |
|
| 3605 | + } |
|
| 3602 | 3606 | |
| 3603 | 3607 | $pdf->SetFont('', '', $default_font_size - 3); |
| 3604 | 3608 | $pdf->SetXY($posx, $posy + $height * $index); |
@@ -3661,7 +3665,9 @@ discard block |
||
| 3661 | 3665 | if (!empty($this->tplidx)) { |
| 3662 | 3666 | $pdf->useTemplate($this->tplidx); |
| 3663 | 3667 | } |
| 3664 | - if (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD')) $this->_pagehead($pdf, $object, 0, $outputlangs); |
|
| 3668 | + if (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD')) { |
|
| 3669 | + $this->_pagehead($pdf, $object, 0, $outputlangs); |
|
| 3670 | + } |
|
| 3665 | 3671 | $pdf->setPage($pageposafter+1); |
| 3666 | 3672 | $pdf->setPageOrientation('', 1, 0); // The only function to edit the bottom margin of current page to set it. |
| 3667 | 3673 | |