What you see
- Create contract stays greyed out.
- Or a field shows a message, or saving shows one of:
- "Contact person and phone are required"
- "A valid start and end date are required"
- "Add at least one machine with a name"
- "Warranty contracts are only for machines installed by us. Remove external machines or change the type."
- "Invalid contract type"
- "You cannot create or change priced documents."
- "Failed to create contract"
- Or the count reads "[number] contract(s) created, [number] failed".
Why it happens
| Message | Why |
|---|---|
| Greyed-out Create contract | A required field is empty: Contact person, Contact phone, Address (with its map pin), Machine / model on every machine, Start date or End date. Or a warranty machine is not installed by you. |
| "Contact person name is required", "Must be at least 2 characters" | Contact person is empty or too short. Only letters, spaces and . - ' can be typed. |
| "Contact phone number is required" | The phone has fewer than 5 digits. |
| "Site location is required, use 'Use my location' or pin on map" | The address needs both the text and a point on the map. |
| "Machine / model name is required", "Add at least one machine with a name" | A machine block has no name. |
| "End date must be after start date", "A valid start and end date are required" | The dates are missing or the wrong way round. |
| "Must be at least 1 visit per year", "Amount cannot be negative" | Visits per year is below 1, or Cost below 0. |
| "Warranty contracts are for your own installations." and the server message about external machines | A warranty is only for machines whose Installed by is "Us". |
| "You cannot create or change priced documents." | You cannot see selling prices. |
| "[number] failed" | Some machines were saved and others were not. |
What to do
- Fill in every required field. Each one is described in New contract and Edit contract: every field.
- For a warranty, set every machine's Installed by to "Us (our installation)", or switch the type to Annual Maintenance Contract or Service contract.
- For "You cannot create or change priced documents.", see New contract, Renew, edit or delete is missing, or amounts show Restricted.
- For "[number] failed", open Contracts, see which machines have a contract, and add the others again.
If it still happens
For "Failed to create contract" or "Invalid contract type", reload the page and fill in the form again. If it is still refused, submit a request with the client, the type and the message.
