fixed export file name

This commit is contained in:
denisdulici
2020-02-12 12:18:08 +03:00
parent 3dbb2b33e6
commit 2c7b15b331
17 changed files with 56 additions and 15 deletions

View File

@ -73,6 +73,6 @@ class Bills extends BulkAction
{
$selected = $this->getSelectedInput($request);
return \Excel::download(new Export($selected), trans_choice('general.bills', 2) . '.xlsx');
return \Excel::download(new Export($selected), \Str::filename(trans_choice('general.bills', 2)) . '.xlsx');
}
}

View File

@ -31,6 +31,6 @@ class Payments extends BulkAction
{
$selected = $this->getSelectedInput($request);
return \Excel::download(new Export($selected), trans_choice('general.payments', 2) . '.xlsx');
return \Excel::download(new Export($selected), \Str::filename(trans_choice('general.payments', 2)) . '.xlsx');
}
}

View File

@ -46,6 +46,6 @@ class Vendors extends BulkAction
{
$selected = $this->getSelectedInput($request);
return \Excel::download(new Export($selected), trans_choice('general.vendors', 2) . '.xlsx');
return \Excel::download(new Export($selected), \Str::filename(trans_choice('general.vendors', 2)) . '.xlsx');
}
}

View File

@ -46,6 +46,6 @@ class Customers extends BulkAction
{
$selected = $this->getSelectedInput($request);
return \Excel::download(new Export($selected), trans_choice('general.customers', 2) . '.xlsx');
return \Excel::download(new Export($selected), \Str::filename(trans_choice('general.customers', 2)) . '.xlsx');
}
}

View File

@ -87,6 +87,6 @@ class Invoices extends BulkAction
{
$selected = $this->getSelectedInput($request);
return \Excel::download(new Export($selected), trans_choice('general.invoices', 2) . '.xlsx');
return \Excel::download(new Export($selected), \Str::filename(trans_choice('general.invoices', 2)) . '.xlsx');
}
}

View File

@ -31,6 +31,6 @@ class Revenues extends BulkAction
{
$selected = $this->getSelectedInput($request);
return \Excel::download(new Export($selected), trans_choice('general.revenues', 2) . '.xlsx');
return \Excel::download(new Export($selected), \Str::filename(trans_choice('general.revenues', 2)) . '.xlsx');
}
}