diff --git a/manage-procurement/procurement/requisition-order-management/new-demand-request-procurement/submit-procurement-schema.json b/manage-procurement/procurement/requisition-order-management/new-demand-request-procurement/submit-procurement-schema.json new file mode 100644 index 00000000..169d4040 --- /dev/null +++ b/manage-procurement/procurement/requisition-order-management/new-demand-request-procurement/submit-procurement-schema.json @@ -0,0 +1,134 @@ +{ + "definitions": { + + "projectEnum": { + "title": "Project", + "type": "string", + "anyOf": [ + "options_from_task_data_var:dept_enum_list" + ] + } + }, + "title": "Submit New Demand Request-Procurement", + "description": "Submit a new demand request for the procurement of needed items. Does not include Travel or Compensation.", + "properties": { + "requestor": { + "type": "string", + "title": "Requestor" + }, + "project": { + "$ref": "#/definitions/projectEnum", + "title": "Project" + }, + "category": { + "type": "string", + "title": "Category", + "enum": [ + "Software & Licences", + "Learning & Development", + "Equipment" + ] + }, + "purpose": { + "maxLength": 250, + "type": "string", + "title": "Purpose" + }, + "criticality": { + "type": "string", + "title": " Criticality", + "enum": [ + "High", + "Medium", + "Low" + ] + }, + "vendor": { + "type": "string", + "title": "Vendor" + }, + "period": { + "type": "string", + "title": "Period" + }, + "payment-method": { + "type": "string", + "title": "Payment method", + "enum": [ + "Bank transfer", + "Crypto transfer", + "Debit Card", + "Reimbursement" + ] + } + }, + "dependencies": { + "category": { + "oneOf": [{ + "properties": { + "category": { + "enum": [ + "Software & Licences" + ] + }, + "sub-category": { + "title": "Sub Category", + "type": "string", + "enum": [ + "Licences", + "Subscriptions", + "Open Source" + ] + } + }, + "required": [ + "sub-category" + ] + }, + { + "properties": { + "category": { + "enum": [ + "Learning & Development" + ] + }, + "sub-category": { + "title": "Sub Category", + "type": "string", + "enum": [ + "Books", + "Courses", + "Online Conferences" + ] + } + }, + "required": [ + "sub-category" + ] + }, + { + "properties": { + "category": { + "enum": [ + "Equipment" + ] + }, + "sub-category": { + "title": "Sub Category", + "type": "string", + "enum": [ + "Laptops", + "Ledgers", + "Headset" + ] + } + }, + "required": [ + "sub-category" + ] + } + ] + } + }, + "required": [] +} \ No newline at end of file