admin
2025-01-22 7e31442f0e9b07764e9c6a9680d3d4aeba5fe1de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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' }
}