fix(crm): the CompanyType variant is 'client', not 'customer' #56
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
psa-systems/mokosh-apps!56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/crm-ops"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
mokosh-server's CompanyType enum lists Client / Prospect / Vendor /
Partner. The client side had the wrong tag in three places:
Server rejected every create with HTTP 422:
'Failed to deserialize the JSON body into the target type:
company_type: unknown variant customer, expected one of
client, prospect, vendor, partner'
Switch every site to 'client' / 'Client'. The badge-color match
arm flips from 'Customer' -> Green to 'Client' -> Green to match
the new humanized label.
Drive-by: also corrected the doc comment that listed the wrong
set of valid tags.
mokosh-server's CompanyType enum lists Client / Prospect / Vendor / Partner. The client side had the wrong tag in three places: - humanize_company_type returned 'Customer' for tag 'customer'. - CompanyForm defaulted new companies to company_type='customer'. - The Companies list dropdown offered ('customer', 'Customer'). Server rejected every create with HTTP 422: 'Failed to deserialize the JSON body into the target type: company_type: unknown variant customer, expected one of client, prospect, vendor, partner' Switch every site to 'client' / 'Client'. The badge-color match arm flips from 'Customer' -> Green to 'Client' -> Green to match the new humanized label. Drive-by: also corrected the doc comment that listed the wrong set of valid tags.