Operation processes on invoices
This commit is contained in:
1 parent
882752472e
commit
fd403f8520
44 files changed
+1635
-42
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user