You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($roomIdsAvailable = array_column($availableRoomsInfo, 'id_room')) {
2751
+
// Check If room is still there in the available rooms list
2752
+
if (!in_array($orderBooking['id_room'], $roomIdsAvailable)) {
2753
+
$result['errors'][] = Tools::displayError('You can not change the order status as some rooms are not available now in this order. You can reallocate/swap rooms with other rooms to make rooms available and then change the order status.');
2754
+
2755
+
break;
2756
+
} else {
2757
+
$objHotelBookingDetail->is_refunded = 0;
2758
+
$objHotelBookingDetail->save();
2759
+
}
2760
+
} else {
2761
+
$result['errors'][] = Tools::displayError('You can not change the order status as some rooms are not available now in this order. You can reallocate/swap rooms with other rooms to make rooms available and then change the order status.');
2762
+
break;
2763
+
}
2764
+
}
2765
+
} else {
2766
+
$result['errors'][] = Tools::displayError('You can not change the order status as some rooms are not available now in this order. You can reallocate/swap rooms with other rooms to make rooms available and then change the order status.');
if ($roomIdsAvailable = array_column($availableRoomsInfo, 'id_room')) {
1329
-
// Check If room is still there in the available rooms list
1330
-
if (!in_array($orderBooking['id_room'], $roomIdsAvailable)) {
1331
-
$this->errors[] = Tools::displayError('You can not change the order status as some rooms are not available now in this order. You can reallocate/swap rooms with other rooms to make rooms available and then change the order status.');
1332
-
1333
-
break;
1334
-
} else {
1335
-
$objHotelBookingDetail->is_refunded = 0;
1336
-
$objHotelBookingDetail->save();
1337
-
}
1338
-
} else {
1339
-
$this->errors[] = Tools::displayError('You can not change the order status as some rooms are not available now in this order. You can reallocate/swap rooms with other rooms to make rooms available and then change the order status.');
1340
-
break;
1341
-
}
1342
-
}
1343
-
} else {
1344
-
$this->errors[] = Tools::displayError('You can not change the order status as some rooms are not available now in this order. You can reallocate/swap rooms with other rooms to make rooms available and then change the order status.');
0 commit comments