{
  "header": {
    "id": "Receipt_DM",
    "modelType": "document",
    "modelVersion": "28.3.0",
    "locales": [
      {
        "code": "en"
      }
    ],
    "labels": [],
    "annotations": [
      {
        "name": "roles",
        "value": "admin,system,client"
      }
    ],
    "modelReferences": [
      {
        "alias": "CostTypes_TDM",
        "modelType": "document",
        "purpose": "typeDefinitions",
        "reference": "CostTypes_TDM"
      },
      {
        "alias": "Receiptlist_TDM",
        "modelType": "document",
        "purpose": "typeDefinitions",
        "reference": "Receiptlist_TDM"
      }
    ]
  },
  "content": {
    "modelInfo": {
      "name": "Receipt_DM"
    },
    "modelConfig": {
      "timeZone": "UTC",
      "decimalSeparator": ".",
      "conditionLanguage": {
        "code": "en_US"
      }
    },
    "modelRoot": {
      "rootGroups": [
        {
          "type": "Group",
          "id": "group_a2492",
          "name": "Receipt",
          "Group": {
            "repeatability": 1,
            "elements": [
              {
                "type": "Field",
                "id": "field_1a632",
                "name": "ReceiptNumber",
                "Field": {
                  "fieldType": {
                    "type": "NumberType",
                    "NumberType": {
                      "zeroNotAllowed": true
                    }
                  },
                  "label": [
                    {
                      "locale": "en",
                      "text": "Receipt Number"
                    }
                  ],
                  "requirednessConfig": {
                    "mode": "absoluteOrRelativeToNextRepAncestor"
                  }
                }
              },
              {
                "type": "Field",
                "id": "field_c6bac",
                "name": "CostType",
                "Field": {
                  "fieldType": {
                    "type": "TypeDefType",
                    "TypeDefType": {
                      "typeDefinitionId": "typedef_3b698fd5-3830-40f6-9b6b-06ea47e674a2"
                    }
                  },
                  "label": [
                    {
                      "locale": "en",
                      "text": "Cost Type"
                    }
                  ],
                  "requirednessConfig": {
                    "mode": "absoluteOrRelativeToNextRepAncestor"
                  }
                }
              },
              {
                "type": "Field",
                "id": "field_590be",
                "name": "InvoiceDate",
                "Field": {
                  "fieldType": {
                    "type": "DateType",
                    "DateType": {
                      "format": "yyyy-MM-dd"
                    }
                  },
                  "label": [
                    {
                      "locale": "en",
                      "text": "Invoice Date"
                    }
                  ],
                  "requirednessConfig": {
                    "mode": "absoluteOrRelativeToNextRepAncestor"
                  }
                }
              },
              {
                "type": "Rule",
                "id": "rule_b0119",
                "name": "InvoiceDateNotInFuture",
                "Rule": {
                  "errorEntityRelPath": "../InvoiceDate",
                  "errorCode": "Error rule_b0119",
                  "errorCondition": "FieldFilled(InvoiceDate) and [InvoiceDate] > Today",
                  "severity": "ERROR",
                  "errorMessage": [
                    {
                      "locale": "en",
                      "text": "Invoice date may not be in the future."
                    }
                  ]
                }
              },
              {
                "type": "Field",
                "id": "field_ed512",
                "name": "ContractItem",
                "Field": {
                  "fieldType": {
                    "type": "StringType"
                  },
                  "label": [
                    {
                      "locale": "en",
                      "text": "Contract Item"
                    }
                  ],
                  "requirednessConfig": {
                    "mode": "absoluteOrRelativeToNextRepAncestor"
                  }
                }
              },
              {
                "type": "Field",
                "id": "field_acbb7",
                "name": "Amount",
                "Field": {
                  "fieldType": {
                    "type": "TypeDefType",
                    "TypeDefType": {
                      "typeDefinitionId": "typedef_81e9cdd0-72e2-4d09-abd2-705798b50c9f"
                    }
                  },
                  "label": [
                    {
                      "locale": "en",
                      "text": "Amount"
                    }
                  ],
                  "requirednessConfig": {
                    "mode": "absoluteOrRelativeToNextRepAncestor"
                  }
                }
              }
            ]
          }
        }
      ]
    }
  }
}