structure fuel

This commit is contained in:
2019-07-08 19:37:04 -05:00
parent 746257b831
commit 37d05afd24
4 changed files with 72 additions and 2 deletions
+13
View File
@@ -106,6 +106,19 @@ class AssetHelper {
Asset::where('updated_at', '<', $date)->delete();
}
/**
* Get the liquid ozone asset
*/
public function GetAssetByType($type, $structureId) {
$asset = Asset::where([
'structure_id' => $structureId,
'type' => $type,
'location_flag' => 'StructureFuel',
])->first();
return $asset->quantity;
}
/**
* Update an existing asset based off the esi pull
*/