W024: Create vendor
Creates a new vendor record. Triggered from the Vendors page, "New vendor".
Steps
-
Check name uniqueness. Case-insensitive, scoped to this org.
-
Insert the vendor. Call
Vendors.create.
Returns
The new vendor.
Business rules
- Names are unique per org.
Errors
ValidationError. Duplicate name.