diff --git a/app/Export/CSV/ClientExport.php b/app/Export/CSV/ClientExport.php index d34daea11413..43cfa9ab7b2c 100644 --- a/app/Export/CSV/ClientExport.php +++ b/app/Export/CSV/ClientExport.php @@ -28,6 +28,8 @@ class ClientExport extends BaseExport private $contact_transformer; + public Writer $csv; + public string $date_key = 'created_at'; public array $entity_keys = [ diff --git a/app/Export/CSV/ContactExport.php b/app/Export/CSV/ContactExport.php index b5fe8f3e9627..e960a572fa05 100644 --- a/app/Export/CSV/ContactExport.php +++ b/app/Export/CSV/ContactExport.php @@ -29,6 +29,8 @@ class ContactExport extends BaseExport private ClientContactTransformer $contact_transformer; + public Writer $csv; + public string $date_key = 'created_at'; public array $entity_keys = [ diff --git a/app/Export/CSV/CreditExport.php b/app/Export/CSV/CreditExport.php index 718fac44f8ae..e21ec1f5ec60 100644 --- a/app/Export/CSV/CreditExport.php +++ b/app/Export/CSV/CreditExport.php @@ -27,6 +27,8 @@ class CreditExport extends BaseExport public string $date_key = 'created_at'; + public Writer $csv; + public array $entity_keys = [ 'amount' => 'amount', 'balance' => 'balance', diff --git a/app/Export/CSV/DocumentExport.php b/app/Export/CSV/DocumentExport.php index 35387e294dc2..3b7d06ede415 100644 --- a/app/Export/CSV/DocumentExport.php +++ b/app/Export/CSV/DocumentExport.php @@ -27,6 +27,8 @@ class DocumentExport extends BaseExport public string $date_key = 'created_at'; + public Writer $csv; + public array $entity_keys = [ 'record_type' => 'record_type', // 'record_name' => 'record_name', diff --git a/app/Export/CSV/ExpenseExport.php b/app/Export/CSV/ExpenseExport.php index 704753dfc208..a1d9411ea5af 100644 --- a/app/Export/CSV/ExpenseExport.php +++ b/app/Export/CSV/ExpenseExport.php @@ -27,6 +27,8 @@ class ExpenseExport extends BaseExport public string $date_key = 'date'; + public Writer $csv; + public array $entity_keys = [ 'amount' => 'amount', 'category' => 'category_id', diff --git a/app/Export/CSV/InvoiceExport.php b/app/Export/CSV/InvoiceExport.php index c3e8ac1e1f12..750cbd5f60e8 100644 --- a/app/Export/CSV/InvoiceExport.php +++ b/app/Export/CSV/InvoiceExport.php @@ -27,6 +27,8 @@ class InvoiceExport extends BaseExport public string $date_key = 'date'; + public Writer $csv; + public array $entity_keys = [ 'amount' => 'amount', 'balance' => 'balance', diff --git a/app/Export/CSV/InvoiceItemExport.php b/app/Export/CSV/InvoiceItemExport.php index 2b0ecf809b55..5a58f78ab356 100644 --- a/app/Export/CSV/InvoiceItemExport.php +++ b/app/Export/CSV/InvoiceItemExport.php @@ -28,6 +28,8 @@ class InvoiceItemExport extends BaseExport public string $date_key = 'date'; + public Writer $csv; + public array $entity_keys = [ 'amount' => 'amount', 'balance' => 'balance', diff --git a/app/Export/CSV/PaymentExport.php b/app/Export/CSV/PaymentExport.php index 3e112ad05011..41e090f520f0 100644 --- a/app/Export/CSV/PaymentExport.php +++ b/app/Export/CSV/PaymentExport.php @@ -27,6 +27,8 @@ class PaymentExport extends BaseExport public string $date_key = 'date'; + public Writer $csv; + public array $entity_keys = [ 'amount' => 'amount', 'applied' => 'applied', diff --git a/app/Export/CSV/ProductExport.php b/app/Export/CSV/ProductExport.php index 30cc17950585..2b1a6d698f3d 100644 --- a/app/Export/CSV/ProductExport.php +++ b/app/Export/CSV/ProductExport.php @@ -28,6 +28,8 @@ class ProductExport extends BaseExport public string $date_key = 'created_at'; + public Writer $csv; + public array $entity_keys = [ 'project' => 'project_id', 'vendor' => 'vendor_id', diff --git a/app/Export/CSV/QuoteExport.php b/app/Export/CSV/QuoteExport.php index e76b68a0e25e..8031f01f05e2 100644 --- a/app/Export/CSV/QuoteExport.php +++ b/app/Export/CSV/QuoteExport.php @@ -27,6 +27,8 @@ class QuoteExport extends BaseExport public string $date_key = 'date'; + public Writer $csv; + public array $entity_keys = [ 'amount' => 'amount', 'balance' => 'balance', diff --git a/app/Export/CSV/QuoteItemExport.php b/app/Export/CSV/QuoteItemExport.php index ccd3538f192c..4059174a8af8 100644 --- a/app/Export/CSV/QuoteItemExport.php +++ b/app/Export/CSV/QuoteItemExport.php @@ -27,6 +27,8 @@ class QuoteItemExport extends BaseExport public string $date_key = 'date'; + public Writer $csv; + public array $entity_keys = [ 'amount' => 'amount', 'balance' => 'balance', diff --git a/app/Export/CSV/RecurringInvoiceExport.php b/app/Export/CSV/RecurringInvoiceExport.php index 43e96ee4d932..dfce445df17b 100644 --- a/app/Export/CSV/RecurringInvoiceExport.php +++ b/app/Export/CSV/RecurringInvoiceExport.php @@ -27,6 +27,8 @@ class RecurringInvoiceExport extends BaseExport public string $date_key = 'date'; + public Writer $csv; + public array $entity_keys = [ 'amount' => 'amount', 'balance' => 'balance', diff --git a/app/Export/CSV/TaskExport.php b/app/Export/CSV/TaskExport.php index e28140e6ffec..3f51da154851 100644 --- a/app/Export/CSV/TaskExport.php +++ b/app/Export/CSV/TaskExport.php @@ -32,6 +32,8 @@ class TaskExport extends BaseExport private string $date_format = 'YYYY-MM-DD'; + public Writer $csv; + public array $entity_keys = [ 'start_date' => 'start_date', 'end_date' => 'end_date', diff --git a/app/Http/Requests/Report/GenericReportRequest.php b/app/Http/Requests/Report/GenericReportRequest.php index 0789ec649476..826ef00a5156 100644 --- a/app/Http/Requests/Report/GenericReportRequest.php +++ b/app/Http/Requests/Report/GenericReportRequest.php @@ -56,8 +56,8 @@ class GenericReportRequest extends Request $input['start_date'] = null; $input['end_date'] = null; } - nlog($input); $this->replace($input); + } }