Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method VerifyCustomerOrder ( 
 | 
  Product_MP expectedproduct, 
 | 
  StockingPoint_MP expectedstockingpoint, 
 | 
  Date expectedstartdate, 
 | 
  Real expectedquantity, 
 | 
  Real expectedprice, 
 | 
  String expectedpriority, 
 | 
  String expectedsalessegmentname, 
 | 
  String expectedcurrencyname, 
 | 
  String expecteduom, 
 | 
  Boolean expectedisexcludedfromfulfillmentkpi, 
 | 
  String expectedcustomername, 
 | 
  String expectedcustomerid, 
 | 
  String expectedorderid, 
 | 
  String expectedorderlineid, 
 | 
  Boolean expectedisfornetting, 
 | 
  Boolean expectedisfirmed, 
 | 
  CustomerOrder customerorder, 
 | 
  String displaytext 
 | 
) 
 | 
{ 
 | 
  Description: 'Verify customer order data  after updated' 
 | 
  TextBody: 
 | 
  [* 
 | 
    this.Run().AssertEqual( expectedproduct.Name(), customerorder.Product_MP().Name(), "Product is updated wrongly" + displaytext ); 
 | 
    this.Run().AssertEqual( expectedstockingpoint.Name(), customerorder.StockingPoint_MP().Name(), "Stockingpoint is updated wrongly" + displaytext ) 
 | 
    this.Run().AssertEqual( expectedstartdate, customerorder.StartDate(), "Start date is updated wrongly" + displaytext ); 
 | 
    this.Run().AssertEqual( expectedquantity, customerorder.Quantity(), "Quantity is updated wrongly" + displaytext ); 
 | 
    this.Run().AssertEqual( expectedprice, customerorder.Price(), "Price is updated wrongly" + displaytext ); 
 | 
    this.Run().AssertEqual( expectedpriority, customerorder.PriorityName(), "Priority is updated wrongly" + displaytext ); 
 | 
    this.Run().AssertEqual( expectedsalessegmentname, customerorder.SalesSegmentName(), "Sales segment is updated wrongly" + displaytext ); 
 | 
    this.Run().AssertEqual( expectedcurrencyname, customerorder.CurrencyID(), "Currency is updated wrongly" + displaytext ); 
 | 
    this.Run().AssertEqual( expecteduom, customerorder.UnitOfMeasureName(), "UOM is updated wrongly" + displaytext); 
 | 
    this.Run().AssertEqual( expectedisexcludedfromfulfillmentkpi, customerorder.IsExcludedFromFulfillmentKPI(), "Is exclude from fulfillment KPI is updated wrongly" + displaytext ); 
 | 
    this.Run().AssertEqual( expectedcustomername, customerorder.CustomerName(), "Customer name is updated wrongly" + displaytext ); 
 | 
    this.Run().AssertEqual( expectedcustomerid, customerorder.CustomerID(), "Customer ID is updated wrongly" + displaytext ); 
 | 
    this.Run().AssertEqual( expectedorderid, customerorder.OrderID(), "Order ID is updated wrongly" + displaytext); 
 | 
    this.Run().AssertEqual( expectedisfornetting, customerorder.IsEligibleForNetting(), "Is elgible for netting is updated wrongly" + displaytext ); 
 | 
    this.Run().AssertEqual( expectedisfirmed, customerorder.IsFirmed(),"Is firmed is updated wrongly" + displaytext); 
 | 
  *] 
 | 
  InterfaceProperties { Accessibility: 'Module' } 
 | 
} 
 |