@@ -196,13 +196,14 @@ public function getSelectedServicesForRoom(
196
196
197
197
$ sql = 'SELECT rsod.* ' ;
198
198
if (!$ getTotalPrice ) {
199
- $ sql .= ', hbd.`id_product` as `room_type_id_product`, hbd.`id_room`, od.`product_allow_multiple_quantity`,
199
+ $ sql .= ', hbd.`id_product` as `room_type_id_product`, hbd.`id_room`, od.`product_allow_multiple_quantity`, p.`max_quantity`,
200
200
od.`product_auto_add`, od.`product_price_calculation_method`, od.`product_price_addition_type` ' ;
201
201
}
202
202
$ sql .= ' FROM ` ' ._DB_PREFIX_ .'htl_booking_detail` hbd
203
203
INNER JOIN ` ' ._DB_PREFIX_ .'htl_room_type_service_product_order_detail` rsod ON(rsod.`id_htl_booking_detail` = hbd.`id`) ' ;
204
204
205
205
$ sql .= ' LEFT JOIN ` ' ._DB_PREFIX_ .'order_detail` od ON(od.`id_order_detail` = rsod.`id_order_detail`) ' ;
206
+ $ sql .= ' INNER JOIN ` ' ._DB_PREFIX_ .'product` p ON (p.`id_product` = rsod.`id_product`) ' ;
206
207
207
208
$ sql .= ' WHERE hbd.`id` = ' .(int )$ idHotelBookingDetail ;
208
209
@@ -229,6 +230,7 @@ public function getSelectedServicesForRoom(
229
230
'name ' => $ product ['name ' ],
230
231
'quantity ' => $ product ['quantity ' ],
231
232
'allow_multiple_quantity ' => $ product ['product_allow_multiple_quantity ' ],
233
+ 'max_quantity ' => $ product ['max_quantity ' ],
232
234
'product_auto_add ' => $ product ['product_auto_add ' ],
233
235
'product_price_addition_type ' => $ product ['product_price_addition_type ' ],
234
236
'product_price_calculation_method ' => $ product ['product_price_calculation_method ' ],
@@ -253,6 +255,7 @@ public function getSelectedServicesForRoom(
253
255
'name ' => $ product ['name ' ],
254
256
'quantity ' => $ product ['quantity ' ],
255
257
'allow_multiple_quantity ' => $ product ['product_allow_multiple_quantity ' ],
258
+ 'max_quantity ' => $ product ['max_quantity ' ],
256
259
'product_auto_add ' => $ product ['product_auto_add ' ],
257
260
'product_price_addition_type ' => $ product ['product_price_addition_type ' ],
258
261
'product_price_calculation_method ' => $ product ['product_price_calculation_method ' ],
0 commit comments