mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Added note pivot
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
024a014298
commit
3ec77724d8
|
@ -71,6 +71,7 @@ class ComponentsTransformer
|
||||||
'id' => (int) $asset->id,
|
'id' => (int) $asset->id,
|
||||||
'name' => e($asset->model->present()->name).' '.e($asset->present()->name),
|
'name' => e($asset->model->present()->name).' '.e($asset->present()->name),
|
||||||
'qty' => $asset->pivot->assigned_qty,
|
'qty' => $asset->pivot->assigned_qty,
|
||||||
|
'note' => $asset->pivot->note,
|
||||||
'type' => 'asset',
|
'type' => 'asset',
|
||||||
'created_at' => Helper::getFormattedDateObject($asset->pivot->created_at, 'datetime'),
|
'created_at' => Helper::getFormattedDateObject($asset->pivot->created_at, 'datetime'),
|
||||||
'available_actions' => ['checkin' => true],
|
'available_actions' => ['checkin' => true],
|
||||||
|
|
Loading…
Reference in a new issue