fixed tests and bulk action export

This commit is contained in:
Denis Duliçi
2021-05-23 17:13:13 +03:00
parent 21e14f1191
commit 4e924ab46d
21 changed files with 274 additions and 149 deletions

View File

@ -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));
}
}

View File

@ -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));
}
}

View File

@ -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));
}
}

View File

@ -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));
}
}

View File

@ -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));
}
}

View File

@ -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));
}
}

View File

@ -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));
}
}

View File

@ -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));
}
}

View File

@ -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));
}
}