fix on payment by cb
This commit is contained in:
@@ -92,4 +92,11 @@ class Order extends Model
|
||||
{
|
||||
return $query->whereBetween($field, [$start, $end]);
|
||||
}
|
||||
|
||||
public function scopeByInvoice($query, $invoiceId)
|
||||
{
|
||||
return $query->whereHas('invoice', function ($query) use ($invoiceId) {
|
||||
$query->byId($invoiceId);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user