mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for bank service query
This commit is contained in:
parent
4738e1c82c
commit
654460758d
@ -14,6 +14,7 @@ namespace App\Services\Bank;
|
|||||||
use App\Libraries\MultiDB;
|
use App\Libraries\MultiDB;
|
||||||
use App\Models\BankTransaction;
|
use App\Models\BankTransaction;
|
||||||
use App\Models\Company;
|
use App\Models\Company;
|
||||||
|
use App\Models\Invoice;
|
||||||
use Illuminate\Bus\Queueable;
|
use Illuminate\Bus\Queueable;
|
||||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
use Illuminate\Foundation\Bus\Dispatchable;
|
use Illuminate\Foundation\Bus\Dispatchable;
|
||||||
@ -45,9 +46,10 @@ class BankService implements ShouldQueue
|
|||||||
|
|
||||||
$this->company = Company::find($this->company_id);
|
$this->company = Company::find($this->company_id);
|
||||||
|
|
||||||
$this->invoices = $this->company->invoices()->whereIn('status_id', [1,2,3])
|
$this->invoices = Invoice::where('company_id', $this->company->id)
|
||||||
->where('is_deleted', 0)
|
->whereIn('status_id', [1,2,3])
|
||||||
->get();
|
->where('is_deleted', 0)
|
||||||
|
->get();
|
||||||
|
|
||||||
$this->match();
|
$this->match();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user