mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fixes for tests
This commit is contained in:
parent
c17a65e7a0
commit
0c7c82bc87
@ -291,7 +291,7 @@ class InvoiceFilters extends QueryFilters
|
||||
$start_date = Carbon::parse($parts[0]);
|
||||
$end_date = Carbon::parse($parts[1]);
|
||||
|
||||
return $this->builder->whereBetween('date', [$start_date, $end_date]);
|
||||
return $this->builder->whereBetween('due_date', [$start_date, $end_date]);
|
||||
} catch(\Exception $e) {
|
||||
return $this->builder;
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ class InvoiceTest extends TestCase
|
||||
->create([
|
||||
'company_id' => $this->company->id,
|
||||
'user_id' => $this->user->id,
|
||||
'client_id' => $this->user->id
|
||||
'client_id' => $this->client->id
|
||||
]);
|
||||
|
||||
$this->assertNull($i->partial_due_date);
|
||||
@ -64,7 +64,7 @@ class InvoiceTest extends TestCase
|
||||
->create([
|
||||
'company_id' => $this->company->id,
|
||||
'user_id' => $this->user->id,
|
||||
'client_id' => $this->user->id,
|
||||
'client_id' => $this->client->id,
|
||||
'partial_due_date' => '2023-10-10',
|
||||
]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user