RetailKitConfigurator.validateUOMReferences Method [AX 2012]

validates if RetailKitComponent and RetailKitComponentSubstitute have valid unit of measure reference.

private void validateUOMReferences()

Run On

Server

ExceptionCondition
Error

Throws exception if references without valid uom are found.

When adding product to a component line using RetailAddItems picker form, if the default uom isn't set in inventory management parameters, then the form saves the unitofmeasure of the component line as 0, hence check has to be made if uom referenes in component and substitute tables are valid.

This check is done before approving the kit, as user can not edit such properties once kit is approved.

Show: