mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 08:21:34 +02:00
Improvements for reports
This commit is contained in:
parent
468a8bfe2c
commit
999b4c6d76
@ -33,7 +33,7 @@ class BaseExport
|
||||
|
||||
protected function filterByClients($query)
|
||||
{
|
||||
if (array_key_exists('client_id', $this->input) && $this->input['client_id'] != 'all') {
|
||||
if (isset($this->input['client_id']) && $this->input['client_id'] != 'all') {
|
||||
|
||||
$client = Client::withTrashed()->find($this->input['client_id']);
|
||||
$this->client_description = $client->present()->name;
|
||||
|
@ -144,8 +144,9 @@ class ProductSalesExport extends BaseExport
|
||||
$this->csv->insertOne([]);
|
||||
$this->csv->insertOne([]);
|
||||
$this->csv->insertOne([]);
|
||||
$this->csv->insertOne([ctrans('texts.clients'), ctrans('texts.type'), ctrans('texts.start_date'), ctrans('texts.end_date')]);
|
||||
$this->csv->insertOne([$this->client_description, ctrans('texts.product_sales'), $this->start_date, $this->end_date]);
|
||||
$this->csv->insertOne([]);
|
||||
$this->csv->insertOne([ctrans('texts.summary'),ctrans('texts.product_sales'), $this->start_date, $this->end_date]);
|
||||
|
||||
|
||||
if ($grouped->count() >=1) {
|
||||
|
Loading…
Reference in New Issue
Block a user