Skip to content

Commit

Permalink
Updated operations and locales
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafamat committed Oct 24, 2023
1 parent 2b67b56 commit 0d5c609
Show file tree
Hide file tree
Showing 22 changed files with 492 additions and 693 deletions.
290 changes: 2 additions & 288 deletions _integration/edoksis/edoksis.py

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions _templates/backlog.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"blo_sub_region": {
"bsonType": "string",
"title": "Sub Region",
"description": "Sub Region"
"description": "Sub region"
},
"blo_country": {
"bsonType": "string",
Expand All @@ -38,7 +38,7 @@
"blo_sub_brand": {
"bsonType": "string",
"title": "Sub Brand",
"description": "Sub Brand"
"description": "Sub brand"
},
"blo_prd_group": {
"bsonType": "string",
Expand Down Expand Up @@ -390,7 +390,7 @@
"blo_status"
],
"index": [["blo_status"]],
"unique": [["blo_status", "blo_order_no", "blo_sales_order_item"]],
"unique": [["blo_status", "blo_order_no", "blo_sales_order_item", "blo_dnn_no", "blo_dnn_item"]],
"sort": {
"_modified_at": -1
},
Expand Down Expand Up @@ -481,6 +481,7 @@
"links": [],
"fetchers": [],
"import": {
"enabled": true,
"purge": true,
"ignored": ["blo_dnn_item"]
}
Expand Down
4 changes: 3 additions & 1 deletion _templates/business.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@
"triggers": [],
"views": {},
"fetchers": [],
"import": {}
"import": {
"enabled": false
}
}
17 changes: 13 additions & 4 deletions _templates/customs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"description": "Customs ID",
"minLength": 3,
"maxLength": 16,
"pattern": "^[\\w|\\w$|\\W\\w|\\w\\W]{3,16}$"
"pattern": "^[\\w|\\w$|\\W\\w|\\w\\W]{3,16}$",
"permanent": true
},
"cum_name": {
"bsonType": "string",
Expand All @@ -15,19 +16,27 @@
"minLength": 1,
"maxLength": 64,
"pattern": "^[\\w|\\w$|\\W\\w|\\w\\W]{1,64}$"
},
"cum_is_active": {
"bsonType": "bool",
"title": "Active",
"default": true,
"description": "Active or not"
}
},
"required": ["cum_id", "cum_name"],
"index": [],
"index": [["cum_name"], ["cum_is_active"]],
"unique": [["cum_id"]],
"sort": {
"_modified_at": -1
"cum_id": 1
},
"parents": [],
"links": [],
"actions": [],
"triggers": [],
"views": {},
"fetchers": [],
"import": {}
"import": {
"enabled": false
}
}
110 changes: 9 additions & 101 deletions _templates/delivery.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
"description": "Delivery number",
"minLength": 10,
"maxLength": 16,
"pattern": "^[0-9A-Z-]{10,16}$"
"pattern": "^[0-9A-Z-]{10,16}$",
"permanent": true
},
"dnn_line_no": {
"bsonType": "string",
"title": "Line",
"description": "Line Number",
"minLength": 1,
"maxLength": 4,
"pattern": "^[0-9]{1,4}$"
"pattern": "^[0-9]{1,4}$",
"permanent": true
},
"dnn_status": {
"bsonType": "string",
Expand Down Expand Up @@ -365,7 +367,9 @@
],
"unique": [["dnn_no", "dnn_line_no"]],
"sort": {
"_modified_at": -1
"dnn_status": 1,
"dnn_no": 1,
"dnn_line_no": 1
},
"parents": [
{
Expand Down Expand Up @@ -594,103 +598,6 @@
"uniqueness": false,
"unique": [],
"_tags": ["#Managers", "#Administrators", "#Logistics", "#Operations", "#Touchpoint", "#Technoplatz"]
},
{
"id": "shipment",
"title": "Shipment",
"enabled": true,
"match": [
{
"key": "dnn_status",
"op": "eq",
"value": "60-ReadyToBeDelivered"
}
],
"set": [
{
"key": "dnn_status",
"value": "70-Delivered"
},
{
"key": "dnn_wayb_date",
"value": null
},
{
"key": "dnn_wayb_id",
"value": "$TIMESTAMP"
},
{
"key": "dnn_wayb_cname",
"value": null
},
{
"key": "dnn_wayb_cid",
"value": null
},
{
"key": "dnn_wayb_vid",
"value": null
},
{
"key": "dnn_wayb_no",
"value": null
},
{
"key": "dnn_wayb_ettn",
"value": null
}
],
"required": ["dnn_status", "dnn_wayb_id", "dnn_wayb_date", "dnn_wayb_cname", "dnn_wayb_cid", "dnn_wayb_vid"],
"readonly": ["dnn_status", "dnn_wayb_id", "dnn_wayb_no", "dnn_wayb_ettn"],
"one_click": false,
"icon": "bus",
"uniqueness": true,
"unique": ["dnn_acc_no"],
"_tags": ["#Managers", "#Administrators", "#Logistics", "#Operations", "#Touchpoint", "#Technoplatz"],
"apis": [
{
"id": "waybill-issue",
"enabled": true,
"url": "http://172.18.0.8/issue",
"headers": {
"Content-Type": "application/json"
},
"method": "post",
"map": {
"key": "dnn_wayb_id"
}
}
],
"notification": {
"notify": true,
"subject": "Delivery [70-Delivered]",
"body": "Hi,<br /><br />We would like to let you know that the attached DNs were shipped.",
"attachment": false,
"fields": [
"dnn_no",
"dnn_line_no",
"dnn_status",
"dnn_acc_no",
"dnn_acc_name",
"dnn_prd_no",
"dnn_prd_description",
"dnn_qty",
"dnn_wayb_id",
"dnn_wayb_date",
"dnn_wayb_cname",
"dnn_wayb_cid",
"dnn_wayb_vid",
"dnn_wayb_no",
"dnn_wayb_ettn"
],
"filter": [
{
"key": "dnn_status",
"op": "eq",
"value": "60-ReadyToBeDelivered"
}
]
}
}
],
"links": [],
Expand Down Expand Up @@ -1291,12 +1198,13 @@
},
"fetchers": [],
"import": {
"enabled": true,
"upsertable": false,
"upsertables": []
},
"queries": {
"query": true,
"cronjob": true,
"updatables": ["dnn_labeled", "dnn_label_info", "dnn_status"]
"updatables": ["dnn_labeled", "dnn_label_info", "dnn_status", "dnn_ship_type"]
}
}
44 changes: 44 additions & 0 deletions _templates/factory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"properties": {
"fac_id": {
"bsonType": "string",
"title": "ID",
"description": "Factory ID",
"minLength": 3,
"maxLength": 5,
"pattern": "^[A-Z0-9-]{3,5}$",
"caseType": "uppercase",
"permanent": true
},
"fac_country": {
"bsonType": "string",
"title": "Country",
"description": "Factory country",
"minLength": 3,
"maxLength": 16,
"pattern": "^[A-Za-z-]{3,16}$",
"permanent": true
},
"fac_is_active": {
"bsonType": "bool",
"title": "Active",
"default": false,
"description": "Active or not"
}
},
"required": ["fac_id", "fac_country"],
"index": [["fac_country"], ["fac_is_active"]],
"unique": [["fac_id"]],
"sort": {
"fac_id": 1
},
"parents": [],
"links": [],
"actions": [],
"triggers": [],
"views": {},
"fetchers": [],
"import": {
"enabled": false
}
}
4 changes: 3 additions & 1 deletion _templates/invoice.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@
"triggers": [],
"views": {},
"fetchers": [],
"import": {}
"import": {
"enabled": true
}
}
11 changes: 7 additions & 4 deletions _templates/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"minLength": 1,
"maxLength": 32,
"pattern": "^[A-Z0-9-]{1,32}$",
"caseType": "uppercase"
"caseType": "uppercase",
"permanent": true
},
"man_odi_no": {
"bsonType": "string",
Expand Down Expand Up @@ -80,7 +81,7 @@
"index": [["man_odi_no", "man_odi_sub_no"], ["man_odi_no"], ["man_odi_sub_no"], ["man_file_no"]],
"unique": [["man_no"]],
"sort": {
"_modified_at": -1
"_created_at": -1
},
"parents": [
{
Expand Down Expand Up @@ -118,7 +119,7 @@
{
"key": "dnn_status",
"op": "in",
"value": "20-OnCustoms,30-OnCustomsProcess"
"value": "20-OnCustoms"
},
{
"key": "dnn_odi_no",
Expand Down Expand Up @@ -311,7 +312,9 @@
],
"views": {},
"fetchers": [],
"import": {},
"import": {
"enabled": false
},
"queries": {
"query": true,
"cronjob": false,
Expand Down
4 changes: 3 additions & 1 deletion _templates/order.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,7 @@
"views": {},
"links": [],
"fetchers": [],
"import": {}
"import": {
"enabled": true
}
}
Loading

0 comments on commit 0d5c609

Please sign in to comment.