diff --git a/app/Export/CSV/CreditExport.php b/app/Export/CSV/CreditExport.php index 66b24ce33f5a..e64913971869 100644 --- a/app/Export/CSV/CreditExport.php +++ b/app/Export/CSV/CreditExport.php @@ -131,7 +131,11 @@ class CreditExport extends BaseExport $t->replace(Ninja::transformTranslations($this->company->settings)); if (count($this->input['report_keys']) == 0) { - $this->input['report_keys'] = array_values($this->entity_keys); + + $this->input['report_keys'] = collect(array_values($this->entity_keys))->map(function ($value){ + return 'credit.'.$value; + }); + } $query = Credit::query()