diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index 18658528c..57e1cbcde 100644 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -2422,6 +2422,9 @@ public function ajaxProcessAddProductOnOrder() ))); } + /** + * This function is called when order is changed (Add/Edit/Delete room on order) + */ public function sendChangedNotification(Order $order = null) { if (is_null($order)) { @@ -2436,6 +2439,9 @@ public function sendChangedNotification(Order $order = null) Hook::exec('actionOrderEdited', array('order' => $order)); } + /** + * This function is called to manage order status when order is changed + */ public function updateOrderStatusOnOrderChange($objOrder) { // check if new order amount is greater that old order amount and order payment is accepted