fix shipping
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user