Merge branch 'hytha/fixe/fixing-pdf-police-encore-2' into staging
This commit is contained in:
commit
d4606a992c
@ -388,7 +388,7 @@ class InvoiceGroupPdfHandler extends FPDF {
|
|||||||
$this->Cell($ibanWidth, 5, 'Code SWIFT : AGRI FR PP 836', 1, 1, 'C');
|
$this->Cell($ibanWidth, 5, 'Code SWIFT : AGRI FR PP 836', 1, 1, 'C');
|
||||||
|
|
||||||
//TABLE HT
|
//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
|
$marginRight = 3; // Marge par rapport au bord droit
|
||||||
$pageWidth = 210; // Largeur d'une page A4 en mm (portrait)
|
$pageWidth = 210; // Largeur d'une page A4 en mm (portrait)
|
||||||
|
|
||||||
@ -396,13 +396,13 @@ class InvoiceGroupPdfHandler extends FPDF {
|
|||||||
$startOfArrayX = $pageWidth - $tableWidth - $marginRight;
|
$startOfArrayX = $pageWidth - $tableWidth - $marginRight;
|
||||||
$startOfArrayY = $ibanCursorY - 5;
|
$startOfArrayY = $ibanCursorY - 5;
|
||||||
|
|
||||||
|
$this->SetFont('ComicSans', '', 10);
|
||||||
$totalPriceArray = $this->totalPrices;
|
$totalPriceArray = $this->totalPrices;
|
||||||
foreach($totalPriceArray as $label => $price){
|
foreach($totalPriceArray as $label => $price){
|
||||||
$this->SetXY($startOfArrayX,$startOfArrayY);
|
$this->SetXY($startOfArrayX,$startOfArrayY);
|
||||||
$this->Cell(20, 5, $label, 1, 1, 'C');
|
$this->Cell(24, 5, $label, 1, 1, 'C');
|
||||||
$this->SetXY($startOfArrayX + 20,$startOfArrayY);
|
$this->SetXY($startOfArrayX + 24,$startOfArrayY);
|
||||||
$this->Cell(20, 5, number_format($price,2,'.','').chr(128), 1, 1, 'C');
|
$this->Cell(24, 5, number_format($price,2,'.','').chr(128), 1, 1, 'C');
|
||||||
$startOfArrayY += 5;
|
$startOfArrayY += 5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user