Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
added AssetTagPrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhogg committed Jul 2, 2018
1 parent 1b9c513 commit 1951475
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions App.config
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<add key="OULevel" value="1"/>
<add key="Interactive" value="false"/>
<add key="WarrantyMonths" value="60"/>
<add key="AssetTagPrefix" value="001"/>
</appSettings>

</configuration>
2 changes: 1 addition & 1 deletion Marksman.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public SnipeSharp.Endpoints.Models.Asset GetAsset(System.Collections.Specialized
SnipeSharp.Endpoints.Models.Asset currentComputer = new SnipeSharp.Endpoints.Models.Asset
{
Company = currentCompany,
AssetTag = "156-" + serialNumber, // <-- to be implemented.. somehow, somewhere
AssetTag = appSettings["AssetTagPrefix"] + "-" + serialNumber, // <-- to be implemented.. somehow, somewhere
Model = currentModel,
StatusLabel = currentStatusLabel,
RtdLocation = currentLocation,
Expand Down

0 comments on commit 1951475

Please sign in to comment.