We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72be171 commit 291be64Copy full SHA for 291be64
app/Http/Transformers/AssetModelsTransformer.php
@@ -56,7 +56,7 @@ public function transformAssetModel(AssetModel $assetmodel)
56
'assets_count' => (int) $assetmodel->assets_count,
57
'assets_assigned_count' => (int) $assetmodel->assets_assigned_count,
58
'assets_archived_count' => (int) $assetmodel->assets_archived_count,
59
- 'remaining' => (int) ($assetmodel->assets_count - $assetmodel->assets_assigned_count),
+ 'remaining' => (int) ($assetmodel->assets_count - (int) $assetmodel->assets_assigned_count) - (int) $assetmodel->assets_archived_count,
60
'category' => ($assetmodel->category) ? [
61
'id' => (int) $assetmodel->category->id,
62
'name'=> e($assetmodel->category->name),
0 commit comments