fix shipping

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

View File

@@ -58,14 +58,14 @@ class Order extends Model
return $query->where('uuid', $uuid);
}
public function scopeByCustomer($query, $customer_id)
public function scopeByCustomer($query, $customerId)
{
return $query->where('customer_id', $customer_id);
return $query->where('customer_id', $customerId);
}
public function scopeByDelivery($query, $delivery_id)
public function scopeByDelivery($query, $deliveryId)
{
return $query->where('delivery_id', $delivery_id);
return $query->where('delivery_id', $deliveryId);
}
public function scopePreparation($query)
@@ -88,9 +88,9 @@ class Order extends Model
return $query->where('status', $status);
}
public function scopeByPaymentType($query, $payment_type)
public function scopeByPaymentType($query, $paymentType)
{
return $query->where('payment_type', $payment_type);
return $query->where('payment_type', $paymentType);
}
public function scopeByPeriod($query, $start, $end, $field = 'created_at')