Skip to content
Snippets Groups Projects
Commit 2c791e52 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Revert "unit price not used if qty = 1"

This reverts commit fb25f479.
parent f1e87478
Branches
Tags
No related merge requests found
...@@ -2112,7 +2112,7 @@ class Form ...@@ -2112,7 +2112,7 @@ class Form
$outval.= ' '.$langs->transnoentities("Units"); $outval.= ' '.$langs->transnoentities("Units");
} }
if ($objp->quantity > 1) if ($objp->quantity >= 1)
{ {
$opt.=" (".price($objp->unitprice,1,$langs,0,0,-1,$conf->currency)."/".$langs->trans("Unit").")"; // Do not use strtolower because it breaks utf8 encoding $opt.=" (".price($objp->unitprice,1,$langs,0,0,-1,$conf->currency)."/".$langs->trans("Unit").")"; // Do not use strtolower because it breaks utf8 encoding
$outval.=" (".price($objp->unitprice,0,$langs,0,0,-1,$conf->currency)."/".$langs->transnoentities("Unit").")"; // Do not use strtolower because it breaks utf8 encoding $outval.=" (".price($objp->unitprice,0,$langs,0,0,-1,$conf->currency)."/".$langs->transnoentities("Unit").")"; // Do not use strtolower because it breaks utf8 encoding
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment