This commit is contained in:
Daniel Camargo 2013-04-02 20:35:38 -03:00
parent 1bf13c3b8a
commit e07c115b09
2 changed files with 1 additions and 9 deletions

View File

@ -65,10 +65,6 @@ class Controller_api_notification extends Crunchbutton_Controller_Rest {
$notification->date = date('Y-m-d H:i:s'); $notification->date = date('Y-m-d H:i:s');
$notification->save(); $notification->save();
if ($notification->order()->restaurant()->confirmation) { if ($notification->order()->restaurant()->confirmation) {
Log::debug([
'fax' => 'confirm_callbak',
'type' => 'notification'
]);
$notification->order()->queConfirm(); $notification->order()->queConfirm();
} }
} }

View File

@ -52,11 +52,7 @@ class Crunchbutton_Notification extends Cana_Table
if ($order->restaurant()->confirmation && !$order->_confirm_trigger) { if ($order->restaurant()->confirmation && !$order->_confirm_trigger) {
$order->_confirm_trigger = true; $order->_confirm_trigger = true;
Log::debug([ $order->queConfirm();
'fax' => 'confirm_notification',
'type' => 'notification'
]);
// $order->queConfirm();
} }
break; break;