Operation processes on invoices

This commit is contained in:
th.guenther committed 2026-02-13 00:11:51 +01:00
1 parent 882752472e
commit fd403f8520
44 files changed
+1635 -42

No files matched your search

+5
View File
@@ -3,6 +3,7 @@
namespace App\Models;
use App\Enumerations\InvoiceStatus;
use App\Enumerations\InvoiceType;
use App\Scopes\InstancedModel;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
@@ -75,4 +76,8 @@ class Invoice extends InstancedModel
public function status() : BelongsTo {
return $this->belongsTo(InvoiceStatus::class, 'status')->first();
}
public function invoiceType() : InvoiceType {
return $this->belongsTo(InvoiceType::class, 'type', 'slug')->first();
}
}