1
0
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:
David Bomba 2024-01-21 13:15:44 +11:00
parent c17a65e7a0
commit 0c7c82bc87
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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',
]);