diff --git a/backend/app/plugins/wiaas/includes/db-updates/data/delivery-forms/delivery_process_smartoffice_implementation.json b/backend/app/plugins/wiaas/includes/db-updates/data/delivery-forms/delivery_process_smartoffice_implementation.json new file mode 100644 index 0000000..b31a722 --- /dev/null +++ b/backend/app/plugins/wiaas/includes/db-updates/data/delivery-forms/delivery_process_smartoffice_implementation.json @@ -0,0 +1,377 @@ +{ + "0": { + "title": "DELIVERY PROCESS: SmartOffice implementation", + "description": " SmartOffice implementation", + "labelPlacement": "top_label", + "descriptionPlacement": "below", + "button": { + "type": "text", + "text": "Submit", + "imageUrl": "" + }, + "fields": [ + { + "type": "number", + "id": 1, + "label": "order-id", + "adminLabel": "order-id", + "isRequired": false, + "size": "medium", + "errorMessage": "", + "visibility": "visible", + "inputs": null, + "numberFormat": "decimal_dot", + "formId": 6, + "description": "", + "allowsPrepopulate": true, + "inputMask": false, + "inputMaskValue": "", + "inputType": "", + "labelPlacement": "", + "descriptionPlacement": "", + "subLabelPlacement": "", + "placeholder": "", + "cssClass": "", + "inputName": "order-id", + "noDuplicates": false, + "defaultValue": "", + "choices": "", + "conditionalLogic": "", + "enableCalculation": false, + "rangeMin": "", + "rangeMax": "", + "productField": "", + "multipleFiles": false, + "maxFiles": "", + "calculationFormula": "", + "calculationRounding": "", + "disableQuantity": false, + "displayAllCategories": false, + "useRichTextEditor": false, + "displayOnly": "", + "enablePrice": "" + }, + { + "type": "workflow_user", + "id": 2, + "label": "customer-id", + "adminLabel": "customer-id", + "isRequired": false, + "size": "medium", + "errorMessage": "", + "visibility": "visible", + "inputs": null, + "choices": [ + { + "value": 2, + "text": "BIlal Catic" + }, + { + "value": 3, + "text": "CL CL" + }, + { + "value": 5, + "text": "wdw wfd" + }, + { + "value": 4, + "text": "wdwCL CL" + }, + { + "value": 1, + "text": "wpUser" + } + ], + "formId": 6, + "description": "", + "allowsPrepopulate": true, + "inputMask": false, + "inputMaskValue": "", + "inputType": "", + "labelPlacement": "", + "descriptionPlacement": "", + "subLabelPlacement": "", + "placeholder": "", + "cssClass": "", + "inputName": "customer-id", + "noDuplicates": false, + "defaultValue": "", + "conditionalLogic": "", + "failed_validation": "", + "productField": "", + "multipleFiles": false, + "maxFiles": "", + "calculationFormula": "", + "calculationRounding": "", + "enableCalculation": "", + "disableQuantity": false, + "displayAllCategories": false, + "useRichTextEditor": false, + "displayOnly": "", + "enablePrice": "", + "gravityflowUsersRoleFilter": "" + } + ], + "version": "2.3.2", + "id": 6, + "useCurrentUserAsAuthor": true, + "postContentTemplateEnabled": false, + "postTitleTemplateEnabled": false, + "postTitleTemplate": "", + "postContentTemplate": "", + "lastPageButton": null, + "pagination": null, + "firstPageCssClass": null, + "is_active": "1", + "date_created": "2018-10-17 10:18:04", + "is_trash": "0", + "notifications": [ + { + "id": "5b5f7ae4baced", + "to": "{admin_email}", + "name": "Admin Notification", + "event": "form_submission", + "toType": "email", + "subject": "New submission from {form_title}", + "message": "{all_fields}", + "isActive": false + } + ], + "confirmations": [ + { + "id": "5b5f7ae4bb79e", + "name": "Default Confirmation", + "isDefault": true, + "type": "message", + "message": "Thanks for contacting us! We will get in touch with you shortly.", + "url": "", + "pageId": "", + "queryString": "" + } + ], + "subLabelPlacement": "below", + "cssClass": "", + "enableHoneypot": false, + "enableAnimation": false, + "save": { + "enabled": false, + "button": { + "type": "link", + "text": "Save and Continue Later" + } + }, + "limitEntries": false, + "limitEntriesCount": "", + "limitEntriesPeriod": "", + "limitEntriesMessage": "", + "scheduleForm": false, + "scheduleStart": "", + "scheduleStartHour": "", + "scheduleStartMinute": "", + "scheduleStartAmpm": "", + "scheduleEnd": "", + "scheduleEndHour": "", + "scheduleEndMinute": "", + "scheduleEndAmpm": "", + "schedulePendingMessage": "", + "scheduleMessage": "", + "requireLogin": false, + "requireLoginMessage": "", + "feeds": { + "gravityflow": [ + { + "id": "13", + "form_id": "6", + "is_active": "1", + "feed_order": "0", + "meta": { + "step_name": "Validate customer configuration information", + "description": "Validate customer configuration information", + "step_type": "wiaas_delivery_step", + "step_highlight": "0", + "step_highlight_type": "color", + "step_highlight_color": "#dd3333", + "feed_condition_conditional_logic": "0", + "feed_condition_conditional_logic_object": [], + "scheduled": "0", + "schedule_type": "delay", + "schedule_date": "", + "schedule_delay_offset": "", + "schedule_delay_unit": "hours", + "schedule_date_field_offset": "0", + "schedule_date_field_offset_unit": "hours", + "schedule_date_field_before_after": "after", + "instructionsEnable": "0", + "instructionsValue": "", + "target_form_id": 3, + "store_new_entry_idEnable": "1", + "new_entry_id_field": "6", + "destination_complete": "next" + }, + "addon_slug": "gravityflow", + "event_type": null + }, + { + "id": "14", + "form_id": "6", + "is_active": "1", + "feed_order": "0", + "meta": { + "step_name": "Wait for installation to be scheduled and confirmed", + "description": "Wait for installation to be scheduled and confirmed", + "step_type": "wiaas_delivery_step", + "step_highlight": "0", + "step_highlight_type": "color", + "step_highlight_color": "#dd3333", + "feed_condition_conditional_logic": "0", + "feed_condition_conditional_logic_object": [], + "scheduled": "0", + "schedule_type": "delay", + "schedule_date": "", + "schedule_delay_offset": "", + "schedule_delay_unit": "hours", + "schedule_date_field_offset": "0", + "schedule_date_field_offset_unit": "hours", + "schedule_date_field_before_after": "after", + "instructionsEnable": "0", + "instructionsValue": "", + "target_form_id": 4, + "store_new_entry_idEnable": "0", + "new_entry_id_field": "", + "destination_complete": "next" + }, + "addon_slug": "gravityflow", + "event_type": null + }, + { + "id": "15", + "form_id": "6", + "is_active": "1", + "feed_order": "0", + "meta": { + "step_name": "Installation", + "description": " Installation", + "step_type": "wiaas_delivery_step", + "step_highlight": "0", + "step_highlight_type": "color", + "step_highlight_color": "#dd3333", + "feed_condition_conditional_logic": "0", + "feed_condition_conditional_logic_object": [], + "scheduled": "0", + "schedule_type": "delay", + "schedule_date": "", + "schedule_delay_offset": "", + "schedule_delay_unit": "hours", + "schedule_date_field_offset": "0", + "schedule_date_field_offset_unit": "hours", + "schedule_date_field_before_after": "after", + "instructionsEnable": "0", + "instructionsValue": "", + "target_form_id": 4, + "store_new_entry_idEnable": "0", + "new_entry_id_field": "", + "destination_complete": "next" + }, + "addon_slug": "gravityflow", + "event_type": null + }, + { + "id": "16", + "form_id": "6", + "is_active": "1", + "feed_order": "0", + "meta": { + "step_name": "Customer acceptance", + "description": "Customer acceptance", + "step_type": "wiaas_delivery_step", + "step_highlight": "0", + "step_highlight_type": "color", + "step_highlight_color": "#dd3333", + "feed_condition_conditional_logic": "0", + "feed_condition_conditional_logic_object": [], + "scheduled": "0", + "schedule_type": "delay", + "schedule_date": "", + "schedule_delay_offset": "", + "schedule_delay_unit": "hours", + "schedule_date_field_offset": "0", + "schedule_date_field_offset_unit": "hours", + "schedule_date_field_before_after": "after", + "target_form_id": 1, + "store_new_entry_idEnable": "1", + "new_entry_id_field": "7", + "destination_complete": "next" + }, + "addon_slug": "gravityflow", + "event_type": null + }, + { + "id": "17", + "form_id": "6", + "is_active": "1", + "feed_order": "0", + "meta": { + "step_name": "Customer training", + "description": "Customer training", + "step_type": "wiaas_delivery_step", + "step_highlight": "0", + "step_highlight_type": "color", + "step_highlight_color": "#dd3333", + "feed_condition_conditional_logic": "0", + "feed_condition_conditional_logic_object": [], + "scheduled": "0", + "schedule_type": "delay", + "schedule_date": "", + "schedule_delay_offset": "", + "schedule_delay_unit": "hours", + "schedule_date_field_offset": "0", + "schedule_date_field_offset_unit": "hours", + "schedule_date_field_before_after": "after", + "instructionsEnable": "0", + "instructionsValue": "", + "target_form_id": 4, + "store_new_entry_idEnable": "0", + "new_entry_id_field": "", + "destination_complete": "next", + "feedName": " - Copy 1" + }, + "addon_slug": "gravityflow", + "event_type": null + }, + { + "id": "18", + "form_id": "6", + "is_active": "1", + "feed_order": "0", + "meta": { + "step_name": "Finalise implementation phase", + "description": "Finalise implementation phase", + "step_type": "wiaas_delivery_step", + "step_highlight": "0", + "step_highlight_type": "color", + "step_highlight_color": "#dd3333", + "feed_condition_conditional_logic": "0", + "feed_condition_conditional_logic_object": [], + "scheduled": "0", + "schedule_type": "delay", + "schedule_date": "", + "schedule_delay_offset": "", + "schedule_delay_unit": "hours", + "schedule_date_field_offset": "0", + "schedule_date_field_offset_unit": "hours", + "schedule_date_field_before_after": "after", + "instructionsEnable": "0", + "instructionsValue": "", + "is_visible_to_customer": "1", + "target_form_id": "4", + "destination_complete": "next" + }, + "addon_slug": "gravityflow", + "event_type": null + } + ] + } + }, + "version": "2.3.2" +} \ No newline at end of file diff --git a/backend/app/plugins/wiaas/includes/db-updates/wiaas-db-update-general.php b/backend/app/plugins/wiaas/includes/db-updates/wiaas-db-update-general.php index b30421a..5c6086e 100644 --- a/backend/app/plugins/wiaas/includes/db-updates/wiaas-db-update-general.php +++ b/backend/app/plugins/wiaas/includes/db-updates/wiaas-db-update-general.php @@ -30,7 +30,8 @@ function wiaas_db_update_add_delivery_process_forms() { $action_type_forms_ids_mappings = array(); $process_forms_files = array( - 'delivery_process_normal_delivery_form' + 'delivery_process_normal_delivery_form', + 'delivery_process_smartoffice_implementation' ); $created_forms = array();