陈清红
2025-04-14 880f3c0257eeb8c37761d484258fdd102a369a19
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 VerifyWhenNotSelected (
  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( 1000.0, pispipjan.SalesDemandQuantity(), 'Expecting sales demand qty = 1000 for ' + [String]pispipjan.Start() + pispipjan.ProductInStockingPoint_MP().Name() )
    this.Run().AssertEqual( 0.0, pispipfeb.SalesDemandQuantity(), 'Expecting sales demand qty = 1000 for ' + [String]pispipfeb.Start() + pispipfeb.ProductInStockingPoint_MP().Name() )
    this.Run().AssertEqual( 0.0, pispipmar.SalesDemandQuantity(), 'Expecting sales demand qty = 1000 for ' + [String]pispipmar.Start() + pispipmar.ProductInStockingPoint_MP().Name() )
    this.Run().AssertEqual( 1000.0, pispipjan.SalesDemandUnfulFilledQuantity(), 'Expecting sales demand unfulfilled qty = 1000 for ' + [String]pispipjan.Start() + pispipjan.ProductInStockingPoint_MP().Name() )
  *]
  InterfaceProperties { Accessibility: 'Module' }
}