From d84e50d15c824ae19066f58ff665cedaeec89311 Mon Sep 17 00:00:00 2001 From: BENKE Charlie Date: Tue, 31 Jan 2017 23:11:16 +0100 Subject: [PATCH] get remisepercent of product if select list when we use the select list of product instead of free search we don't fill the remise --- htdocs/fourn/class/fournisseur.commande.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index a4eda5ec81e..f656e7a41e7 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -1408,6 +1408,11 @@ class CommandeFournisseur extends CommonOrder { $pu = $prod->fourn_pu; // Unit price supplier price set by get_buyprice $ref_supplier = $prod->ref_supplier; // Ref supplier price set by get_buyprice + // is remise percent not keyed but present for the product we add it + if ($remise_percent == 0 && $prod->remise_percent !=0) + $remise_percent =$prod->remise_percent; + + } if ($result == 0) // If result == 0, we failed to found the supplier reference price {