From a3de5daef824be94f82e5ca5ddfb571a3629db89 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 1 Mar 2023 23:27:14 +1100 Subject: [PATCH] Improvements for reports --- app/Export/CSV/ClientExport.php | 2 +- app/Export/CSV/ContactExport.php | 2 +- app/Export/CSV/CreditExport.php | 2 +- app/Export/CSV/DocumentExport.php | 2 +- app/Export/CSV/ExpenseExport.php | 2 +- app/Export/CSV/InvoiceExport.php | 2 +- app/Export/CSV/InvoiceItemExport.php | 2 +- app/Export/CSV/PaymentExport.php | 2 +- app/Export/CSV/ProductExport.php | 2 +- app/Export/CSV/QuoteExport.php | 2 +- app/Export/CSV/QuoteItemExport.php | 2 +- app/Export/CSV/RecurringInvoiceExport.php | 2 +- app/Export/CSV/TaskExport.php | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/Export/CSV/ClientExport.php b/app/Export/CSV/ClientExport.php index 819da8ef3..d34daea11 100644 --- a/app/Export/CSV/ClientExport.php +++ b/app/Export/CSV/ClientExport.php @@ -30,7 +30,7 @@ class ClientExport extends BaseExport public string $date_key = 'created_at'; - protected array $entity_keys = [ + public array $entity_keys = [ 'address1' => 'client.address1', 'address2' => 'client.address2', 'balance' => 'client.balance', diff --git a/app/Export/CSV/ContactExport.php b/app/Export/CSV/ContactExport.php index 13535dbe7..b5fe8f3e9 100644 --- a/app/Export/CSV/ContactExport.php +++ b/app/Export/CSV/ContactExport.php @@ -31,7 +31,7 @@ class ContactExport extends BaseExport public string $date_key = 'created_at'; - protected array $entity_keys = [ + public array $entity_keys = [ 'address1' => 'client.address1', 'address2' => 'client.address2', 'balance' => 'client.balance', diff --git a/app/Export/CSV/CreditExport.php b/app/Export/CSV/CreditExport.php index 25d71d50f..718fac44f 100644 --- a/app/Export/CSV/CreditExport.php +++ b/app/Export/CSV/CreditExport.php @@ -27,7 +27,7 @@ class CreditExport extends BaseExport public string $date_key = 'created_at'; - protected array $entity_keys = [ + public array $entity_keys = [ 'amount' => 'amount', 'balance' => 'balance', 'client' => 'client_id', diff --git a/app/Export/CSV/DocumentExport.php b/app/Export/CSV/DocumentExport.php index 5c4f8acfe..9748e5e11 100644 --- a/app/Export/CSV/DocumentExport.php +++ b/app/Export/CSV/DocumentExport.php @@ -27,7 +27,7 @@ class DocumentExport extends BaseExport public $date_key = 'created_at'; - protected array $entity_keys = [ + public array $entity_keys = [ 'record_type' => 'record_type', // 'record_name' => 'record_name', 'name' => 'name', diff --git a/app/Export/CSV/ExpenseExport.php b/app/Export/CSV/ExpenseExport.php index 4c7843635..b1ac4bee8 100644 --- a/app/Export/CSV/ExpenseExport.php +++ b/app/Export/CSV/ExpenseExport.php @@ -27,7 +27,7 @@ class ExpenseExport extends BaseExport public $date_key = 'date'; - protected array $entity_keys = [ + public array $entity_keys = [ 'amount' => 'amount', 'category' => 'category_id', 'client' => 'client_id', diff --git a/app/Export/CSV/InvoiceExport.php b/app/Export/CSV/InvoiceExport.php index ecf585c24..c3e8ac1e1 100644 --- a/app/Export/CSV/InvoiceExport.php +++ b/app/Export/CSV/InvoiceExport.php @@ -27,7 +27,7 @@ class InvoiceExport extends BaseExport public string $date_key = 'date'; - protected array $entity_keys = [ + public array $entity_keys = [ 'amount' => 'amount', 'balance' => 'balance', 'client' => 'client_id', diff --git a/app/Export/CSV/InvoiceItemExport.php b/app/Export/CSV/InvoiceItemExport.php index d60e8ab79..2b0ecf809 100644 --- a/app/Export/CSV/InvoiceItemExport.php +++ b/app/Export/CSV/InvoiceItemExport.php @@ -28,7 +28,7 @@ class InvoiceItemExport extends BaseExport public string $date_key = 'date'; - protected array $entity_keys = [ + public array $entity_keys = [ 'amount' => 'amount', 'balance' => 'balance', 'client' => 'client_id', diff --git a/app/Export/CSV/PaymentExport.php b/app/Export/CSV/PaymentExport.php index 661281093..46f5a6308 100644 --- a/app/Export/CSV/PaymentExport.php +++ b/app/Export/CSV/PaymentExport.php @@ -27,7 +27,7 @@ class PaymentExport extends BaseExport public $date_key = 'date'; - protected array $entity_keys = [ + public array $entity_keys = [ 'amount' => 'amount', 'applied' => 'applied', 'client' => 'client_id', diff --git a/app/Export/CSV/ProductExport.php b/app/Export/CSV/ProductExport.php index 52ed8f54e..ec8e03ea8 100644 --- a/app/Export/CSV/ProductExport.php +++ b/app/Export/CSV/ProductExport.php @@ -28,7 +28,7 @@ class ProductExport extends BaseExport public $date_key = 'created_at'; - protected array $entity_keys = [ + public array $entity_keys = [ 'project' => 'project_id', 'vendor' => 'vendor_id', 'custom_value1' => 'custom_value1', diff --git a/app/Export/CSV/QuoteExport.php b/app/Export/CSV/QuoteExport.php index 235ea1cda..e76b68a0e 100644 --- a/app/Export/CSV/QuoteExport.php +++ b/app/Export/CSV/QuoteExport.php @@ -27,7 +27,7 @@ class QuoteExport extends BaseExport public string $date_key = 'date'; - protected array $entity_keys = [ + public array $entity_keys = [ 'amount' => 'amount', 'balance' => 'balance', 'client' => 'client_id', diff --git a/app/Export/CSV/QuoteItemExport.php b/app/Export/CSV/QuoteItemExport.php index 3d3931a52..ccd3538f1 100644 --- a/app/Export/CSV/QuoteItemExport.php +++ b/app/Export/CSV/QuoteItemExport.php @@ -27,7 +27,7 @@ class QuoteItemExport extends BaseExport public string $date_key = 'date'; - protected array $entity_keys = [ + public array $entity_keys = [ 'amount' => 'amount', 'balance' => 'balance', 'client' => 'client_id', diff --git a/app/Export/CSV/RecurringInvoiceExport.php b/app/Export/CSV/RecurringInvoiceExport.php index be071bf47..43e96ee4d 100644 --- a/app/Export/CSV/RecurringInvoiceExport.php +++ b/app/Export/CSV/RecurringInvoiceExport.php @@ -27,7 +27,7 @@ class RecurringInvoiceExport extends BaseExport public string $date_key = 'date'; - protected array $entity_keys = [ + public array $entity_keys = [ 'amount' => 'amount', 'balance' => 'balance', 'client' => 'client_id', diff --git a/app/Export/CSV/TaskExport.php b/app/Export/CSV/TaskExport.php index 274f33e13..d7a8e5376 100644 --- a/app/Export/CSV/TaskExport.php +++ b/app/Export/CSV/TaskExport.php @@ -32,7 +32,7 @@ class TaskExport extends BaseExport private string $date_format = 'YYYY-MM-DD'; - protected array $entity_keys = [ + public array $entity_keys = [ 'start_date' => 'start_date', 'end_date' => 'end_date', 'duration' => 'duration',