User: alex clicked save for execute-procure-to-pay/cc-invoice-approval-process/Submit-the-invoice_JSONSchema.json

This commit is contained in:
demo 2022-10-31 19:26:42 +00:00
parent 6e82113f3d
commit d7d3de12c2
1 changed files with 61 additions and 51 deletions

View File

@ -1,54 +1,64 @@
{
"definitions": {
"currencyEnum": {
"title": "Currency",
"type": "string",
"anyOf": [
"options_from_task_data_var:enumerations_list"
]
}
},
"title": "Submit Invoice",
"description": "Information for submitting an invoice.",
"type": "object",
"properties": {
"invoice": {
"type": "object",
"title": "",
"properties": {
"contributorName": {
"type": "string",
"title": "Contributor Name"
},
"definitions": {
"currencyEnum": {
"title": "Currency",
"type": "string",
"anyOf": [
"options_from_task_data_var:enumerations_list"
]
}
},
"title": "Submit Invoice",
"description": "Information for submitting an invoice.",
"type": "object",
"required": [
"FilesAccept"
],
"properties": {
"invoice": {
"type": "object",
"title": "",
"properties": {
"contributorName": {
"type": "string",
"required": [
"contributorId",
"invoiceId",
"invoiceAmount",
"invoiceCurrency",
"dueDate"
],
"title": "Contributor Name"
},
"contributorId": {
"type": "integer",
"title": "Contributor Id",
"minLength": 2
},
"invoiceId": {
"type": "integer",
"title": "Invoice Id",
"minLength": 4
},
"invoiceAmount": {
"type": "number",
"title": "Invoice Amount"
},
"invoiceCurrency": {
"$ref": "#/definitions/currencyEnum",
"title": "Select Currency"
},
"dueDate": {
"type": "string",
"title": "Due Date"
}
}
},
"filesAccept": {
"type": "string",
"format": "data-url",
"title": "Upload Invoice PDF"
}
}
"contributorId": {
"type": "integer",
"title": "Contributor Id",
"minLength": 2
},
"invoiceId": {
"type": "integer",
"title": "Invoice Id",
"minLength": 4
},
"invoiceAmount": {
"type": "number",
"title": "Invoice Amount"
},
"invoiceCurrency": {
"$ref": "#/definitions/currencyEnum",
"title": "Select Currency"
},
"dueDate": {
"type": "string",
"title": "Due Date"
}
}
},
"filesAccept": {
"type": "string",
"format": "data-url",
"title": "Upload Invoice PDF"
}
}
}