diff --git a/gestion/lib/Service/Order/PdfHandler/OrderPdfHandler.php b/gestion/lib/Service/Order/PdfHandler/OrderPdfHandler.php index 394b22a..0d71826 100644 --- a/gestion/lib/Service/Order/PdfHandler/OrderPdfHandler.php +++ b/gestion/lib/Service/Order/PdfHandler/OrderPdfHandler.php @@ -148,9 +148,11 @@ class OrderPdfHandler extends FPDF { $totalTtc+=$valueTtc; $productDescription = $product["produit_reference"]; $dateValue = ""; - if($product === end($products) && $this->orderData["fk_order_type_key"] == OrderTypeConstant::ORDER_TYPE_DEVIS){ - $dateValue = $this->orderData["order_date"]; - $productDescription .= " de " . $this->orderData["defunt_name_with_sexe"]; + if($product === end($products) ){ + $dateValue = $this->orderData["devis_date"]; + if($$this->orderData["fk_order_type_key"] == OrderTypeConstant::ORDER_TYPE_DEVIS){ + $productDescription .= " de " . $this->orderData["defunt_name_with_sexe"]; + } } $tvaAmount = $valueTtc - $valueHt; $this->SetXY( 10,$yValue );