Share via


RetailKitConfigurator.validateUOMReferences Method [AX 2012]

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

Syntax

private void validateUOMReferences()

Run On

Server

Exceptions

Exception Condition
Error

Throws exception if references without valid uom are found.

Remarks

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.

See Also

Reference

RetailKitConfigurator Class