Calculating availability
The reports for the ProductAvailabilityToSell.ShipNodeChange and DgAvailabilityChange events have total availability, which includes safety stock that is withheld.
If you want to calculate the availability without considering safety stock, then you can manually
compute the availability with the following
formula.
Total availability without considering safety stock = totalAvailableQuantity - totalShortageQuantity + totalSafetyStockWithheldCalculating availability without safety stock example 1
Assume on hand supply = 4, safety stock = 2, and demand = 3.
onhandAvailableQuantity=0futureAvailableQuantity=0totalAvailableQuantity=0onhandSafetyQuantityWithheld=1futureSafetyQuantityWithheld=0totalSafetyQuantityWithheld=1totalReservedQuantity=0totalShortageQuantity=0
onhandSafetyQuantityWithheldandfutureSafetyQuantityWithheldvalues are quantities that can be allocated from the respectiveonhandAvailableQuantityandfutureAvailableQuantityvalues.- Demand takes 3 from on hand supply, which leaves 1 on hand supply. The on hand supply of 1 is
allocated to the
onhandSafetyQuantityWithheld. Therefore,onhandSafetyQuantityWithheld=1 andonhandAvailableQuantity=0. totalSafetyQuantityWithheldisonhandSafetyQuantityWithheld+futureSafetyQuantityWithheld. Therefore, totalSafetyQuantityWithheld=1.totalAvailableQuantityisonhandAvailableQuantity+futureAvailableQuantity. Therefore,totalAvailableQuantity=0.totalShortageQuantityis used as a dummy variable and always returns 0.
Availability without considering safety stock = totalAvailableQuantity -
totalShortageQuantity + totalSafetyQuantityWithheld = 0 - 0 + 1 =
1
Calculating availability without safety stock example 2
Assume on hand supply = 5, future supply = 13, safety stock = 9, demand = 0, reservation = 0.onhandAvailableQuantity=0futureAvailableQuantity=9totalAvailableQuantity=9onhandSafetyQuantityWithheld=5futureSafetyQuantityWithheld=4totalSafetyQuantityWithheld=9totalReservedQuantity=0totalShortageQuantity=0
- On hand supply of 5 is allocated to the
onhandSafetyQuantityWithheld. Therefore,onhandSafetyQuantityWithheld=5 andonhandAvailableQuantity=0. - From the future supply of 13, 4 is allocated to
futureSafetyQuantityWithheld. Therefore,=4 andfutureSafetyQuantityWithheldfutureAvailableQuantity=9. totalAvailableQuantityisonhandAvailableQuantity+futureAvailableQuantity. Therefore,totalAvailableQuantity=9.totalSafetyQuantityWithheldisonhandSafetyQuantityWithheld+futureSafetyQuantityWithheld. Therefore,totalSafetyQuantityWithheld=9.totalShortageQuantity=0 is used as a dummy variable and always returns 0.
Availability without considering safety stock as totalAvailableQuantity -
totalShortageQuantity + totalSafetyStockWithheld = 9 - 0 + 9 =
18