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 819da8ef3f60..d34daea11413 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 13535dbe79aa..b5fe8f3e9627 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 25d71d50f99e..718fac44f8ae 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 5c4f8acfe0a9..9748e5e1137f 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 4c78436354a0..b1ac4bee85fe 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 ecf585c24914..c3e8ac1e1f12 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 d60e8ab7938e..2b0ecf809b55 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 661281093ab4..46f5a6308833 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 52ed8f54e1fc..ec8e03ea8bff 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 235ea1cdacb6..e76b68a0e25e 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 3d3931a5258a..ccd3538f192c 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 be071bf47282..43e96ee4d932 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 274f33e136bd..d7a8e537613f 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',