@things-factory/operato-wms 4.3.509 → 4.3.510

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.
@@ -261,11 +261,19 @@ class BulkOperation extends localize(i18next)(PageView) {
261
261
  billingCity: '',
262
262
  billingState: '',
263
263
  billingCountry: '',
264
+ batchId: '',
265
+ cartonId: '',
264
266
  sku: '',
265
267
  packingType: '',
266
268
  packingSize: 0,
267
269
  uom: '',
268
- releaseQty: 0
270
+ releaseQty: 0,
271
+ expirationDate:
272
+ (new Date().getMonth() + 1).toString() +
273
+ '-' +
274
+ new Date().getDate().toString() +
275
+ '-' +
276
+ new Date().getFullYear()
269
277
  }
270
278
  ]
271
279
  }
@@ -593,6 +601,7 @@ class BulkOperation extends localize(i18next)(PageView) {
593
601
  <validate-b2c-ro-popup
594
602
  .records=${records.map(record => {
595
603
  let releaseDate = new Date(String(record.releaseDate || ''))
604
+ let expDate = new Date(String(record.expirationDate || ''))
596
605
  let newPaidAmount = parseFloat(record?.paidAmount?.toFixed(2))
597
606
  return {
598
607
  refNo: String(record.refNo || ''),
@@ -619,6 +628,8 @@ class BulkOperation extends localize(i18next)(PageView) {
619
628
  billingCountry: String(record.billingCountry || ''),
620
629
  billingState: String(record.billingState || ''),
621
630
  billingCity: String(record.billingCity || ''),
631
+ batchId: String(record.batchId || ''),
632
+ cartonId: String(record.cartonId || ''),
622
633
  sku: String(record.sku || ''),
623
634
  packingType: record.packingType && record.packingType != '' ? String(record.packingType) : null,
624
635
  packingSize: !isNaN(Number(record.packingSize || 'x')) ? Number(record.packingSize) : null,
@@ -627,8 +638,8 @@ class BulkOperation extends localize(i18next)(PageView) {
627
638
  type: 'b2c',
628
639
  exportOption: false,
629
640
  packingOption: true,
630
- courierOption: true
631
-
641
+ courierOption: true,
642
+ expirationDate: this._getStdDateStr(expDate)
632
643
  }
633
644
  })}
634
645
  .bizplaceId=${this._roB2cBizplaceId}
@@ -232,6 +232,18 @@ class ValidateB2cRoPopup extends localize(i18next)(LitElement) {
232
232
  header: i18next.t('field.billing_country'),
233
233
  width: 150
234
234
  },
235
+ {
236
+ type: 'string',
237
+ name: 'batchId',
238
+ header: i18next.t('field.batch_id'),
239
+ width: 150
240
+ },
241
+ {
242
+ type: 'string',
243
+ name: 'cartonId',
244
+ header: i18next.t('field.carton_id'),
245
+ width: 150
246
+ },
235
247
  {
236
248
  type: 'string',
237
249
  name: 'sku',
@@ -262,6 +274,12 @@ class ValidateB2cRoPopup extends localize(i18next)(LitElement) {
262
274
  header: i18next.t('field.release_qty'),
263
275
  width: 150
264
276
  },
277
+ {
278
+ type: 'string',
279
+ name: 'expirationDate',
280
+ header: i18next.t('field.expiry_date'),
281
+ width: 150
282
+ },
265
283
  {
266
284
  type: 'string',
267
285
  name: 'errorMsg',
@@ -352,6 +370,9 @@ class ValidateB2cRoPopup extends localize(i18next)(LitElement) {
352
370
  exportOption
353
371
  packingOption
354
372
  courierOption
373
+ batchId
374
+ cartonId
375
+ expirationDate
355
376
  }
356
377
  }
357
378
  `,
@@ -419,7 +440,10 @@ class ValidateB2cRoPopup extends localize(i18next)(LitElement) {
419
440
  type: x.type,
420
441
  exportOption: x.exportOption,
421
442
  packingOption: x.packingOption,
422
- courierOption: x.courierOption
443
+ courierOption: x.courierOption,
444
+ batchId: x?.batchId ? x.batchId : null,
445
+ cartonId: x?.cartonId ? x.cartonId : null,
446
+ expirationDate: x?.expirationDate ? x.expirationDate : null
423
447
  }
424
448
  }),
425
449
  bizplaceId: this.bizplaceId
@@ -312,7 +312,7 @@ class InventoryByProduct extends localize(i18next)(PageView) {
312
312
  {
313
313
  type: 'string',
314
314
  name: 'description',
315
- imex: { header: i18next.t('field.description'), key: 'description', width: 50, type: 'string' },
315
+ imex: { header: i18next.t('field.product_description'), key: 'description', width: 50, type: 'string' },
316
316
  header: i18next.t('field.description'),
317
317
  label: true,
318
318
  width: 300
@@ -94,7 +94,7 @@ class NonLoadedInventory extends connect(store)(localize(i18next)(PageView)) {
94
94
  'cartonId',
95
95
  'batchId',
96
96
  'productSku',
97
- 'productName',
97
+ 'product',
98
98
  'productBrand',
99
99
  'packingType',
100
100
  'pickedQty',
@@ -161,7 +161,7 @@ class NonLoadedInventory extends connect(store)(localize(i18next)(PageView)) {
161
161
  },
162
162
  {
163
163
  type: 'string',
164
- name: 'productName',
164
+ name: 'product',
165
165
  header: i18next.t('field.product'),
166
166
  label: true,
167
167
  sortable: true,
@@ -362,7 +362,9 @@ class NonLoadedInventory extends connect(store)(localize(i18next)(PageView)) {
362
362
  response.data.nonLoadedOrderInventories.items.map(item => {
363
363
  return {
364
364
  ...item,
365
- productName: `${item.product.name} ${item.product.description}`,
365
+ product: `${item.product.name} ${item.product.description}`,
366
+ productName: item.product.name,
367
+ productDescription: item.product.description,
366
368
  productSku: item.product.sku,
367
369
  productBrand: item.product.brand,
368
370
  binLocation: item.binLocation.name,
@@ -389,6 +391,7 @@ class NonLoadedInventory extends connect(store)(localize(i18next)(PageView)) {
389
391
  { header: i18next.t('field.batch_id'), key: 'batchId', width: 25, type: 'string' },
390
392
  { header: i18next.t('field.sku'), key: 'productSku', width: 25, type: 'string' },
391
393
  { header: i18next.t('field.product'), key: 'productName', width: 25, type: 'string' },
394
+ { header: i18next.t('field.product_description'), key: 'productDescription', width: 25, type: 'string' },
392
395
  { header: i18next.t('field.brand'), key: 'productBrand', width: 25, type: 'string' },
393
396
  { header: i18next.t('field.packing_type'), key: 'packingType', width: 25, type: 'string' },
394
397
  { header: i18next.t('field.qty'), key: 'pickedQty', width: 25, type: 'string' },
@@ -160,7 +160,7 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
160
160
  },
161
161
  {
162
162
  type: 'string',
163
- name: 'product_name',
163
+ name: 'product_productName',
164
164
  header: i18next.t('field.product'),
165
165
  sortable: true,
166
166
  width: 500
@@ -539,7 +539,7 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
539
539
  expirationDate: item.expirationDate ? new Date(item.expirationDate).toDateString().slice(4, 16) : '',
540
540
  product: {
541
541
  ...item.product,
542
- name: `${item.product.name} ${item.product.description}`,
542
+ productName: `${item.product.name} ${item.product.description}`,
543
543
  productBrand: `${item.product.brand}`
544
544
  },
545
545
  volume: parseFloat(item.product.volume * item.remainQty).toFixed(4)
@@ -367,7 +367,7 @@ class DraftReleaseGoodList extends localize(i18next)(PageView) {
367
367
  return this.shadowRoot.querySelector('data-grist')
368
368
  }
369
369
 
370
- async fetchHandler({ page, limit, sorters = [{ name: 'createdAt', desc: true }] }) {
370
+ async fetchHandler({ page, limit, sorters = [{ name: 'created_at', desc: true }] }) {
371
371
  const response = await client.query({
372
372
  query: gql`
373
373
  query draftReleaseGoods($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
@@ -167,7 +167,7 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
167
167
  selectable: false,
168
168
  groups: [
169
169
  { column: 'product|sku' },
170
- { column: 'product|name' },
170
+ { column: 'productName' },
171
171
  { column: 'product|type' },
172
172
  { column: 'packingType', title: 'Sub Total' },
173
173
  { column: 'batchId', title: 'Batch Total' },
@@ -181,15 +181,13 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
181
181
  name: 'product|sku',
182
182
  header: i18next.t('field.sku'),
183
183
  sortable: false,
184
- imex: { header: i18next.t('field.sku'), key: 'product|sku', width: 75, type: 'string' },
185
184
  width: 400
186
185
  },
187
186
  {
188
187
  type: 'string',
189
- name: 'product|name',
188
+ name: 'productName',
190
189
  header: i18next.t('field.product'),
191
190
  sortable: false,
192
- imex: { header: i18next.t('field.product'), key: 'product|name', width: 75, type: 'string' },
193
191
  width: 400
194
192
  },
195
193
  {
@@ -197,14 +195,12 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
197
195
  name: 'product|type',
198
196
  header: i18next.t('field.product_type'),
199
197
  sortable: false,
200
- imex: { header: i18next.t('field.product_type'), key: 'product|type', width: 25, type: 'string' },
201
198
  width: 160
202
199
  },
203
200
  {
204
201
  type: 'string',
205
202
  name: 'packingType',
206
203
  header: i18next.t('field.packing_type'),
207
- imex: { header: i18next.t('field.packing_type'), key: 'packingType', width: 25, type: 'string' },
208
204
  width: 180
209
205
  },
210
206
  {
@@ -212,14 +208,12 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
212
208
  name: 'batchId',
213
209
  header: i18next.t('field.batch_id'),
214
210
  sortable: false,
215
- imex: { header: i18next.t('field.batch_id'), key: 'batchId', width: 25, type: 'string' },
216
211
  width: 200
217
212
  },
218
213
  {
219
214
  type: 'string',
220
215
  name: 'uom',
221
216
  header: i18next.t('field.uom'),
222
- imex: { header: i18next.t('field.uom'), key: 'uom', width: 10, type: 'string' },
223
217
  width: 80
224
218
  },
225
219
  {
@@ -227,7 +221,6 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
227
221
  name: 'orderNo',
228
222
  header: i18next.t('field.order_no'),
229
223
  sortable: true,
230
- imex: { header: i18next.t('field.order_no'), key: 'orderNo', width: 25, type: 'string' },
231
224
  width: 300
232
225
  },
233
226
  {
@@ -235,7 +228,6 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
235
228
  name: 'orderRefNo',
236
229
  header: i18next.t('field.ref_no'),
237
230
  sortable: true,
238
- imex: { header: i18next.t('field.ref_no'), key: 'orderRefNo', width: 25, type: 'string' },
239
231
  width: 300
240
232
  },
241
233
  {
@@ -243,7 +235,6 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
243
235
  name: 'transactionType',
244
236
  header: i18next.t('field.transaction_type'),
245
237
  sortable: false,
246
- imex: { header: i18next.t('field.transaction_type'), key: 'transactionType', width: 25, type: 'string' },
247
238
  width: 300
248
239
  },
249
240
  {
@@ -251,7 +242,6 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
251
242
  name: 'createdAt',
252
243
  header: i18next.t('field.date'),
253
244
  sortable: true,
254
- imex: { header: i18next.t('field.date'), key: 'createdAt', width: 25, type: 'string' },
255
245
  width: 110
256
246
  },
257
247
  {
@@ -260,7 +250,6 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
260
250
  header: i18next.t('field.qty'),
261
251
  record: { align: 'center' },
262
252
  sortable: true,
263
- imex: { header: i18next.t('field.qty'), key: 'qty', width: 25, type: 'string' },
264
253
  width: 100
265
254
  },
266
255
  {
@@ -269,7 +258,6 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
269
258
  header: i18next.t('field.uom_value'),
270
259
  record: { align: 'center' },
271
260
  sortable: true,
272
- imex: { header: i18next.t('field.uom_value'), key: 'uomValue', width: 25, type: 'string' },
273
261
  width: 100
274
262
  }
275
263
  ]
@@ -310,6 +298,7 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
310
298
  name
311
299
  description
312
300
  type
301
+ auxValue1
313
302
  }
314
303
  qty
315
304
  uom
@@ -355,6 +344,12 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
355
344
  let date = new Date(parseInt(item.createdAt))
356
345
  return flattenObject({
357
346
  ...item,
347
+ productName:
348
+ item.product.name +
349
+ ' ( ' +
350
+ item.product.description +
351
+ ' ) ' +
352
+ item.product.auxValue1,
358
353
  createdAt:
359
354
  date.getDate().toString() + '/' + (date.getMonth() + 1).toString() + '/' + date.getFullYear().toString()
360
355
  })
@@ -468,11 +463,19 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
468
463
  _exportableData() {
469
464
  try {
470
465
  var headerSetting = [
471
- ...this.report._config.columns
472
- .filter(column => column.type !== 'gutter' && column.record !== undefined && column.imex !== undefined)
473
- .map(column => {
474
- return column.imex
475
- })
466
+ { header: i18next.t('field.sku'), key: 'product|sku', width: 75, type: 'string' },
467
+ { header: i18next.t('field.product'), key: 'product|name', width: 75, type: 'string' },
468
+ { header: i18next.t('field.product_description'), key: 'product|description', width: 75, type:'string' },
469
+ { header: i18next.t('field.product_type'), key: 'product|type', width: 25, type: 'string' },
470
+ { header: i18next.t('field.packing_type'), key: 'packingType', width: 25, type: 'string' },
471
+ { header: i18next.t('field.batch_id'), key: 'batchId', width: 25, type: 'string' },
472
+ { header: i18next.t('field.uom'), key: 'uom', width: 10, type: 'string' },
473
+ { header: i18next.t('field.order_no'), key: 'orderNo', width: 25, type: 'string' },
474
+ { header: i18next.t('field.ref_no'), key: 'orderRefNo', width: 25, type: 'string' },
475
+ { header: i18next.t('field.transaction_type'), key: 'transactionType', width: 25, type: 'string' },
476
+ { header: i18next.t('field.date'), key: 'createdAt', width: 25, type: 'string' },
477
+ { header: i18next.t('field.qty'), key: 'qty', width: 25, type: 'string' },
478
+ { header: i18next.t('field.uom_value'), key: 'uomValue', width: 25, type: 'string' }
476
479
  ]
477
480
 
478
481
  return {
@@ -213,7 +213,7 @@ class InventorySummaryReport extends connect(store)(localize(i18next)(PageView))
213
213
  },
214
214
  {
215
215
  type: 'string',
216
- name: 'productName',
216
+ name: 'productNameDescription',
217
217
  header: i18next.t('field.product'),
218
218
  width: 400
219
219
  },
@@ -383,7 +383,9 @@ class InventorySummaryReport extends connect(store)(localize(i18next)(PageView))
383
383
  flattenObject({
384
384
  ...item,
385
385
  productSku: item.product.sku,
386
- productName: `${item.product.name} (${item.product.description})`,
386
+ productNameDescription: `${item.product.name} (${item.product.description})`,
387
+ productName: item.product.name,
388
+ productDescription: item.product.description,
387
389
  productType: item.product.type
388
390
  })
389
391
  ) || []
@@ -312,6 +312,7 @@ class shortageReport extends connect(store)(localize(i18next)(PageView)) {
312
312
  refNo
313
313
  productSku
314
314
  productName
315
+ productDescription
315
316
  orderQty
316
317
  avQty
317
318
  nettStock
@@ -420,7 +421,8 @@ class shortageReport extends connect(store)(localize(i18next)(PageView)) {
420
421
  { header: i18next.t('field.order_no'), key: 'orderNo', width: 30, type: 'string' },
421
422
  { header: i18next.t('field.ref_no'), key: 'refNo', width: 60, type: 'string' },
422
423
  { header: i18next.t('field.sku'), key: 'productSku', width: 25, type: 'string' },
423
- { header: i18next.t('field.product'), key: 'productName', width: 50, type: 'string' },
424
+ { header: i18next.t('field.product'), key: 'productName', width: 25, type: 'string' },
425
+ { header: i18next.t('field.product_description'), key: 'productDescription', width: 25, type: 'string'},
424
426
  { header: i18next.t('field.order_quantity'), key: 'orderQty', width: 15, type: 'string' },
425
427
  { header: i18next.t('field.available_qty'), key: 'avQty', width: 15, type: 'string' },
426
428
  { header: i18next.t('field.nett_stock'), key: 'nettStock', width: 15, type: 'string' },
@@ -62,6 +62,7 @@ exports.shortageReport = {
62
62
  drg.ref_no,
63
63
  p.sku AS "product_sku",
64
64
  p."name" AS "product_name",
65
+ p."description" AS "product_description",
65
66
  op.release_qty AS "order_quantity",
66
67
  COALESCE(src.av_qty, 0) AS available_qty,
67
68
  COALESCE(src.av_qty, 0) - op.release_qty AS "Nett_Stock",
@@ -140,6 +141,7 @@ exports.shortageReport = {
140
141
  refNo: itm.ref_no,
141
142
  productSku: itm.product_sku,
142
143
  productName: itm.product_name,
144
+ productDescription: itm.product_description,
143
145
  orderQty: itm.order_quantity,
144
146
  avQty: itm.available_qty,
145
147
  nettStock: itm.Nett_Stock,
@@ -1 +1 @@
1
- {"version":3,"file":"shortage-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/shortage-report.ts"],"names":[],"mappings":";;;AAIa,QAAA,cAAc,GAAG;IAC5B,KAAK,CAAC,cAAc,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QAC1D,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YACnD,IAAI,cAAc,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;YAC1D,IAAI,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC,CAAA;YAChE,IAAI,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,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G,CAAC,QAAQ;oBACrB,KAAK,EAAE,GAAG,CAAC,MAAM;oBACjB,UAAU,EAAE,GAAG,CAAC,WAAW;oBAC3B,WAAW,EAAE,GAAG,CAAC,YAAY;oBAC7B,QAAQ,EAAE,GAAG,CAAC,cAAc;oBAC5B,KAAK,EAAE,GAAG,CAAC,aAAa;oBACxB,SAAS,EAAE,GAAG,CAAC,UAAU;oBACzB,eAAe,EAAE,GAAG,CAAC,gBAAgB;oBACrC,KAAK,EAAE,GAAG,CAAC,KAAK;oBAChB,IAAI,EAAE,GAAG,CAAC,IAAI;oBACd,OAAO,EAAE,GAAG,CAAC,OAAO;oBACpB,SAAS,EAAE,GAAG,CAAC,UAAU;iBAC1B,CAAA;YACH,CAAC,CAAC,CAAA;YAEF,OAAO;gBACL,KAAK;gBACL,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK;aACtB,CAAA;SACF;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"shortage-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/shortage-report.ts"],"names":[],"mappings":";;;AAIa,QAAA,cAAc,GAAG;IAC5B,KAAK,CAAC,cAAc,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QAC1D,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YACnD,IAAI,cAAc,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;YAC1D,IAAI,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC,CAAA;YAChE,IAAI,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI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,CAAC,MAAM;oBACjB,UAAU,EAAE,GAAG,CAAC,WAAW;oBAC3B,WAAW,EAAE,GAAG,CAAC,YAAY;oBAC7B,kBAAkB,EAAE,GAAG,CAAC,mBAAmB;oBAC3C,QAAQ,EAAE,GAAG,CAAC,cAAc;oBAC5B,KAAK,EAAE,GAAG,CAAC,aAAa;oBACxB,SAAS,EAAE,GAAG,CAAC,UAAU;oBACzB,eAAe,EAAE,GAAG,CAAC,gBAAgB;oBACrC,KAAK,EAAE,GAAG,CAAC,KAAK;oBAChB,IAAI,EAAE,GAAG,CAAC,IAAI;oBACd,OAAO,EAAE,GAAG,CAAC,OAAO;oBACpB,SAAS,EAAE,GAAG,CAAC,UAAU;iBAC1B,CAAA;YACH,CAAC,CAAC,CAAA;YAEF,OAAO;gBACL,KAAK;gBACL,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK;aACtB,CAAA;SACF;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
@@ -11,6 +11,7 @@ exports.ShortageReport = (0, graphql_tag_1.default) `
11
11
  orderNo: String
12
12
  refNo: String
13
13
  productSku: String
14
+ productDescription: String
14
15
  productName: String
15
16
  orderQty: String
16
17
  avQty: String
@@ -1 +1 @@
1
- {"version":3,"file":"shortage-report-type.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/shortage-report-type.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,cAAc,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;CAgBhC,CAAA"}
1
+ {"version":3,"file":"shortage-report-type.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/shortage-report-type.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,cAAc,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;CAiBhC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.509",
3
+ "version": "4.3.510",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -91,7 +91,7 @@
91
91
  "@things-factory/print-ui": "^4.3.434",
92
92
  "@things-factory/product-base": "^4.3.495",
93
93
  "@things-factory/resource-ui": "^4.3.452",
94
- "@things-factory/sales-ui": "^4.3.509",
94
+ "@things-factory/sales-ui": "^4.3.510",
95
95
  "@things-factory/scene-data-transform": "^4.3.381",
96
96
  "@things-factory/scene-excel": "^4.3.381",
97
97
  "@things-factory/scene-firebase": "^4.3.381",
@@ -107,8 +107,8 @@
107
107
  "@things-factory/system-ui": "^4.3.434",
108
108
  "@things-factory/transport-base": "^4.3.452",
109
109
  "@things-factory/tutorial-ui": "^4.3.452",
110
- "@things-factory/warehouse-base": "^4.3.509",
111
- "@things-factory/worksheet-base": "^4.3.509"
110
+ "@things-factory/warehouse-base": "^4.3.510",
111
+ "@things-factory/worksheet-base": "^4.3.510"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.381",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "6f8cfac260713c413406c0ba09aa4f82a6373b0a"
120
+ "gitHead": "c7438e3c75074f902d96e5d23a816e215d5e9920"
121
121
  }
@@ -72,6 +72,7 @@ export const shortageReport = {
72
72
  drg.ref_no,
73
73
  p.sku AS "product_sku",
74
74
  p."name" AS "product_name",
75
+ p."description" AS "product_description",
75
76
  op.release_qty AS "order_quantity",
76
77
  COALESCE(src.av_qty, 0) AS available_qty,
77
78
  COALESCE(src.av_qty, 0) - op.release_qty AS "Nett_Stock",
@@ -158,6 +159,7 @@ export const shortageReport = {
158
159
  refNo: itm.ref_no,
159
160
  productSku: itm.product_sku,
160
161
  productName: itm.product_name,
162
+ productDescription: itm.product_description,
161
163
  orderQty: itm.order_quantity,
162
164
  avQty: itm.available_qty,
163
165
  nettStock: itm.Nett_Stock,
@@ -6,6 +6,7 @@ export const ShortageReport = gql`
6
6
  orderNo: String
7
7
  refNo: String
8
8
  productSku: String
9
+ productDescription: String
9
10
  productName: String
10
11
  orderQty: String
11
12
  avQty: String