yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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' }
}