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' }
|
}
|