| Quintiq file version 2.0 | 
| #parent: #root | 
| Function CalcInventoryLevelEnd | 
| { | 
|   Description: 'Sum of all inventory end for the related product in stocking point in periods' | 
|   TextBody: | 
|   [* | 
|     // soh yee Sep-18-2015 (modified) | 
|      | 
|     value := sum( this, RootProductInStockingPointInPeriod, pispip, | 
|                   not pispip.ProductInStockingPoint_MP().IsNegativeInventoryAllowed() | 
|                   and not pispip.ProductInStockingPoint_MP().IsExcluded(), | 
|                   pispip.InventoryLevelEndSPUoM() ); | 
|      | 
|     this.InventoryLevelEnd( value ); | 
|   *] | 
| } |