Merge branch 'hytat/fixe/fixing-pdf-retour-3' into staging
This commit is contained in:
commit
5942f66467
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user