W073: Delete material type
Removes a material type that no material references. Triggered from Settings, Material types.
Steps
-
Check usage. Call
Materials.isMaterialTypeInUse. -
Delete the row. Call
Materials.deleteMaterialTypeif not in use.
Returns
Nothing.
Business rules
- In-use is blocking.
Errors
InUseError. One or more materials reference this type.