mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Added counters for consumables and components
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
6097d534e9
commit
6e183f2ced
|
@ -41,6 +41,8 @@ class SuppliersTransformer
|
||||||
'assets_count' => (int) $supplier->assets_count,
|
'assets_count' => (int) $supplier->assets_count,
|
||||||
'accessories_count' => (int) $supplier->accessories_count,
|
'accessories_count' => (int) $supplier->accessories_count,
|
||||||
'licenses_count' => (int) $supplier->licenses_count,
|
'licenses_count' => (int) $supplier->licenses_count,
|
||||||
|
'consumables_count' => (int) $supplier->consumables_count,
|
||||||
|
'components_count' => (int) $supplier->components_count,
|
||||||
'notes' => ($supplier->notes) ? e($supplier->notes) : 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