fixed export file name
This commit is contained in:
@ -84,6 +84,6 @@ class Transactions extends Controller
|
||||
*/
|
||||
public function export()
|
||||
{
|
||||
return \Excel::download(new Export(), trans_choice('general.transactions', 2) . '.xlsx');
|
||||
return \Excel::download(new Export(), \Str::filename(trans_choice('general.transactions', 2)) . '.xlsx');
|
||||
}
|
||||
}
|
||||
|
@ -235,7 +235,7 @@ class Items extends Controller
|
||||
*/
|
||||
public function export()
|
||||
{
|
||||
return \Excel::download(new Export(), trans_choice('general.items', 2) . '.xlsx');
|
||||
return \Excel::download(new Export(), \Str::filename(trans_choice('general.items', 2)) . '.xlsx');
|
||||
}
|
||||
|
||||
public function autocomplete()
|
||||
|
@ -268,7 +268,7 @@ class Bills extends Controller
|
||||
*/
|
||||
public function export()
|
||||
{
|
||||
return \Excel::download(new Export(), trans_choice('general.bills', 2) . '.xlsx');
|
||||
return \Excel::download(new Export(), \Str::filename(trans_choice('general.bills', 2)) . '.xlsx');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -228,6 +228,6 @@ class Payments extends Controller
|
||||
*/
|
||||
public function export()
|
||||
{
|
||||
return \Excel::download(new Export(), trans_choice('general.payments', 2) . '.xlsx');
|
||||
return \Excel::download(new Export(), \Str::filename(trans_choice('general.payments', 2)) . '.xlsx');
|
||||
}
|
||||
}
|
||||
|
@ -277,7 +277,7 @@ class Vendors extends Controller
|
||||
*/
|
||||
public function export()
|
||||
{
|
||||
return \Excel::download(new Export(), trans_choice('general.vendors', 2) . '.xlsx');
|
||||
return \Excel::download(new Export(), \Str::filename(trans_choice('general.vendors', 2)) . '.xlsx');
|
||||
}
|
||||
|
||||
public function currency(Contact $vendor)
|
||||
|
@ -283,7 +283,7 @@ class Customers extends Controller
|
||||
*/
|
||||
public function export()
|
||||
{
|
||||
return \Excel::download(new Export(), trans_choice('general.customers', 2) . '.xlsx');
|
||||
return \Excel::download(new Export(), \Str::filename(trans_choice('general.customers', 2)) . '.xlsx');
|
||||
}
|
||||
|
||||
public function currency(Contact $customer)
|
||||
|
@ -274,7 +274,7 @@ class Invoices extends Controller
|
||||
*/
|
||||
public function export()
|
||||
{
|
||||
return \Excel::download(new Export(), trans_choice('general.invoices', 2) . '.xlsx');
|
||||
return \Excel::download(new Export(), \Str::filename(trans_choice('general.invoices', 2)) . '.xlsx');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -228,6 +228,6 @@ class Revenues extends Controller
|
||||
*/
|
||||
public function export()
|
||||
{
|
||||
return \Excel::download(new Export(), trans_choice('general.revenues', 2) . '.xlsx');
|
||||
return \Excel::download(new Export(), \Str::filename(trans_choice('general.revenues', 2)) . '.xlsx');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user