@things-factory/operato-hub 4.3.156 → 4.3.161
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-server/routers/api/restful-apis/unstable/add-release-order.js +1 -1
- package/dist-server/routers/api/restful-apis/v1/warehouse/add-release-order.js +1 -1
- package/dist-server/routers/xilnex-router.js +1 -1
- package/package.json +55 -55
- package/server/routers/api/restful-apis/unstable/add-release-order.ts +1 -1
- package/server/routers/api/restful-apis/v1/warehouse/add-release-order.ts +1 -1
- package/server/routers/xilnex-router.ts +1 -1
|
@@ -852,7 +852,7 @@ async function assignToInventory(orderProducts, customerBizplace, context, tx) {
|
|
|
852
852
|
INNER JOIN "products" "p" ON "p"."id"="iv"."product_id"
|
|
853
853
|
WHERE case when coalesce("iv"."locked_qty",0) < 0 then 0 else ("iv"."qty" - coalesce("iv"."locked_qty",0)) end > 0 AND
|
|
854
854
|
"iv"."domain_id" = $2 AND "iv"."bizplace_id" = $3 AND "iv"."packing_type" = $4 AND "iv"."packing_size" = $5 AND "iv"."product_id" = $6 AND "iv"."status" = $7 AND "loc"."type" NOT IN ($8, $9)
|
|
855
|
-
AND "iv"."obsolete" = false AND case when "iv"."expiration_date" is not null and "p"."
|
|
855
|
+
AND "iv"."obsolete" = false AND case when "iv"."expiration_date" is not null and "p"."shelf_life" is not null then CURRENT_DATE < "iv"."expiration_date" - "p"."shelf_life" else true end
|
|
856
856
|
${queryStrings.query.length > 0 ? `AND ${queryStrings.join(' AND ')}` : ''}
|
|
857
857
|
ORDER BY ${sortQuery}
|
|
858
858
|
)
|
|
@@ -760,7 +760,7 @@ async function assignToInventory(orderProducts, customerBizplace, context, tx) {
|
|
|
760
760
|
INNER JOIN "products" "p" ON "p"."id"="iv"."product_id"
|
|
761
761
|
WHERE case when coalesce("iv"."locked_qty",0) < 0 then 0 else ("iv"."qty" - coalesce("iv"."locked_qty",0)) end > 0 AND
|
|
762
762
|
"iv"."domain_id" = $2 AND "iv"."bizplace_id" = $3 AND "iv"."packing_type" = $4 AND "iv"."packing_size" = $5 AND "iv"."product_id" = $6 AND "iv"."status" = $7 AND "loc"."type" NOT IN ($8, $9)
|
|
763
|
-
AND "iv"."obsolete" = false AND case when "iv"."expiration_date" is not null and "p"."
|
|
763
|
+
AND "iv"."obsolete" = false AND case when "iv"."expiration_date" is not null and "p"."shelf_life" is not null then CURRENT_DATE < "iv"."expiration_date" - "p"."shelf_life" else true end
|
|
764
764
|
${queryStrings.query.length > 0 ? `AND ${queryStrings.join(' AND ')}` : ''}
|
|
765
765
|
ORDER BY ${sortQuery}
|
|
766
766
|
)
|
|
@@ -978,7 +978,7 @@ async function assignToInventory(orderProducts, customerBizplace, warehouseDomai
|
|
|
978
978
|
INNER JOIN "products" "p" ON "p"."id"="iv"."product_id"
|
|
979
979
|
WHERE case when coalesce("iv"."locked_qty",0) < 0 then 0 else ("iv"."qty" - coalesce("iv"."locked_qty",0)) end > 0 AND
|
|
980
980
|
"iv"."domain_id" = $2 AND "iv"."bizplace_id" = $3 AND "iv"."packing_type" = $4 AND "iv"."packing_size" = $5 AND "iv"."product_id" = $6 AND "iv"."status" = $7 AND "loc"."type" NOT IN ($8, $9)
|
|
981
|
-
AND "iv"."obsolete" = false AND case when "iv"."expiration_date" is not null and "p"."
|
|
981
|
+
AND "iv"."obsolete" = false AND case when "iv"."expiration_date" is not null and "p"."shelf_life" is not null then CURRENT_DATE < "iv"."expiration_date" - "p"."shelf_life" else true end
|
|
982
982
|
${queryStrings.query.length > 0 ? `AND ${queryStrings.join(' AND ')}` : ''}
|
|
983
983
|
ORDER BY ${sortQuery}
|
|
984
984
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-hub",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.161",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -55,67 +55,67 @@
|
|
|
55
55
|
"@operato/scene-tab": "^0.1.8",
|
|
56
56
|
"@operato/scene-table": "^0.1.8",
|
|
57
57
|
"@operato/scene-wheel-sorter": "^0.1.8",
|
|
58
|
-
"@things-factory/api": "^4.3.
|
|
59
|
-
"@things-factory/apptool-ui": "^4.3.
|
|
60
|
-
"@things-factory/attachment-base": "^4.3.
|
|
61
|
-
"@things-factory/auth-base": "^4.3.
|
|
62
|
-
"@things-factory/auth-ui": "^4.3.
|
|
63
|
-
"@things-factory/biz-base": "^4.3.
|
|
64
|
-
"@things-factory/biz-ui": "^4.3.
|
|
65
|
-
"@things-factory/board-service": "^4.3.
|
|
66
|
-
"@things-factory/board-ui": "^4.3.
|
|
67
|
-
"@things-factory/code-ui": "^4.3.
|
|
68
|
-
"@things-factory/component-ui": "^4.3.
|
|
69
|
-
"@things-factory/context-ui": "^4.3.
|
|
70
|
-
"@things-factory/document-template-ui": "^4.3.
|
|
71
|
-
"@things-factory/export-ui": "^4.3.
|
|
72
|
-
"@things-factory/export-ui-csv": "^4.3.
|
|
73
|
-
"@things-factory/export-ui-excel": "^4.3.
|
|
74
|
-
"@things-factory/geography": "^4.3.
|
|
75
|
-
"@things-factory/grist-ui": "^4.3.
|
|
76
|
-
"@things-factory/help": "^4.3.
|
|
77
|
-
"@things-factory/i18n-base": "^4.3.
|
|
78
|
-
"@things-factory/import-ui": "^4.3.
|
|
79
|
-
"@things-factory/import-ui-excel": "^4.3.
|
|
80
|
-
"@things-factory/integration-accounting": "^4.3.
|
|
81
|
-
"@things-factory/integration-fulfillment": "^4.3.
|
|
82
|
-
"@things-factory/integration-lmd": "^4.3.
|
|
83
|
-
"@things-factory/integration-marketplace": "^4.3.
|
|
84
|
-
"@things-factory/integration-pos": "^4.3.
|
|
85
|
-
"@things-factory/integration-sellercraft": "^4.3.
|
|
86
|
-
"@things-factory/integration-sftp": "^4.3.
|
|
87
|
-
"@things-factory/lite-menu": "^4.3.
|
|
88
|
-
"@things-factory/more-ui": "^4.3.
|
|
89
|
-
"@things-factory/notification": "^4.3.
|
|
90
|
-
"@things-factory/pdf": "^4.3.
|
|
91
|
-
"@things-factory/product-ui": "^4.3.
|
|
92
|
-
"@things-factory/resource-ui": "^4.3.
|
|
93
|
-
"@things-factory/sales-base": "^4.3.
|
|
94
|
-
"@things-factory/scene-data-transform": "^4.3.
|
|
95
|
-
"@things-factory/scene-excel": "^4.3.
|
|
96
|
-
"@things-factory/scene-firebase": "^4.3.
|
|
97
|
-
"@things-factory/scene-form": "^4.3.
|
|
98
|
-
"@things-factory/scene-google-map": "^4.3.
|
|
99
|
-
"@things-factory/scene-graphql": "^4.3.
|
|
100
|
-
"@things-factory/scene-label": "^4.3.
|
|
101
|
-
"@things-factory/scene-marker": "^4.3.
|
|
102
|
-
"@things-factory/scene-mqtt": "^4.3.
|
|
103
|
-
"@things-factory/scene-restful": "^4.3.
|
|
104
|
-
"@things-factory/scene-visualizer": "^4.3.
|
|
105
|
-
"@things-factory/setting-ui": "^4.3.
|
|
106
|
-
"@things-factory/shell": "^4.3.
|
|
107
|
-
"@things-factory/system-ui": "^4.3.
|
|
108
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
109
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
58
|
+
"@things-factory/api": "^4.3.159",
|
|
59
|
+
"@things-factory/apptool-ui": "^4.3.159",
|
|
60
|
+
"@things-factory/attachment-base": "^4.3.159",
|
|
61
|
+
"@things-factory/auth-base": "^4.3.159",
|
|
62
|
+
"@things-factory/auth-ui": "^4.3.159",
|
|
63
|
+
"@things-factory/biz-base": "^4.3.159",
|
|
64
|
+
"@things-factory/biz-ui": "^4.3.159",
|
|
65
|
+
"@things-factory/board-service": "^4.3.159",
|
|
66
|
+
"@things-factory/board-ui": "^4.3.159",
|
|
67
|
+
"@things-factory/code-ui": "^4.3.159",
|
|
68
|
+
"@things-factory/component-ui": "^4.3.159",
|
|
69
|
+
"@things-factory/context-ui": "^4.3.159",
|
|
70
|
+
"@things-factory/document-template-ui": "^4.3.159",
|
|
71
|
+
"@things-factory/export-ui": "^4.3.159",
|
|
72
|
+
"@things-factory/export-ui-csv": "^4.3.159",
|
|
73
|
+
"@things-factory/export-ui-excel": "^4.3.159",
|
|
74
|
+
"@things-factory/geography": "^4.3.159",
|
|
75
|
+
"@things-factory/grist-ui": "^4.3.159",
|
|
76
|
+
"@things-factory/help": "^4.3.159",
|
|
77
|
+
"@things-factory/i18n-base": "^4.3.159",
|
|
78
|
+
"@things-factory/import-ui": "^4.3.159",
|
|
79
|
+
"@things-factory/import-ui-excel": "^4.3.159",
|
|
80
|
+
"@things-factory/integration-accounting": "^4.3.161",
|
|
81
|
+
"@things-factory/integration-fulfillment": "^4.3.159",
|
|
82
|
+
"@things-factory/integration-lmd": "^4.3.159",
|
|
83
|
+
"@things-factory/integration-marketplace": "^4.3.159",
|
|
84
|
+
"@things-factory/integration-pos": "^4.3.159",
|
|
85
|
+
"@things-factory/integration-sellercraft": "^4.3.159",
|
|
86
|
+
"@things-factory/integration-sftp": "^4.3.159",
|
|
87
|
+
"@things-factory/lite-menu": "^4.3.159",
|
|
88
|
+
"@things-factory/more-ui": "^4.3.159",
|
|
89
|
+
"@things-factory/notification": "^4.3.159",
|
|
90
|
+
"@things-factory/pdf": "^4.3.159",
|
|
91
|
+
"@things-factory/product-ui": "^4.3.161",
|
|
92
|
+
"@things-factory/resource-ui": "^4.3.159",
|
|
93
|
+
"@things-factory/sales-base": "^4.3.161",
|
|
94
|
+
"@things-factory/scene-data-transform": "^4.3.159",
|
|
95
|
+
"@things-factory/scene-excel": "^4.3.159",
|
|
96
|
+
"@things-factory/scene-firebase": "^4.3.159",
|
|
97
|
+
"@things-factory/scene-form": "^4.3.159",
|
|
98
|
+
"@things-factory/scene-google-map": "^4.3.159",
|
|
99
|
+
"@things-factory/scene-graphql": "^4.3.159",
|
|
100
|
+
"@things-factory/scene-label": "^4.3.159",
|
|
101
|
+
"@things-factory/scene-marker": "^4.3.159",
|
|
102
|
+
"@things-factory/scene-mqtt": "^4.3.159",
|
|
103
|
+
"@things-factory/scene-restful": "^4.3.159",
|
|
104
|
+
"@things-factory/scene-visualizer": "^4.3.159",
|
|
105
|
+
"@things-factory/setting-ui": "^4.3.159",
|
|
106
|
+
"@things-factory/shell": "^4.3.159",
|
|
107
|
+
"@things-factory/system-ui": "^4.3.159",
|
|
108
|
+
"@things-factory/warehouse-base": "^4.3.161",
|
|
109
|
+
"@things-factory/worksheet-base": "^4.3.161",
|
|
110
110
|
"koa2-swagger-ui": "^5.0.2",
|
|
111
111
|
"swagger-jsdoc": "^5.0.0",
|
|
112
112
|
"yamljs": "^0.3.0"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
|
-
"@things-factory/builder": "^4.3.
|
|
115
|
+
"@things-factory/builder": "^4.3.159"
|
|
116
116
|
},
|
|
117
117
|
"resolutions": {
|
|
118
118
|
"core-js": "^3.16.0"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "7fe9232a64285ebaa04382258806889c47924157"
|
|
121
121
|
}
|
|
@@ -1051,7 +1051,7 @@ async function assignToInventory(orderProducts: OrderProduct[], customerBizplace
|
|
|
1051
1051
|
INNER JOIN "products" "p" ON "p"."id"="iv"."product_id"
|
|
1052
1052
|
WHERE case when coalesce("iv"."locked_qty",0) < 0 then 0 else ("iv"."qty" - coalesce("iv"."locked_qty",0)) end > 0 AND
|
|
1053
1053
|
"iv"."domain_id" = $2 AND "iv"."bizplace_id" = $3 AND "iv"."packing_type" = $4 AND "iv"."packing_size" = $5 AND "iv"."product_id" = $6 AND "iv"."status" = $7 AND "loc"."type" NOT IN ($8, $9)
|
|
1054
|
-
AND "iv"."obsolete" = false AND case when "iv"."expiration_date" is not null and "p"."
|
|
1054
|
+
AND "iv"."obsolete" = false AND case when "iv"."expiration_date" is not null and "p"."shelf_life" is not null then CURRENT_DATE < "iv"."expiration_date" - "p"."shelf_life" else true end
|
|
1055
1055
|
${queryStrings.query.length > 0 ? `AND ${queryStrings.join(' AND ')}` : ''}
|
|
1056
1056
|
ORDER BY ${sortQuery}
|
|
1057
1057
|
)
|
|
@@ -921,7 +921,7 @@ async function assignToInventory(orderProducts: OrderProduct[], customerBizplace
|
|
|
921
921
|
INNER JOIN "products" "p" ON "p"."id"="iv"."product_id"
|
|
922
922
|
WHERE case when coalesce("iv"."locked_qty",0) < 0 then 0 else ("iv"."qty" - coalesce("iv"."locked_qty",0)) end > 0 AND
|
|
923
923
|
"iv"."domain_id" = $2 AND "iv"."bizplace_id" = $3 AND "iv"."packing_type" = $4 AND "iv"."packing_size" = $5 AND "iv"."product_id" = $6 AND "iv"."status" = $7 AND "loc"."type" NOT IN ($8, $9)
|
|
924
|
-
AND "iv"."obsolete" = false AND case when "iv"."expiration_date" is not null and "p"."
|
|
924
|
+
AND "iv"."obsolete" = false AND case when "iv"."expiration_date" is not null and "p"."shelf_life" is not null then CURRENT_DATE < "iv"."expiration_date" - "p"."shelf_life" else true end
|
|
925
925
|
${queryStrings.query.length > 0 ? `AND ${queryStrings.join(' AND ')}` : ''}
|
|
926
926
|
ORDER BY ${sortQuery}
|
|
927
927
|
)
|
|
@@ -1212,7 +1212,7 @@ async function assignToInventory(orderProducts: OrderProduct[], customerBizplace
|
|
|
1212
1212
|
INNER JOIN "products" "p" ON "p"."id"="iv"."product_id"
|
|
1213
1213
|
WHERE case when coalesce("iv"."locked_qty",0) < 0 then 0 else ("iv"."qty" - coalesce("iv"."locked_qty",0)) end > 0 AND
|
|
1214
1214
|
"iv"."domain_id" = $2 AND "iv"."bizplace_id" = $3 AND "iv"."packing_type" = $4 AND "iv"."packing_size" = $5 AND "iv"."product_id" = $6 AND "iv"."status" = $7 AND "loc"."type" NOT IN ($8, $9)
|
|
1215
|
-
AND "iv"."obsolete" = false AND case when "iv"."expiration_date" is not null and "p"."
|
|
1215
|
+
AND "iv"."obsolete" = false AND case when "iv"."expiration_date" is not null and "p"."shelf_life" is not null then CURRENT_DATE < "iv"."expiration_date" - "p"."shelf_life" else true end
|
|
1216
1216
|
${queryStrings.query.length > 0 ? `AND ${queryStrings.join(' AND ')}` : ''}
|
|
1217
1217
|
ORDER BY ${sortQuery}
|
|
1218
1218
|
)
|