added source feature
This commit is contained in:
		@@ -4,10 +4,11 @@ namespace App\Jobs\Banking;
 | 
			
		||||
 | 
			
		||||
use App\Abstracts\Job;
 | 
			
		||||
use App\Interfaces\Job\HasOwner;
 | 
			
		||||
use App\Interfaces\Job\HasSource;
 | 
			
		||||
use App\Interfaces\Job\ShouldCreate;
 | 
			
		||||
use App\Models\Banking\Account;
 | 
			
		||||
 | 
			
		||||
class CreateAccount extends Job implements HasOwner, ShouldCreate
 | 
			
		||||
class CreateAccount extends Job implements HasOwner, HasSource, ShouldCreate
 | 
			
		||||
{
 | 
			
		||||
    public function handle(): Account
 | 
			
		||||
    {
 | 
			
		||||
 
 | 
			
		||||
@@ -4,11 +4,12 @@ namespace App\Jobs\Banking;
 | 
			
		||||
 | 
			
		||||
use App\Abstracts\Job;
 | 
			
		||||
use App\Interfaces\Job\HasOwner;
 | 
			
		||||
use App\Interfaces\Job\HasSource;
 | 
			
		||||
use App\Interfaces\Job\ShouldCreate;
 | 
			
		||||
use App\Models\Banking\Reconciliation;
 | 
			
		||||
use App\Models\Banking\Transaction;
 | 
			
		||||
 | 
			
		||||
class CreateReconciliation extends Job implements HasOwner, ShouldCreate
 | 
			
		||||
class CreateReconciliation extends Job implements HasOwner, HasSource, ShouldCreate
 | 
			
		||||
{
 | 
			
		||||
    public function handle(): Reconciliation
 | 
			
		||||
    {
 | 
			
		||||
 
 | 
			
		||||
@@ -6,10 +6,11 @@ use App\Abstracts\Job;
 | 
			
		||||
use App\Events\Banking\TransactionCreated;
 | 
			
		||||
use App\Events\Banking\TransactionCreating;
 | 
			
		||||
use App\Interfaces\Job\HasOwner;
 | 
			
		||||
use App\Interfaces\Job\HasSource;
 | 
			
		||||
use App\Interfaces\Job\ShouldCreate;
 | 
			
		||||
use App\Models\Banking\Transaction;
 | 
			
		||||
 | 
			
		||||
class CreateTransaction extends Job implements HasOwner, ShouldCreate
 | 
			
		||||
class CreateTransaction extends Job implements HasOwner, HasSource, ShouldCreate
 | 
			
		||||
{
 | 
			
		||||
    public function handle(): Transaction
 | 
			
		||||
    {
 | 
			
		||||
 
 | 
			
		||||
@@ -4,6 +4,7 @@ namespace App\Jobs\Banking;
 | 
			
		||||
 | 
			
		||||
use App\Abstracts\Job;
 | 
			
		||||
use App\Interfaces\Job\HasOwner;
 | 
			
		||||
use App\Interfaces\Job\HasSource;
 | 
			
		||||
use App\Interfaces\Job\ShouldCreate;
 | 
			
		||||
use App\Jobs\Banking\CreateTransaction;
 | 
			
		||||
use App\Models\Banking\Account;
 | 
			
		||||
@@ -11,7 +12,7 @@ use App\Models\Banking\Transfer;
 | 
			
		||||
use App\Models\Setting\Category;
 | 
			
		||||
use App\Traits\Currencies;
 | 
			
		||||
 | 
			
		||||
class CreateTransfer extends Job implements HasOwner, ShouldCreate
 | 
			
		||||
class CreateTransfer extends Job implements HasOwner, HasSource, ShouldCreate
 | 
			
		||||
{
 | 
			
		||||
    use Currencies;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user