Minor fixes for reports

This commit is contained in:
David Bomba 2023-04-24 13:58:25 +10:00
parent 1416e03263
commit f470d10f96
2 changed files with 4 additions and 1 deletions

View File

@ -40,6 +40,7 @@ class ARDetailReport extends BaseExport
public array $report_keys = [ public array $report_keys = [
'date', 'date',
'due_date',
'invoice_number', 'invoice_number',
'status', 'status',
'client_name', 'client_name',
@ -114,6 +115,7 @@ class ARDetailReport extends BaseExport
$client = $invoice->client; $client = $invoice->client;
return [ return [
$this->translateDate($invoice->date, $this->company->date_format(), $this->company->locale()),
$this->translateDate($invoice->due_date, $this->company->date_format(), $this->company->locale()), $this->translateDate($invoice->due_date, $this->company->date_format(), $this->company->locale()),
$invoice->number, $invoice->number,
$invoice->stringStatus($invoice->status_id), $invoice->stringStatus($invoice->status_id),

View File

@ -36,6 +36,7 @@ class ClientBalanceReport extends BaseExport
'client_name', 'client_name',
'client_number', 'client_number',
'id_number', 'id_number',
'invoices',
'invoice_balance', 'invoice_balance',
'credit_balance', 'credit_balance',
]; ];
@ -68,7 +69,7 @@ class ClientBalanceReport extends BaseExport
$this->csv->insertOne([]); $this->csv->insertOne([]);
$this->csv->insertOne([]); $this->csv->insertOne([]);
$this->csv->insertOne([]); $this->csv->insertOne([]);
$this->csv->insertOne([ctrans('texts.customer_balance_report')]); $this->csv->insertOne([ctrans('texts.client_balance_report')]);
$this->csv->insertOne([ctrans('texts.created_on'),' ',$this->translateDate(now()->format('Y-m-d'), $this->company->date_format(), $this->company->locale())]); $this->csv->insertOne([ctrans('texts.created_on'),' ',$this->translateDate(now()->format('Y-m-d'), $this->company->date_format(), $this->company->locale())]);
if (count($this->input['report_keys']) == 0) { if (count($this->input['report_keys']) == 0) {