Updated: minor code improvements

This commit is contained in:
Sumit Panwar
2026-11-06 10:46:38 +05:30
parent 4c4a0106cd
commit 48ba57ade8
2 changed files with 2 additions and 2 deletions

View File

@@ -3106,7 +3106,7 @@ class OrderCore extends ObjectModel
* @param bool $useEmail whether to email the customer about the change
* @return bool whether the order status was actually changed
*/
public function syncPaymentStatusAfterBookingRevert($useEmail = true)
public function changeOrderStatusOnRoomBookingStatusChange($useEmail = true)
{
if (!in_array($this->current_state, array(
Configuration::get('PS_OS_NO_SHOW'),

View File

@@ -9267,7 +9267,7 @@ class AdminOrdersControllerCore extends AdminController
// a No-show room reverted back: the order is no longer completely
// No-show/Cancelled, so restore its status from the paid amount
$order = new Order($order->id);
$order->syncPaymentStatusAfterBookingRevert();
$order->changeOrderStatusOnRoomBookingStatusChange();
}
$success = $statusChanged;
}