add datatbles for invoices, add pdf icon, refactor icons components, add autocomplete on search, adapt searching to meilisearch

This commit is contained in:
ludo
2024-02-04 02:51:38 +01:00
parent 5c20e6d5d0
commit 6c88e43b74
39 changed files with 503 additions and 211 deletions

View File

@@ -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);