Added one line to allow use of price_ttc in calculated extra fields (ex : price per kilo)
This commit is contained in:
parent
bd852dbf5c
commit
99fac7c8d3
1 changed files with 2 additions and 1 deletions
|
|
@ -1628,7 +1628,8 @@ while ($i < $imaxinloop) {
|
|||
}
|
||||
|
||||
$product_static->price = $obj->price;
|
||||
|
||||
$product_static->price_ttc = $obj->price_ttc; // Allows to use price_ttc in calculated extra fields (ex : price per kilo)
|
||||
|
||||
$object = $product_static;
|
||||
|
||||
$usercancreadprice = getDolGlobalString('MAIN_USE_ADVANCED_PERMS') ? $user->hasRight('product', 'product_advance', 'read_prices') : $user->hasRight('product', 'lire');
|
||||
|
|
|
|||
Loading…
Reference in a new issue