Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek-webkul committed Feb 8, 2023
1 parent 6a2c5b2 commit 0dd2300
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions controllers/admin/AdminOrdersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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
Expand Down

0 comments on commit 0dd2300

Please sign in to comment.