1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 06:32:40 +01:00

3.6.0 via upgrade from 3.2.0

This commit is contained in:
Hillel Coren 2017-08-08 07:22:17 +03:00
parent 95901aa228
commit 039c446815
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ class ExpenseController extends BaseController
return View::make('expenses.edit', $data);
}
public function clone(ExpenseRequest $request, $publicId)
public function cloneExpense(ExpenseRequest $request, $publicId)
{
return self::edit($request, $publicId, true);
}

View File

@ -224,7 +224,7 @@ Route::group(['middleware' => ['lookup:user', 'auth:user']], function () {
// Expense
Route::resource('expenses', 'ExpenseController');
Route::get('expenses/create/{vendor_id?}/{client_id?}/{category_id?}', 'ExpenseController@create');
Route::get('expenses/{expenses}/clone', 'ExpenseController@clone');
Route::get('expenses/{expenses}/clone', 'ExpenseController@cloneExpense');
Route::get('api/expenses', 'ExpenseController@getDatatable');
Route::get('api/expenses/{id}', 'ExpenseController@getDatatableVendor');
Route::post('expenses/bulk', 'ExpenseController@bulk');