Make invoices and payments searchable. Extend payments overview.

This commit is contained in:
2025-05-13 11:32:21 +02:00
parent e4238bfda6
commit 5deef877ba
3 changed files with 81 additions and 20 deletions

View File

@@ -54,7 +54,7 @@ class Payment extends Model
*/
public function invoice(): BelongsTo
{
return $this->belongsTo(Invoice::class);
return $this->belongsTo(Invoice::class)->with(['customer']);
}
}