Sort statements by due date ascending
This commit is contained in:
parent
79ce3407eb
commit
7d97b74f86
2 changed files with 2 additions and 2 deletions
|
|
@ -231,7 +231,7 @@ class Statement
|
|||
->where('client_id', $this->client->id)
|
||||
->whereIn('status_id', $this->invoiceStatuses())
|
||||
->whereBetween('date', [Carbon::parse($this->options['start_date']), Carbon::parse($this->options['end_date'])])
|
||||
->orderBy('date', 'ASC')
|
||||
->orderBy('due_date', 'ASC')
|
||||
->cursor();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class NinjaPdf
|
|||
$response = $client->post($this->url,[
|
||||
RequestOptions::JSON => ['html' => $html]
|
||||
]);
|
||||
|
||||
|
||||
return $response->getBody();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue