fixed tests and bulk action export
This commit is contained in:
@ -32,6 +32,6 @@ class Transactions extends BulkAction
|
||||
{
|
||||
$selected = $this->getSelectedInput($request);
|
||||
|
||||
return \Excel::download(new Export($selected), \Str::filename(trans_choice('general.transactions', 2)) . '.xlsx');
|
||||
return $this->exportExcel(new Export($selected), trans_choice('general.transactions', 2));
|
||||
}
|
||||
}
|
||||
|
@ -41,6 +41,6 @@ class Transfers extends BulkAction
|
||||
{
|
||||
$selected = $this->getSelectedInput($request);
|
||||
|
||||
return \Excel::download(new Export($selected), \Str::filename(trans_choice('general.transfers', 2)) . '.xlsx');
|
||||
return $this->exportExcel(new Export($selected), trans_choice('general.transfers', 2));
|
||||
}
|
||||
}
|
||||
|
@ -55,6 +55,6 @@ class Items extends BulkAction
|
||||
{
|
||||
$selected = $this->getSelectedInput($request);
|
||||
|
||||
return \Excel::download(new Export($selected), trans_choice('general.items', 2) . '.xlsx');
|
||||
return $this->exportExcel(new Export($selected), trans_choice('general.items', 2));
|
||||
}
|
||||
}
|
||||
|
@ -104,6 +104,6 @@ class Bills extends BulkAction
|
||||
{
|
||||
$selected = $this->getSelectedInput($request);
|
||||
|
||||
return \Excel::download(new Export($selected), \Str::filename(trans_choice('general.bills', 2)) . '.xlsx');
|
||||
return $this->exportExcel(new Export($selected), trans_choice('general.bills', 2));
|
||||
}
|
||||
}
|
||||
|
@ -32,6 +32,6 @@ class Payments extends BulkAction
|
||||
{
|
||||
$selected = $this->getSelectedInput($request);
|
||||
|
||||
return \Excel::download(new Export($selected), \Str::filename(trans_choice('general.payments', 2)) . '.xlsx');
|
||||
return $this->exportExcel(new Export($selected), trans_choice('general.payments', 2));
|
||||
}
|
||||
}
|
||||
|
@ -47,6 +47,6 @@ class Vendors extends BulkAction
|
||||
{
|
||||
$selected = $this->getSelectedInput($request);
|
||||
|
||||
return \Excel::download(new Export($selected), \Str::filename(trans_choice('general.vendors', 2)) . '.xlsx');
|
||||
return $this->exportExcel(new Export($selected), trans_choice('general.vendors', 2));
|
||||
}
|
||||
}
|
||||
|
@ -47,6 +47,6 @@ class Customers extends BulkAction
|
||||
{
|
||||
$selected = $this->getSelectedInput($request);
|
||||
|
||||
return \Excel::download(new Export($selected), \Str::filename(trans_choice('general.customers', 2)) . '.xlsx');
|
||||
return $this->exportExcel(new Export($selected), trans_choice('general.customers', 2));
|
||||
}
|
||||
}
|
||||
|
@ -108,6 +108,6 @@ class Invoices extends BulkAction
|
||||
{
|
||||
$selected = $this->getSelectedInput($request);
|
||||
|
||||
return \Excel::download(new Export($selected), \Str::filename(trans_choice('general.invoices', 2)) . '.xlsx');
|
||||
return $this->exportExcel(new Export($selected), trans_choice('general.invoices', 2));
|
||||
}
|
||||
}
|
||||
|
@ -32,6 +32,6 @@ class Revenues extends BulkAction
|
||||
{
|
||||
$selected = $this->getSelectedInput($request);
|
||||
|
||||
return \Excel::download(new Export($selected), \Str::filename(trans_choice('general.revenues', 2)) . '.xlsx');
|
||||
return $this->exportExcel(new Export($selected), trans_choice('general.revenues', 2));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user