Fix: correct invoice price calculation and fix standalone service product not being added when another product exists

This commit is contained in:
Amit sharma
2026-03-03 16:20:58 +05:30
parent e5dd7e67a5
commit 7aaa29e07b
7 changed files with 41 additions and 128 deletions

View File

@@ -1670,7 +1670,7 @@ class AdminCartsControllerCore extends AdminController
$idServiceProduct,
$operator,
$quantity,
0,
false,
$idCartBooking
))) {
$originalPrice = Product::getPriceStatic($idServiceProduct, false);

View File

@@ -5644,7 +5644,7 @@ class AdminOrdersControllerCore extends AdminController
$idProduct,
'up',
$productInformations['product_quantity'],
isset($addressTax->id_hotel) ? $addressTax->id_hotel : 0,
isset($addressTax->id_hotel) ? $addressTax->id_hotel : false,
false,
isset($productInformations['product_option']) ? $productInformations['product_option'] : null
)) {