@things-factory/operato-wms 4.3.472 → 4.3.474
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.
|
@@ -219,6 +219,8 @@ class CartonLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
219
219
|
|
|
220
220
|
selected.forEach((obj, idx) => {
|
|
221
221
|
for (let index = 0; index < obj.printQty; index++) {
|
|
222
|
+
let manufactureDate= new Date(obj.manufactureDate)
|
|
223
|
+
let manufactureYear= manufactureDate.getFullYear()
|
|
222
224
|
printData.push({
|
|
223
225
|
batchId: obj.batchId,
|
|
224
226
|
productSku: obj.productSku,
|
|
@@ -228,7 +230,8 @@ class CartonLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
228
230
|
refNo: obj.refNo,
|
|
229
231
|
refNo2: obj.refNo2,
|
|
230
232
|
refNo3: obj.refNo3,
|
|
231
|
-
manufactureDate:
|
|
233
|
+
manufactureDate: manufactureDate.toLocaleDateString(),
|
|
234
|
+
manufactureYear: manufactureYear.toString(),
|
|
232
235
|
cartonId: cartonLabels[idx].cartonId,
|
|
233
236
|
customer: bizplaceName,
|
|
234
237
|
printCount: index + 1
|
|
@@ -237,7 +240,7 @@ class CartonLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
237
240
|
})
|
|
238
241
|
|
|
239
242
|
for (let i = 0; i < printData.length; i++) {
|
|
240
|
-
await sendToPrinter(labelId, { ...printData[i],
|
|
243
|
+
await sendToPrinter(labelId, { ...printData[i], carton: printData[i].cartonId }, this._printer)
|
|
241
244
|
}
|
|
242
245
|
}
|
|
243
246
|
break
|
|
@@ -1686,6 +1686,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1686
1686
|
if (!record?.cartonId) throw new Error(i18next.t('text.selected_inventory_not_using_carton_label'))
|
|
1687
1687
|
|
|
1688
1688
|
/* for pallet record mapping */
|
|
1689
|
+
searchParams.append('cartonId', record.cartonId)
|
|
1689
1690
|
searchParams.append('carton', record.cartonId)
|
|
1690
1691
|
searchParams.append('customer', record.bizplace.name)
|
|
1691
1692
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.474",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"cypress-localstorage-commands": "^1.6.1",
|
|
118
118
|
"eslint-plugin-cypress": "^2.12.1"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "963e36ab6d6aa1a7404f632f430c8cfa922749a8"
|
|
121
121
|
}
|