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
This commit is contained in:
BENKE Charlie 2017-01-31 23:11:16 +01:00 committed by GitHub
parent 373f918543
commit d84e50d15c

View File

@ -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
{