
{
    "modelSettings" : {
      "context" : "user",
      "userType": "", 
      "strictModel" : false,
      "modelName" : "Quote",
      "service" : "payments",
      "access_roles" : {"admin": ["READ", "ALL"], "owner": ["WRITE"]},
      "controlAccess" : false,
      "encryptedModels" : []
    },
  
    "modelData" : {
      "systemManagedEntities" : {

          "invoiceDetails" : {
            "quoteNumber" : "MSB-56357",
            "referenceNumber" : "",
            "total" : 0,
            "vatTax" : 0,
            "status" : "Draft, Sent, Declined, Accepted, Invoiced, Paid, Reversed",
            "statusId" : 0,
            "onlinePayment" : false
          }

      },
  
      "formFieldsEntities" : {
        
        "invoiceDetails": {
            "date": {
                "name": "date",
                "question": "Date Created",
                "questionShort": "Date",
                "answerType": "text",
                "tooltip": "Please provide date of quote creation.",
                "answerOptions": [],
                "answerOptionsType": null,
                "answerColumns": [],
                "validations": ["required"],
                "type": "date"
              },
              "expiryDate": {
                "name": "expiryDate",
                "question": "Due Date",
                "questionShort": "Due Date",
                "answerType": "text",
                "tooltip": "What is the quote due date?",
                "answerOptions": [],
                "answerOptionsType": null,
                "answerColumns": [],
                "validations": ["required"],
                "type": "number"
              },
              "accountType": {
                "name": "accountType",
                "question": "Account",
                "questionShort": "Account",
                "answerType": "text",
                "tooltip": "Account type of the quote",
                "answerOptions": [
                    {
                        "id": "0",
                        "value": "Sale of Goods"
                    },
    
                    {
                        "id": "1",
                        "value": "Sale of Digital Content"
                    },
    
                    {
                        "id": "2",
                        "value": "Services Rendering"
                    }
                ],
                "answerOptionsType": null,
                "answerColumns": [],
                "validations": ["required"],
                "type": "dropdown"
              },
              "taxType": {
                "name": "taxType",
                "question": "Amounts are",
                "questionShort": "Amounts are",
                "answerType": "text",
                "tooltip": "Is vat included in the amounts",
                "answerOptions": [
                    {
                        "id": "0",
                        "value": "Vat Tax Exclusive"
                    },
    
                    {
                        "id": "1",
                        "value": "Vat Tax Inclusive"
                    },
    
                    {
                        "id": "2",
                        "value": "No Tax"
                    }
                ],
                "answerOptionsType": null,
                "answerColumns": [],
                "validations": ["required"],
                "type": "dropdown"
              },
              "title": {
                "name": "title",
                "question": "Quote Title",
                "questionShort": "Quote Title",
                "answerType": "text",
                "tooltip": "Quote Title.",
                "answerOptions": [],
                "answerOptionsType": null,
                "answerColumns": [],
                "validations": [],
                "type": "text"
              },
              "summary": {
                "name": "summary",
                "question": "Summary of Quote",
                "questionShort": "Summary of Quote",
                "answerType": "text",
                "tooltip": "Summary of Quote.",
                "answerOptions": [],
                "answerOptionsType": null,
                "answerColumns": [],
                "validations": [],
                "type": "text"
              },
              "notes": {
                "name": "notes",
                "question": "History Notes",
                "questionShort": "History Notes",
                "answerType": "text",
                "tooltip": "Provide History notes.",
                "answerOptions": [],
                "answerOptionsType": null,
                "answerColumns": [],
                "validations": [],
                "type": "text-area"
              },
            "termsOfConditions": {
                "name": "termsOfConditions",
                "question": "Terms",
                "questionShort": "Terms",
                "answerType": "text",
                "tooltip": "Please provide any terms and conditions applying to the quote",
                "answerOptions": [],
                "answerOptionsType": null,
                "answerColumns": [],
                "validations": ["required"],
                "type": "text"
            }
        },

        "items" : {
          "repeatable" : true
        },

        "clientDetails" : {
        }
      }
    }
  
  }