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
Quintiq file version 2.0
#parent: #root
Method VerifySupplyChainParametersNumber (
  MacroPlan macroplan,
  Number expectedcurrencies,
  Number expecteduoms
)
{
  Description: 'Verify supply chain parameters data either exist or dont.'
  TextBody:
  [*
    // Counter all my currencies and uom
    actualcurrencies := macroplan.Currency_MP( relsize );
    actualuoms := macroplan.UnitOfMeasure_MP( relsize );
    
    // Check the number of currencies imported
    this.Run().AssertEqual( expectedcurrencies, actualcurrencies, 'The number of currency ' + [String]actualcurrencies + ' is not matching Carco 1.0 Base number of currency ' +[String]expectedcurrencies + '.' );
    this.Run().AssertEqual( expecteduoms, actualuoms, 'The number of uom ' + [String]actualuoms + ' is not matching Carco 1.0 Base number of uom ' +[String]expecteduoms + '.' );
  *]
  InterfaceProperties { Accessibility: 'Module' }
}