This commit is contained in:
Daniel Camargo 2014-12-10 02:31:57 -02:00
parent 45eb7fc572
commit 7c841ac81c

View File

@ -344,6 +344,7 @@ class Crunchbutton_Admin_Notification extends Cana_Table {
$shiftDateStart = $shift->dateStart( c::config()->timezone );
}
if( $shiftDateStart && ( $order->date() < $shiftDateStart ) ){
$message = $first_name . ' ';
$message .= Crunchbutton_Admin_Notification::REPS_COCKPIT . $order->id_order;
@ -499,6 +500,8 @@ class Crunchbutton_Admin_Notification extends Cana_Table {
'message' => $message
]);
Log::debug( [ 'order' => $order->id_order, 'action' => 'send sms to admin', 'sms' => $sms, 'message' => $message, 'type' => 'admin_notification' ]);
return $ret;
}