mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fixes #3853 - added notes/zip to suppliers API response
This commit is contained in:
parent
eaaea303f4
commit
d2535582f3
|
@ -30,6 +30,7 @@ class SuppliersTransformer
|
||||||
'city' => ($supplier->city) ? e($supplier->city) : null,
|
'city' => ($supplier->city) ? e($supplier->city) : null,
|
||||||
'state' => ($supplier->state) ? e($supplier->state) : null,
|
'state' => ($supplier->state) ? e($supplier->state) : null,
|
||||||
'country' => ($supplier->country) ? e($supplier->country) : null,
|
'country' => ($supplier->country) ? e($supplier->country) : null,
|
||||||
|
'zip' => ($supplier->zip) ? e($supplier->zip) : null,
|
||||||
'fax' => ($supplier->fax) ? e($supplier->fax) : null,
|
'fax' => ($supplier->fax) ? e($supplier->fax) : null,
|
||||||
'phone' => ($supplier->phone) ? e($supplier->phone) : null,
|
'phone' => ($supplier->phone) ? e($supplier->phone) : null,
|
||||||
'email' => ($supplier->email) ? e($supplier->email) : null,
|
'email' => ($supplier->email) ? e($supplier->email) : null,
|
||||||
|
@ -37,6 +38,7 @@ class SuppliersTransformer
|
||||||
'assets_count' => (int) $supplier->assets_count,
|
'assets_count' => (int) $supplier->assets_count,
|
||||||
'licenses_count' => (int) $supplier->licenses_count,
|
'licenses_count' => (int) $supplier->licenses_count,
|
||||||
'image' => ($supplier->image) ? e($supplier->image) : null,
|
'image' => ($supplier->image) ? e($supplier->image) : null,
|
||||||
|
'notes' => ($supplier->notes) ? e($supplier->notes) : null,
|
||||||
'created_at' => Helper::getFormattedDateObject($supplier->created_at, 'datetime'),
|
'created_at' => Helper::getFormattedDateObject($supplier->created_at, 'datetime'),
|
||||||
'updated_at' => Helper::getFormattedDateObject($supplier->updated_at, 'datetime'),
|
'updated_at' => Helper::getFormattedDateObject($supplier->updated_at, 'datetime'),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue