- removed invoicing from oasis

This commit is contained in:
Peter Papp
2021-05-13 09:31:16 +02:00
parent f5958dda57
commit 3af8bff13b
43 changed files with 1227 additions and 4900 deletions
-24
View File
@@ -1,9 +1,6 @@
<?php
namespace App\Traits;
use App\Models\Oasis\Client;
use App\Models\Oasis\Invoice;
use App\Models\Oasis\InvoiceProfile;
use App\Models\Oasis\SubscriptionRequest;
trait Oasis
@@ -12,25 +9,4 @@ trait Oasis
{
return $this->hasOne(SubscriptionRequest::class);
}
public function invoiceProfile()
{
return $this->hasOne(InvoiceProfile::class);
}
public function clients()
{
return $this->hasMany(Client::class, 'user_id', 'id')
->orderByDesc('created_at');
}
public function regularInvoices()
{
return $this->hasMany(Invoice::class)->whereInvoiceType('regular-invoice')->orderByDesc('created_at');
}
public function advanceInvoices()
{
return $this->hasMany(Invoice::class)->whereInvoiceType('advance-invoice')->orderByDesc('created_at');
}
}