mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fix mapping of expense vendor ids
This commit is contained in:
parent
f1908e7be6
commit
a456e484ba
@ -104,7 +104,7 @@ class ExpenseApiController extends BaseAPIController
|
|||||||
*/
|
*/
|
||||||
public function store(CreateExpenseRequest $request)
|
public function store(CreateExpenseRequest $request)
|
||||||
{
|
{
|
||||||
$expense = $this->expenseRepo->save($request->input());
|
$expense = $this->expenseService->save($request->input());
|
||||||
|
|
||||||
$expense = Expense::scope($expense->public_id)
|
$expense = Expense::scope($expense->public_id)
|
||||||
->with('client', 'invoice', 'vendor')
|
->with('client', 'invoice', 'vendor')
|
||||||
@ -151,7 +151,7 @@ class ExpenseApiController extends BaseAPIController
|
|||||||
|
|
||||||
$data = $request->input();
|
$data = $request->input();
|
||||||
$data['public_id'] = $publicId;
|
$data['public_id'] = $publicId;
|
||||||
$expense = $this->expenseRepo->save($data, $request->entity());
|
$expense = $this->expenseService->save($data, $request->entity());
|
||||||
|
|
||||||
return $this->itemResponse($expense);
|
return $this->itemResponse($expense);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user