fix quantity 0 on devis
This commit is contained in:
parent
0f3f330f45
commit
059b0a6a1a
@ -59,7 +59,7 @@ class InvoiceFunecapPdfHandler extends InvoiceGroupPdfHandler {
|
|||||||
$this->MultiAlignCell(100, 6, FileExportHelpers::FormatTextForExport($subcontractorCaseNumberText),0,'0',);
|
$this->MultiAlignCell(100, 6, FileExportHelpers::FormatTextForExport($subcontractorCaseNumberText),0,'0',);
|
||||||
$yValue += 6;
|
$yValue += 6;
|
||||||
foreach($products as $product){
|
foreach($products as $product){
|
||||||
$valueHt = $product['produit_price'];
|
$valueHt = $product['produit_price'] * $product["quantite"];
|
||||||
$valueTtc = PriceHelpers::calculPriceWithVatValue($valueHt,$tvaValue);
|
$valueTtc = PriceHelpers::calculPriceWithVatValue($valueHt,$tvaValue);
|
||||||
$totalHt+=$valueHt;
|
$totalHt+=$valueHt;
|
||||||
$totalTtc+=$valueTtc;
|
$totalTtc+=$valueTtc;
|
||||||
|
|||||||
@ -228,7 +228,7 @@ class InvoiceGroupPdfHandler extends FPDF {
|
|||||||
$devisDate = $devisDate->format('d-m-Y');
|
$devisDate = $devisDate->format('d-m-Y');
|
||||||
$products = $currentDevis["products"];
|
$products = $currentDevis["products"];
|
||||||
foreach($products as $product){
|
foreach($products as $product){
|
||||||
$valueHt = $product['produit_price'];
|
$valueHt = $product['produit_price'] * $product["quantite"];
|
||||||
$valueTtc = PriceHelpers::calculPriceWithVatValue($valueHt,$tvaValue);
|
$valueTtc = PriceHelpers::calculPriceWithVatValue($valueHt,$tvaValue);
|
||||||
$totalHt+=$valueHt;
|
$totalHt+=$valueHt;
|
||||||
$totalTtc+=$valueTtc;
|
$totalTtc+=$valueTtc;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user