From 586adb6963427af1e92d53b6880f3f1d0090466f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Fri, 6 Oct 2023 18:43:02 +0200 Subject: [PATCH] Return correct identifier for reports --- app/Export/CSV/ActivityExport.php | 2 +- 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/PurchaseOrderExport.php | 2 +- app/Export/CSV/PurchaseOrderItemExport.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 +- app/Export/CSV/VendorExport.php | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/app/Export/CSV/ActivityExport.php b/app/Export/CSV/ActivityExport.php index 7775d55dc8..f1e98ef282 100644 --- a/app/Export/CSV/ActivityExport.php +++ b/app/Export/CSV/ActivityExport.php @@ -54,7 +54,7 @@ class ActivityExport extends BaseExport $headerdisplay = $this->buildHeader(); $header = collect($this->input['report_keys'])->map(function ($key, $value) use($headerdisplay){ - return ['identifier' => $value, 'display_value' => $headerdisplay[$value]]; + return ['identifier' => $key, 'display_value' => $headerdisplay[$value]]; })->toArray(); diff --git a/app/Export/CSV/ClientExport.php b/app/Export/CSV/ClientExport.php index 981f051f94..e99434b198 100644 --- a/app/Export/CSV/ClientExport.php +++ b/app/Export/CSV/ClientExport.php @@ -93,7 +93,7 @@ class ClientExport extends BaseExport $headerdisplay = $this->buildHeader(); $header = collect($this->input['report_keys'])->map(function ($key, $value) use($headerdisplay){ - return ['identifier' => $value, 'display_value' => $headerdisplay[$value]]; + return ['identifier' => $key, 'display_value' => $headerdisplay[$value]]; })->toArray(); $report = $query->cursor() diff --git a/app/Export/CSV/ContactExport.php b/app/Export/CSV/ContactExport.php index 9de6b85d74..e07cf64d32 100644 --- a/app/Export/CSV/ContactExport.php +++ b/app/Export/CSV/ContactExport.php @@ -89,7 +89,7 @@ class ContactExport extends BaseExport $headerdisplay = $this->buildHeader(); $header = collect($this->input['report_keys'])->map(function ($key, $value) use($headerdisplay){ - return ['identifier' => $value, 'display_value' => $headerdisplay[$value]]; + return ['identifier' => $key, 'display_value' => $headerdisplay[$value]]; })->toArray(); $report = $query->cursor() diff --git a/app/Export/CSV/CreditExport.php b/app/Export/CSV/CreditExport.php index 2d4cc8447f..29afbfa161 100644 --- a/app/Export/CSV/CreditExport.php +++ b/app/Export/CSV/CreditExport.php @@ -44,7 +44,7 @@ class CreditExport extends BaseExport $headerdisplay = $this->buildHeader(); $header = collect($this->input['report_keys'])->map(function ($key, $value) use($headerdisplay){ - return ['identifier' => $value, 'display_value' => $headerdisplay[$value]]; + return ['identifier' => $key, 'display_value' => $headerdisplay[$value]]; })->toArray(); $report = $query->cursor() diff --git a/app/Export/CSV/DocumentExport.php b/app/Export/CSV/DocumentExport.php index 701b1bc3ff..cc4482c063 100644 --- a/app/Export/CSV/DocumentExport.php +++ b/app/Export/CSV/DocumentExport.php @@ -50,7 +50,7 @@ class DocumentExport extends BaseExport $headerdisplay = $this->buildHeader(); $header = collect($this->input['report_keys'])->map(function ($key, $value) use($headerdisplay){ - return ['identifier' => $value, 'display_value' => $headerdisplay[$value]]; + return ['identifier' => $key, 'display_value' => $headerdisplay[$value]]; })->toArray(); $report = $query->cursor() diff --git a/app/Export/CSV/ExpenseExport.php b/app/Export/CSV/ExpenseExport.php index 6de2339816..7b51401629 100644 --- a/app/Export/CSV/ExpenseExport.php +++ b/app/Export/CSV/ExpenseExport.php @@ -44,7 +44,7 @@ class ExpenseExport extends BaseExport $headerdisplay = $this->buildHeader(); $header = collect($this->input['report_keys'])->map(function ($key, $value) use($headerdisplay){ - return ['identifier' => $value, 'display_value' => $headerdisplay[$value]]; + return ['identifier' => $key, 'display_value' => $headerdisplay[$value]]; })->toArray(); $report = $query->cursor() diff --git a/app/Export/CSV/InvoiceExport.php b/app/Export/CSV/InvoiceExport.php index f8cc1cfe93..0a8f3188f2 100644 --- a/app/Export/CSV/InvoiceExport.php +++ b/app/Export/CSV/InvoiceExport.php @@ -73,7 +73,7 @@ class InvoiceExport extends BaseExport $headerdisplay = $this->buildHeader(); $header = collect($this->input['report_keys'])->map(function ($key, $value) use($headerdisplay){ - return ['identifier' => $value, 'display_value' => $headerdisplay[$value]]; + return ['identifier' => $key, 'display_value' => $headerdisplay[$value]]; })->toArray(); $report = $query->cursor() diff --git a/app/Export/CSV/InvoiceItemExport.php b/app/Export/CSV/InvoiceItemExport.php index 4db0122672..74c1a64c25 100644 --- a/app/Export/CSV/InvoiceItemExport.php +++ b/app/Export/CSV/InvoiceItemExport.php @@ -81,7 +81,7 @@ class InvoiceItemExport extends BaseExport $headerdisplay = $this->buildHeader(); $header = collect($this->input['report_keys'])->map(function ($key, $value) use($headerdisplay){ - return ['identifier' => $value, 'display_value' => $headerdisplay[$value]]; + return ['identifier' => $key, 'display_value' => $headerdisplay[$value]]; })->toArray(); diff --git a/app/Export/CSV/PaymentExport.php b/app/Export/CSV/PaymentExport.php index b868bd23ea..01c8641b07 100644 --- a/app/Export/CSV/PaymentExport.php +++ b/app/Export/CSV/PaymentExport.php @@ -66,7 +66,7 @@ class PaymentExport extends BaseExport $headerdisplay = $this->buildHeader(); $header = collect($this->input['report_keys'])->map(function ($key, $value) use ($headerdisplay) { - return ['identifier' => $value, 'display_value' => $headerdisplay[$value]]; + return ['identifier' => $key, 'display_value' => $headerdisplay[$value]]; })->toArray(); $report = $query->cursor() diff --git a/app/Export/CSV/ProductExport.php b/app/Export/CSV/ProductExport.php index 0097040ba6..d36c31b54e 100644 --- a/app/Export/CSV/ProductExport.php +++ b/app/Export/CSV/ProductExport.php @@ -42,7 +42,7 @@ class ProductExport extends BaseExport $headerdisplay = $this->buildHeader(); $header = collect($this->input['report_keys'])->map(function ($key, $value) use($headerdisplay){ - return ['identifier' => $value, 'display_value' => $headerdisplay[$value]]; + return ['identifier' => $key, 'display_value' => $headerdisplay[$value]]; })->toArray(); $report = $query->cursor() diff --git a/app/Export/CSV/PurchaseOrderExport.php b/app/Export/CSV/PurchaseOrderExport.php index ed506f6105..88145822b1 100644 --- a/app/Export/CSV/PurchaseOrderExport.php +++ b/app/Export/CSV/PurchaseOrderExport.php @@ -114,7 +114,7 @@ class PurchaseOrderExport extends BaseExport $headerdisplay = $this->buildHeader(); $header = collect($this->input['report_keys'])->map(function ($key, $value) use($headerdisplay){ - return ['identifier' => $value, 'display_value' => $headerdisplay[$value]]; + return ['identifier' => $key, 'display_value' => $headerdisplay[$value]]; })->toArray(); $report = $query->cursor() diff --git a/app/Export/CSV/PurchaseOrderItemExport.php b/app/Export/CSV/PurchaseOrderItemExport.php index 8859a431ce..9ebf2991c9 100644 --- a/app/Export/CSV/PurchaseOrderItemExport.php +++ b/app/Export/CSV/PurchaseOrderItemExport.php @@ -73,7 +73,7 @@ class PurchaseOrderItemExport extends BaseExport $headerdisplay = $this->buildHeader(); $header = collect($this->input['report_keys'])->map(function ($key, $value) use($headerdisplay){ - return ['identifier' => $value, 'display_value' => $headerdisplay[$value]]; + return ['identifier' => $key, 'display_value' => $headerdisplay[$value]]; })->toArray(); $query->cursor() diff --git a/app/Export/CSV/QuoteExport.php b/app/Export/CSV/QuoteExport.php index de28136085..8083c0a71e 100644 --- a/app/Export/CSV/QuoteExport.php +++ b/app/Export/CSV/QuoteExport.php @@ -75,7 +75,7 @@ class QuoteExport extends BaseExport $headerdisplay = $this->buildHeader(); $header = collect($this->input['report_keys'])->map(function ($key, $value) use ($headerdisplay) { - return ['identifier' => $value, 'display_value' => $headerdisplay[$value]]; + return ['identifier' => $key, 'display_value' => $headerdisplay[$value]]; })->toArray(); $report = $query->cursor() diff --git a/app/Export/CSV/QuoteItemExport.php b/app/Export/CSV/QuoteItemExport.php index 774b50a774..f85a82dd4c 100644 --- a/app/Export/CSV/QuoteItemExport.php +++ b/app/Export/CSV/QuoteItemExport.php @@ -75,7 +75,7 @@ class QuoteItemExport extends BaseExport $headerdisplay = $this->buildHeader(); $header = collect($this->input['report_keys'])->map(function ($key, $value) use($headerdisplay){ - return ['identifier' => $value, 'display_value' => $headerdisplay[$value]]; + return ['identifier' => $key, 'display_value' => $headerdisplay[$value]]; })->toArray(); $query->cursor() diff --git a/app/Export/CSV/RecurringInvoiceExport.php b/app/Export/CSV/RecurringInvoiceExport.php index 06c17eec3f..d30359510c 100644 --- a/app/Export/CSV/RecurringInvoiceExport.php +++ b/app/Export/CSV/RecurringInvoiceExport.php @@ -87,7 +87,7 @@ class RecurringInvoiceExport extends BaseExport $headerdisplay = $this->buildHeader(); $header = collect($this->input['report_keys'])->map(function ($key, $value) use($headerdisplay){ - return ['identifier' => $value, 'display_value' => $headerdisplay[$value]]; + return ['identifier' => $key, 'display_value' => $headerdisplay[$value]]; })->toArray(); $report = $query->cursor() diff --git a/app/Export/CSV/TaskExport.php b/app/Export/CSV/TaskExport.php index 30cf6379c0..2a803df668 100644 --- a/app/Export/CSV/TaskExport.php +++ b/app/Export/CSV/TaskExport.php @@ -100,7 +100,7 @@ class TaskExport extends BaseExport $headerdisplay = $this->buildHeader(); $header = collect($this->input['report_keys'])->map(function ($key, $value) use($headerdisplay){ - return ['identifier' => $value, 'display_value' => $headerdisplay[$value]]; + return ['identifier' => $key, 'display_value' => $headerdisplay[$value]]; })->toArray(); $query->cursor() diff --git a/app/Export/CSV/VendorExport.php b/app/Export/CSV/VendorExport.php index 805837ea07..062c09187d 100644 --- a/app/Export/CSV/VendorExport.php +++ b/app/Export/CSV/VendorExport.php @@ -74,7 +74,7 @@ class VendorExport extends BaseExport $headerdisplay = $this->buildHeader(); $header = collect($this->input['report_keys'])->map(function ($key, $value) use($headerdisplay){ - return ['identifier' => $value, 'display_value' => $headerdisplay[$value]]; + return ['identifier' => $key, 'display_value' => $headerdisplay[$value]]; })->toArray(); $report = $query->cursor()