This commit is contained in:
Daniel Camargo 2013-04-02 19:39:05 -03:00
parent df573e6bf2
commit 81e38bb7c6
3 changed files with 9 additions and 1 deletions

View File

@ -159,7 +159,7 @@
<outgoingCustomer>+18003514161</outgoingCustomer>
<outgoingRestaurant>+18003514161</outgoingRestaurant>
</olddev>
<testnumber>_PHONE_</testnumber>
<testnumber>***REMOVED***</testnumber>
<voice>male</voice>
<greeting>Hello. This is crunchbutton, </greeting>
<maxcallback>5</maxcallback>

View File

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

View File

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