partial #951
This commit is contained in:
parent
df573e6bf2
commit
81e38bb7c6
@ -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>
|
||||
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user