Support creating inline vendors and categories

This commit is contained in:
Hillel Coren 2017-03-02 18:08:28 +02:00
parent 5f478af9a4
commit 009de83e93

View File

@ -37,6 +37,7 @@ class ExpenseRequest extends EntityRequest
$vendor = app('App\Ninja\Repositories\VendorRepository')->save([ $vendor = app('App\Ninja\Repositories\VendorRepository')->save([
'name' => $this->vendor_name, 'name' => $this->vendor_name,
]); ]);
// TODO change to private id once service is refactored
$input['vendor_id'] = $vendor->public_id; $input['vendor_id'] = $vendor->public_id;
} }