add datatbles for invoices, add pdf icon, refactor icons components, add autocomplete on search, adapt searching to meilisearch
This commit is contained in:
@@ -40,6 +40,11 @@ class Invoice extends Model
|
||||
return $this->belongsTo(CustomerAddress::class, 'invoice_address_id');
|
||||
}
|
||||
|
||||
public function scopeByCustomer($query, $customerId)
|
||||
{
|
||||
return $query->where('customer_id', $customerId);
|
||||
}
|
||||
|
||||
public function scopeByUUID($query, $uuid)
|
||||
{
|
||||
return $query->where('uuid', $uuid);
|
||||
|
||||
Reference in New Issue
Block a user