Support creating inline vendors and categories
This commit is contained in:
parent
5f478af9a4
commit
009de83e93
1 changed files with 1 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ class ExpenseRequest extends EntityRequest
|
|||
$vendor = app('App\Ninja\Repositories\VendorRepository')->save([
|
||||
'name' => $this->vendor_name,
|
||||
]);
|
||||
// TODO change to private id once service is refactored
|
||||
$input['vendor_id'] = $vendor->public_id;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue