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

@@ -58,10 +58,10 @@ class ServiceProductCartDetail extends ObjectModel
if ($idProduct) {
$sql .= ' AND `id_product` = '.(int)$idProduct;
}
if ($idHotel) {
if ($idHotel !== false && $idHotel !== null) {
$sql .= ' AND `id_hotel` = '.(int)$idHotel;
}
if ($idHtlCartData) {
if ($idHtlCartData !== false && $idHtlCartData !== null) {
$sql .= ' AND `htl_cart_booking_id` = '.(int)$idHtlCartData;
}
if ($idProductOption) {