Set font size for product details in PDF invoices

This commit is contained in:
Narindra ezway 2025-04-04 18:53:15 +03:00
parent c833942414
commit 63aa9029bb
2 changed files with 5 additions and 2 deletions

View File

@ -265,6 +265,8 @@ class InvoiceGroupPdfHandler extends FPDF {
$products = $currentDevis["products"];
$productIncrement = 0;
foreach($products as $product){
$this->SetFont('ComicSans', '', 8);
$valueHt = $product['produit_price'] * $product["quantite"];
$valueTtc = PriceHelpers::calculPriceWithVatValue($valueHt,$tvaValue);
$totalHt+=$valueHt;
@ -296,7 +298,6 @@ class InvoiceGroupPdfHandler extends FPDF {
$this->Cell($maxDescriptionWidth, 6, $productDescription);
}
$this->SetFont('ComicSans', '', 8);
$this->SetXY( 135,$yValue );
$this->Cell(20, 6, number_format($valueHt,2,'.','').chr(128), 0, 0, 'C');

View File

@ -283,6 +283,9 @@ class InvoicePdfHandler extends FPDF
$products = $this->factureData["products"];
$yValue = $this->startingYOfArticlesTable + 11;
foreach ($products as $product) {
$this->SetFont('ComicSans', '', 8);
$valueHt = $product['produit_price'];
$valueTtc = PriceHelpers::calculPriceWithVatValue($valueHt, $tvaValue);
$totalHt += $valueHt;
@ -301,7 +304,6 @@ class InvoicePdfHandler extends FPDF
$this->MultiAlignCell(102, 6, utf8_decode(html_entity_decode($productDescription)), 0, '0',);
$this->SetFont('ComicSans', '', 7);
$this->SetXY(135, $yValue);
$this->Cell(20, 6, number_format($valueHt, 2, '.', '') . chr(128), 0, 0, 'C');