fix shipping

This commit is contained in:
Ludovic CANDELLIER
2023-07-16 17:54:44 +02:00
parent c619f540f8
commit ddb4520621
36 changed files with 640 additions and 897 deletions

View File

@@ -28,9 +28,9 @@ class Invoices
return Invoice::byUUID($uuid)->first();
}
public static function saveInvoice($order_id, $data)
public static function saveInvoice($orderId, $data)
{
$data['order_id'] = $order_id;
$data['order_id'] = $orderId;
return self::store($data);
}
@@ -86,9 +86,9 @@ class Invoices
public static function getNewRef()
{
$ref = date('ym').'00000';
$last_ref = Invoice::orderBy('id', 'desc')->first();
$lastRef = Invoice::orderBy('id', 'desc')->first();
return $last_ref ? $last_ref->ref + 1 : $ref + 1;
return $lastRef ? $lastRef->ref + 1 : $ref + 1;
}
public static function getStatus($id)