fix TOTAL TTC
This commit is contained in:
parent
440b1c62f8
commit
d03ead3bc9
@ -388,7 +388,7 @@ class InvoiceGroupPdfHandler extends FPDF {
|
||||
$this->Cell($ibanWidth, 5, 'Code SWIFT : AGRI FR PP 836', 1, 1, 'C');
|
||||
|
||||
//TABLE HT
|
||||
$tableWidth = 40; // Largeur totale de la 2e table (20+20)
|
||||
$tableWidth = 48; // Largeur totale de la 2e table (20+20)
|
||||
$marginRight = 3; // Marge par rapport au bord droit
|
||||
$pageWidth = 210; // Largeur d'une page A4 en mm (portrait)
|
||||
|
||||
@ -396,13 +396,13 @@ class InvoiceGroupPdfHandler extends FPDF {
|
||||
$startOfArrayX = $pageWidth - $tableWidth - $marginRight;
|
||||
$startOfArrayY = $ibanCursorY - 5;
|
||||
|
||||
|
||||
$this->SetFont('ComicSans', '', 10);
|
||||
$totalPriceArray = $this->totalPrices;
|
||||
foreach($totalPriceArray as $label => $price){
|
||||
$this->SetXY($startOfArrayX,$startOfArrayY);
|
||||
$this->Cell(20, 5, $label, 1, 1, 'C');
|
||||
$this->SetXY($startOfArrayX + 20,$startOfArrayY);
|
||||
$this->Cell(20, 5, number_format($price,2,'.','').chr(128), 1, 1, 'C');
|
||||
$this->Cell(24, 5, $label, 1, 1, 'C');
|
||||
$this->SetXY($startOfArrayX + 24,$startOfArrayY);
|
||||
$this->Cell(24, 5, number_format($price,2,'.','').chr(128), 1, 1, 'C');
|
||||
$startOfArrayY += 5;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user