1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix mapping of expense vendor ids

This commit is contained in:
Hillel Coren 2017-04-07 14:11:24 +03:00
parent f1908e7be6
commit a456e484ba

View File

@ -104,7 +104,7 @@ class ExpenseApiController extends BaseAPIController
*/
public function store(CreateExpenseRequest $request)
{
$expense = $this->expenseRepo->save($request->input());
$expense = $this->expenseService->save($request->input());
$expense = Expense::scope($expense->public_id)
->with('client', 'invoice', 'vendor')
@ -151,7 +151,7 @@ class ExpenseApiController extends BaseAPIController
$data = $request->input();
$data['public_id'] = $publicId;
$expense = $this->expenseRepo->save($data, $request->entity());
$expense = $this->expenseService->save($data, $request->entity());
return $this->itemResponse($expense);
}