minor fix on updating status of order, upgrade datatables

This commit is contained in:
Ludovic CANDELLIER
2023-09-13 22:17:49 +02:00
parent ab8ab8eba1
commit 69478e3c74
6 changed files with 30 additions and 17 deletions

View File

@@ -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);