Service - Unit Standard
Revision as of 07:08, 16 February 2025 by Sven the Barbarian (talk | contribs)
Overview
Handler service for the standard unit that tracks a single item.
Repository
https://bitbucket.org/izara-supply-units/izara-supply-units-unit-standard
Units that contain quantity properties
- Izara Supply is not used for stock management, but used to follow units we want to track, which in some cases might themselves have a quantity inside them (example bag of 1000 buttons or 200 yard roll of fabric)
- instead of tracking each button or each yard (or inch) we track the bag or roll only
- user can use a unitTrackedProperty to record the quantity inside the tracked Unit
- the unitTrackedProperty can then be used in Service - Transform Units to break down any number of individual Units into any number of other Units. This allows for changing a roll with unitTrackedProperty of yards into multiple yard Units, or different raw material Units into a group of clothing Units
- eg if have 1 tracked bag of 1000 buttons can transform into 10 shirts (100 buttons each shirt), the bag is one tracked Unit, and gets transformed into 10 tracked Unit shirts along with any other raw material
Units that track costing properties
- The cost of Units passing through the supply chain can also be handled using unitTrackedProperty
- each raw material has a unitTrackedProperty that is it's cost
- example 1 tracked Unit of a bag of 1000 buttons would have a cost unitTrackedProperty for it's full cost
- calculatedProperties in transformUnits can spread that cost (and all other materials used) across the new tracked Units created, saving the total into a new property in the outputUnits
objectSchemas
{
objectType: "unitStandard",
extendObjType: {
serviceTag: "unitManager",
objectType: "unit",
},
storageResources:{
"xxx":{
storageType: "graph",
graphServerTag: "xx",
}
},
fieldNames: {
// from stage objectType
},
identifiers: [
// from stage objectType
]
},