mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Merge pull request #4811 from fappels/develop_patch_subprice
Update commande.class, subprice should be unit price without tax
This commit is contained in:
@@ -2548,7 +2548,14 @@ class Commande extends CommonOrder
|
||||
|
||||
// Anciens indicateurs: $price, $subprice, $remise (a ne plus utiliser)
|
||||
$price = $pu;
|
||||
$subprice = $pu;
|
||||
if ($price_base_type == 'TTC')
|
||||
{
|
||||
$subprice = $tabprice[5];
|
||||
}
|
||||
else
|
||||
{
|
||||
$subprice = $pu;
|
||||
}
|
||||
$remise = 0;
|
||||
if ($remise_percent > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user