@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.
@@ -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"."shell_life" is not null then CURRENT_DATE < "iv"."expiration_date" - "p"."shell_life" else true end
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"."shell_life" is not null then CURRENT_DATE < "iv"."expiration_date" - "p"."shell_life" else true end
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"."shell_life" is not null then CURRENT_DATE < "iv"."expiration_date" - "p"."shell_life" else true end
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.156",
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.156",
59
- "@things-factory/apptool-ui": "^4.3.156",
60
- "@things-factory/attachment-base": "^4.3.156",
61
- "@things-factory/auth-base": "^4.3.156",
62
- "@things-factory/auth-ui": "^4.3.156",
63
- "@things-factory/biz-base": "^4.3.156",
64
- "@things-factory/biz-ui": "^4.3.156",
65
- "@things-factory/board-service": "^4.3.156",
66
- "@things-factory/board-ui": "^4.3.156",
67
- "@things-factory/code-ui": "^4.3.156",
68
- "@things-factory/component-ui": "^4.3.156",
69
- "@things-factory/context-ui": "^4.3.156",
70
- "@things-factory/document-template-ui": "^4.3.156",
71
- "@things-factory/export-ui": "^4.3.156",
72
- "@things-factory/export-ui-csv": "^4.3.156",
73
- "@things-factory/export-ui-excel": "^4.3.156",
74
- "@things-factory/geography": "^4.3.156",
75
- "@things-factory/grist-ui": "^4.3.156",
76
- "@things-factory/help": "^4.3.156",
77
- "@things-factory/i18n-base": "^4.3.156",
78
- "@things-factory/import-ui": "^4.3.156",
79
- "@things-factory/import-ui-excel": "^4.3.156",
80
- "@things-factory/integration-accounting": "^4.3.156",
81
- "@things-factory/integration-fulfillment": "^4.3.156",
82
- "@things-factory/integration-lmd": "^4.3.156",
83
- "@things-factory/integration-marketplace": "^4.3.156",
84
- "@things-factory/integration-pos": "^4.3.156",
85
- "@things-factory/integration-sellercraft": "^4.3.156",
86
- "@things-factory/integration-sftp": "^4.3.156",
87
- "@things-factory/lite-menu": "^4.3.156",
88
- "@things-factory/more-ui": "^4.3.156",
89
- "@things-factory/notification": "^4.3.156",
90
- "@things-factory/pdf": "^4.3.156",
91
- "@things-factory/product-ui": "^4.3.156",
92
- "@things-factory/resource-ui": "^4.3.156",
93
- "@things-factory/sales-base": "^4.3.156",
94
- "@things-factory/scene-data-transform": "^4.3.156",
95
- "@things-factory/scene-excel": "^4.3.156",
96
- "@things-factory/scene-firebase": "^4.3.156",
97
- "@things-factory/scene-form": "^4.3.156",
98
- "@things-factory/scene-google-map": "^4.3.156",
99
- "@things-factory/scene-graphql": "^4.3.156",
100
- "@things-factory/scene-label": "^4.3.156",
101
- "@things-factory/scene-marker": "^4.3.156",
102
- "@things-factory/scene-mqtt": "^4.3.156",
103
- "@things-factory/scene-restful": "^4.3.156",
104
- "@things-factory/scene-visualizer": "^4.3.156",
105
- "@things-factory/setting-ui": "^4.3.156",
106
- "@things-factory/shell": "^4.3.156",
107
- "@things-factory/system-ui": "^4.3.156",
108
- "@things-factory/warehouse-base": "^4.3.156",
109
- "@things-factory/worksheet-base": "^4.3.156",
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.156"
115
+ "@things-factory/builder": "^4.3.159"
116
116
  },
117
117
  "resolutions": {
118
118
  "core-js": "^3.16.0"
119
119
  },
120
- "gitHead": "cbdf5546969663ba03bb1f4f10666599aa6d00bc"
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"."shell_life" is not null then CURRENT_DATE < "iv"."expiration_date" - "p"."shell_life" else true end
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"."shell_life" is not null then CURRENT_DATE < "iv"."expiration_date" - "p"."shell_life" else true end
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"."shell_life" is not null then CURRENT_DATE < "iv"."expiration_date" - "p"."shell_life" else true end
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
  )