minor fix on updating status of order, upgrade datatables
This commit is contained in:
@@ -28,7 +28,7 @@ class OrderMails
|
||||
|
||||
public static function sendPreparation($orderId)
|
||||
{
|
||||
$order = Orders::get($orderId, ['customer', 'address']);
|
||||
$order = Orders::get($orderId, ['customer', 'delivery_address']);
|
||||
$mail = new Preparation($order);
|
||||
|
||||
return Mail::to($order->customer->email)->send($mail);
|
||||
@@ -36,7 +36,7 @@ class OrderMails
|
||||
|
||||
public static function sendShipping($orderId)
|
||||
{
|
||||
$order = Orders::get($orderId, ['customer', 'address']);
|
||||
$order = Orders::get($orderId, ['customer', 'delivery_address']);
|
||||
$mail = new Acheminement($order);
|
||||
|
||||
return Mail::to($order->customer->email)->send($mail);
|
||||
|
||||
Reference in New Issue
Block a user