adds min_amt to asset model edit, index, and table

This commit is contained in:
Godfrey M
2023-08-21 12:07:57 -07:00
parent 26dd992d3c
commit 8ebb9afedd
7 changed files with 48 additions and 0 deletions
@@ -47,6 +47,7 @@ class AssetModelsTransformer
] : null,
'image' => ($assetmodel->image != '') ? Storage::disk('public')->url('models/'.e($assetmodel->image)) : null,
'model_number' => e($assetmodel->model_number),
'min_amt' => ($assetmodel->min_amt) ? (int) $assetmodel->min_amt : null,
'depreciation' => ($assetmodel->depreciation) ? [
'id' => (int) $assetmodel->depreciation->id,
'name'=> e($assetmodel->depreciation->name),