Added one line to allow use of price_ttc in calculated extra fields (ex : price per kilo)

This commit is contained in:
MarcVJ 2025-02-09 22:20:05 +01:00 committed by GitHub
parent bd852dbf5c
commit 99fac7c8d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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');