W052: Delete customer type
Removes a customer type that no customer references. Triggered from Settings, Customer types.
Steps
-
Check usage. Call
Customers.isCustomerTypeInUse. Refuse if any customer uses it. -
Delete the row. Call
Customers.deleteCustomerType.
Returns
Nothing.
Business rules
- In-use is blocking.
Errors
InUseError. One or more customers reference this type.