Updated: minor code improvements
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user