haorenhui
2023-10-30 6d6cc10d9e8e242661da7fd655dec155a09d676c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Quintiq file version 2.0
#parent: #root
Method VerifyWhenSelected (
  ProductInStockingPointInPeriodPlanning pispipjan,
  ProductInStockingPointInPeriodPlanning pispipfeb,
  ProductInStockingPointInPeriodPlanning pispipmar
)
{
  Description: 'Check sales demand and fulfillment for the smart planning when not selecting the postponable demand'
  TextBody:
  [*
    this.Run().AssertEqual( 0.0, pispipjan.SalesDemandQuantity(), 'Expecting sales demand qty = 0 for ' + [String]pispipjan.Start() + pispipjan.ProductInStockingPoint_MP().Name() )
    this.Run().AssertEqual( 0.0, pispipfeb.SalesDemandQuantity(), 'Expecting sales demand qty = 0 for ' + [String]pispipfeb.Start() + pispipfeb.ProductInStockingPoint_MP().Name() )
    this.Run().AssertEqual( 1000.0, pispipmar.SalesDemandQuantity(), 'Expecting sales demand qty = 1000 for ' + [String]pispipmar.Start() + pispipmar.ProductInStockingPoint_MP().Name() )
    this.Run().AssertEqual( 1000.0, pispipmar.SalesDemandFulfilledQuantity(), 'Expecting sales demand fulfilled qty = 1000 for ' + [String]pispipmar.Start() + pispipmar.ProductInStockingPoint_MP().Name() )
  *]
  InterfaceProperties { Accessibility: 'Module' }
}