| Quintiq file version 2.0 | 
| #parent: #root | 
| Method IsSameCharacteristic ( | 
|   CustomerOrders customerorders | 
| ) as Boolean | 
| { | 
|   Description: 'All customer ordres are from same characteristic' | 
|   TextBody: | 
|   [* | 
|     customerorder := customerorders.Element( 0 ); | 
|     return forall( customerorders, Elements, co,  | 
|                    co.ProductID() = customerorder.ProductID()  | 
|                    and co.StockingPointID()= customerorder.StockingPointID() | 
|                    and co.SalesSegmentName() = customerorder.SalesSegmentName() | 
|                    and co.Quantity() = customerorder.Quantity() | 
|                    and co.IsExcludedFromFulfillmentKPIUser() = customerorder.IsExcludedFromFulfillmentKPIUser() | 
|                    and co.CurrencyID() = customerorder.CurrencyID() | 
|                    and co.StartDate() = customerorder.StartDate() | 
|                    and co.EndDate() = customerorder.EndDate() | 
|                    and co.UnitOfMeasureName() = customerorder.UnitOfMeasureName() | 
|                    and co.Price() = customerorder.Price() ) | 
|   *] | 
|   InterfaceProperties { Accessibility: 'Module' } | 
| } |