
{
    "modelSettings" : {
      "context" : "user",
      "userType": "", 
      "strictModel" : false,
      "modelName" : "Invoice",
      "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, Awaiting Approval, Awaiting Payment, Paid, Repeating",
            "statusId" : 0,
            "onlinePayment" : false
          }

      },
  
      "formFieldsEntities" : {
        
        "invoiceDetails": {
          "date": {
            "name": "date",
            "question": "Date Created",
            "questionShort": "Date",
            "answerType": "text",
            "tooltip": "Please provide date of invoice creation.",
            "answerOptions": [],
            "answerOptionsType": null,
            "answerColumns": [],
            "validations": ["required"],
            "type": "date"
          },
          "expiryDate": {
            "name": "expiryDate",
            "question": "Due Date",
            "questionShort": "Due Date",
            "answerType": "text",
            "tooltip": "What is your the invoice 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"
          },
          "notes": {
            "name": "notes",
            "question": "History Notes",
            "questionShort": "History Notes",
            "answerType": "text",
            "tooltip": "Provide History notes.",
            "answerOptions": [],
            "answerOptionsType": null,
            "answerColumns": [],
            "validations": [],
            "type": "text-area"
          }
        },

        "items" : {
          "repeatable" : true
        },

        "clientDetails" : {
        }
      }
    }
  
  }