@things-factory/operato-wms 4.0.35 → 4.0.39

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/Dockerfile CHANGED
@@ -1,49 +1,5 @@
1
1
  # Use an official ubuntu image
2
- FROM ubuntu:18.04
3
-
4
- # Use an official node image
5
- FROM node:14.18
6
-
7
- ARG DEBIAN_FRONTEND=noninteractive
8
-
9
- # Install the required packages
10
- RUN apt-get update -o Acquire::CompressionTypes::Order::=gz
11
- RUN apt-get upgrade -y
12
-
13
- RUN echo "deb http://ftp.de.debian.org/debian stable main" > /etc/apt/sources.list
14
-
15
- RUN apt-get update
16
-
17
- RUN apt-get install -y --no-install-recommends apt-utils
18
- RUN apt-get install -y chromium
19
- RUN apt-get install -y libcups2-dev
20
- RUN apt-get install -y libavahi-compat-libdnssd-dev
21
- RUN apt-get install -y gconf-service libasound2 libatk1.0-0 libcairo2 libcups2 libfontconfig1 libgdk-pixbuf2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libxss1 fonts-liberation libnss3 lsb-release xdg-utils libaio1
22
-
23
- RUN apt update
24
- RUN apt-get install -y ghostscript
25
- RUN apt-get install -y curl
26
- RUN apt-get install -y git
27
-
28
- # install chrome
29
- RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
30
- RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
31
- RUN rm google-chrome-stable_current_amd64.deb
32
-
33
-
34
-
35
- # make oracle path
36
- RUN mkdir -p /opt/oracle
37
- WORKDIR /opt/oracle
38
-
39
- # download newest oracle cilent for connect to Oracle Database
40
- RUN wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip && \
41
- unzip instantclient-basiclite-linuxx64.zip && \
42
- rm -f instantclient-basiclite-linuxx64.zip && \
43
- cd /opt/oracle/instantclient* && \
44
- rm -f *jdbc* *occi* *mysql* *mql1* *ipc1* *jar uidrvci genezi adrci && \
45
- echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf &&\
46
- ldconfig
2
+ FROM hatiolab/operato-env:latest
47
3
 
48
4
  # Set the working directory to /app
49
5
  WORKDIR /app
@@ -411,8 +411,8 @@ class BulkOperation extends localize(i18next)(PageView) {
411
411
  packingSize: !isNaN(Number(record.packingSize || 'x')) ? Number(record.packingSize) : null,
412
412
  uom: record.uom && record.uom != '' ? String(record.uom) : null,
413
413
  releaseQty: Number(record.releaseQty),
414
- postalCode: String(record.postalCode),
415
- phone1: String(record.phone1),
414
+ postalCode: String(record.postalCode || ''),
415
+ phone1: String(record.phone1 || ''),
416
416
  exportOption: false
417
417
  }
418
418
  })}
@@ -71,7 +71,7 @@ class ValidateGanPopup extends localize(i18next)(LitElement) {
71
71
  appendable: false,
72
72
  classifier: (record, rowIndex) => {
73
73
  return {
74
- emphasized: record.remark && record.remark != ''
74
+ emphasized: record.errorMsg && record.errorMsg != ''
75
75
  }
76
76
  }
77
77
  },
@@ -364,7 +364,7 @@ class ValidateGanPopup extends localize(i18next)(LitElement) {
364
364
  }
365
365
 
366
366
  _validateArrivalNotices() {
367
- if (this.records.some(record => record.remark && record.remark != '')) {
367
+ if (this.records.some(record => record.errorMsg && record.errorMsg != '')) {
368
368
  throw new Error(i18next.t('text.please_recheck_your_request_data'))
369
369
  }
370
370
  }
@@ -367,13 +367,19 @@ class ValidateRoPopup extends localize(i18next)(LitElement) {
367
367
  this._showToast({ message: i18next.t('text.release_order_created') })
368
368
  history.back()
369
369
  } else {
370
- let insufficientStockError = response.errors.find(err => err.extensions.exception.errorCode == 'ins1')
371
- if (insufficientStockError) {
372
- // if system suddenly found that any item is insufficient,
373
- // display the available items again.
374
- await this._getAvailableItems(this.records, this.bizplaceId)
370
+ let invalidDataError = response.errors.find(err => err.extensions.exception.errorCode == 'ivd1')
371
+ if (invalidDataError) {
372
+ this.records = JSON.parse(invalidDataError.extensions.exception.detail.data)
375
373
  this._showToast({ message: i18next.t('text.please_recheck_your_request_data') })
376
374
  }
375
+
376
+ // let insufficientStockError = response.errors.find(err => err.extensions.exception.errorCode == 'ins1')
377
+ // if (insufficientStockError) {
378
+ // // if system suddenly found that any item is insufficient,
379
+ // // display the available items again.
380
+ // await this._getAvailableItems(this.records, this.bizplaceId)
381
+ // this._showToast({ message: i18next.t('text.please_recheck_your_request_data') })
382
+ // }
377
383
  }
378
384
  } catch (e) {
379
385
  this._showToast(e)
@@ -84,6 +84,14 @@ class PopupReusablePallet extends localize(i18next)(LitElement) {
84
84
  @click="${async () => await this._verifyInput()}"
85
85
  label="${i18next.t('button.confirm')}"
86
86
  ></mwc-button>
87
+ <mwc-button
88
+ raised
89
+ @click="${async () => {
90
+ this.dispatchEvent(new CustomEvent('normalPallet'))
91
+ history.back()
92
+ }}"
93
+ label="${i18next.t('button.disable')}"
94
+ ></mwc-button>
87
95
  </div>
88
96
  }
89
97
  `
@@ -67,7 +67,7 @@ class WorksheetInformationPopup extends connect(store)(localize(i18next)(LitElem
67
67
  <label>${i18next.t('label.started_at')}</label>
68
68
  <input name="startedAt" type="datetime-local" readonly />
69
69
 
70
- <label>${i18next.t('label.plastic_pallet')}</label>
70
+ <label>${i18next.t('label.reusable_pallet_id')}</label>
71
71
  <input name="plasticPallet" readonly />
72
72
  </fieldset>
73
73
  </form>
@@ -206,7 +206,7 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
206
206
  <barcode-scanable-input name="cartonId" custom-input></barcode-scanable-input>
207
207
  `
208
208
  : html`
209
- <label>${i18next.t('label.lot_barcode')}</label>
209
+ <label>${i18next.t('label.lot_id')}</label>
210
210
  <barcode-scanable-input name="palletId" .value=${this._pallet} custom-input></barcode-scanable-input>
211
211
  `}
212
212
  ${this._operationType === OPERATION_TYPE.PUTAWAY
@@ -716,23 +716,19 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
716
716
  const locationDetails = await this._fetchLocation(this.locationInput.value.trim())
717
717
 
718
718
  if (this._enableCartonLabel) {
719
- let worksheetDetail = this._getSelectedOrderProducts(this.cartonInput.value)
720
- worksheetDetailNames.push(worksheetDetail[0].name)
721
- if (worksheetDetail[0].expirationDate) {
722
- await this._checkExpiry(
723
- worksheetDetail[0].expirationPeriod,
724
- new Date(worksheetDetail[0].expirationDate),
725
- locationDetails.type
726
- )
719
+ let worksheetDetails = this._getSelectedOrderProducts(this.cartonInput.value)
720
+ worksheetDetails.forEach(itm => {
721
+ worksheetDetailNames.push(itm.name)
722
+ })
723
+ if (worksheetDetails.find(itm => itm.expirationDate)) {
724
+ let answer = await this._checkExpiry(worksheetDetails, locationDetails.type)
725
+ if (!answer?.value) return (this._scanning = false)
727
726
  }
728
727
  } else {
729
728
  worksheetDetailNames.push(this._selectedOrderProduct.name)
730
729
  if (this._selectedOrderProduct.expirationDate) {
731
- await this._checkExpiry(
732
- this._selectedOrderProduct.expirationPeriod,
733
- new Date(this._selectedOrderProduct.expirationDate),
734
- locationDetails.type
735
- )
730
+ let answer = await this._checkExpiry(this._selectedOrderProduct, locationDetails.type)
731
+ if (!answer?.value) return (this._scanning = false)
736
732
  }
737
733
  }
738
734
 
@@ -797,23 +793,19 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
797
793
  const locationDetails = await this._fetchLocation(this.locationInput.value.trim())
798
794
 
799
795
  if (this._enableCartonLabel) {
800
- let worksheetDetail = this._getSelectedOrderProducts(this.cartonInput.value)
801
- worksheetDetailNames.push(worksheetDetail[0].name)
802
- if (worksheetDetail[0].expirationDate) {
803
- await this._checkExpiry(
804
- worksheetDetail[0].expirationPeriod,
805
- new Date(worksheetDetail[0].expirationDate),
806
- locationDetails.type
807
- )
796
+ let worksheetDetails = this._getSelectedOrderProducts(this.cartonInput.value)
797
+ worksheetDetails.forEach(itm => {
798
+ worksheetDetailNames.push(itm.name)
799
+ })
800
+ if (worksheetDetails.find(itm => itm.expirationDate)) {
801
+ let answer = await this._checkExpiry(worksheetDetails, locationDetails.type)
802
+ if (!answer?.value) return (this._scanning = false)
808
803
  }
809
804
  } else {
810
805
  worksheetDetailNames.push(this._selectedOrderProduct.name)
811
806
  if (this._selectedOrderProduct.expirationDate) {
812
- await this._checkExpiry(
813
- this._selectedOrderProduct.expirationPeriod,
814
- new Date(this._selectedOrderProduct.expirationDate),
815
- locationDetails.type
816
- )
807
+ let answer = await this._checkExpiry(this._selectedOrderProduct, locationDetails.type)
808
+ if (!answer?.value) return (this._scanning = false)
817
809
  }
818
810
  }
819
811
 
@@ -890,8 +882,10 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
890
882
  if (!this.incompleteLocationName) {
891
883
  let worksheetDetailNames = []
892
884
  if (this._enableCartonLabel) {
893
- const selectedWorksheetDetailName = this._getSelectedOrderProducts(this.cartonInput.value)
894
- worksheetDetailNames.push(selectedWorksheetDetailName[0].name)
885
+ let worksheetDetails = this._getSelectedOrderProducts(this.cartonInput.value)
886
+ worksheetDetails.forEach(itm => {
887
+ worksheetDetailNames.push(itm.name)
888
+ })
895
889
  } else worksheetDetailNames.push(this._selectedOrderProduct.name)
896
890
 
897
891
  const response = await client.mutate({
@@ -977,11 +971,15 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
977
971
  }
978
972
  }
979
973
 
980
- async _expiryAlert() {
981
- await CustomAlert({
974
+ async _expiryAlert(expiringProducts) {
975
+ const answer = await CustomAlert({
982
976
  title: i18next.t('title.location_scanned_is_not_a_quarantine_zone'),
983
- confirmButton: { text: i18next.t('button.confirm') }
977
+ text: i18next.t('text.x_is_expiring', { x: expiringProducts }),
978
+ confirmButton: { text: i18next.t('button.confirm') },
979
+ cancelButton: { text: i18next.t('button.cancel') }
984
980
  })
981
+
982
+ return answer
985
983
  }
986
984
 
987
985
  _getSelectedOrderProducts(scannedCartonId) {
@@ -991,7 +989,8 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
991
989
  return {
992
990
  name: record.name,
993
991
  expirationDate: record.expirationDate,
994
- expirationPeriod: record.product.expirationPeriod
992
+ expirationPeriod: record.product.expirationPeriod,
993
+ palletId: record.palletId
995
994
  }
996
995
  })
997
996
  }
@@ -1048,13 +1047,21 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
1048
1047
  }
1049
1048
  }
1050
1049
 
1051
- async _checkExpiry(expirationPeriod, expiryDate, locationType) {
1052
- let date = new Date()
1053
- let acceptBefore = new Date(date.setDate(date.getDate() + expirationPeriod))
1050
+ async _checkExpiry(worksheetDetails, locationType) {
1051
+ let expiringProducts = []
1052
+ for (let wsd of worksheetDetails) {
1053
+ new Date(wsd.expirationDate)
1054
+ let date = new Date()
1055
+ let acceptBefore = new Date(date.setDate(date.getDate() + wsd.expirationPeriod))
1054
1056
 
1055
- if (expirationPeriod > 0) {
1056
- if (expiryDate < acceptBefore && locationType !== 'QUARANTINE') await this._expiryAlert()
1057
+ if (wsd.expirationPeriod > 0 && wsd.expirationDate) {
1058
+ if (new Date(wsd.expirationDate) < acceptBefore && locationType !== 'QUARANTINE') {
1059
+ expiringProducts.push(wsd.palletId)
1060
+ }
1061
+ }
1057
1062
  }
1063
+
1064
+ return this._expiryAlert(expiringProducts.toString())
1058
1065
  }
1059
1066
 
1060
1067
  _validateTransfer() {
@@ -109,19 +109,11 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
109
109
  get context() {
110
110
  var actions = []
111
111
  if (this._worksheetLoaded && !this._enableCartonLabel) {
112
- if (this._usingReusablePallet) {
113
- actions.push({
114
- title: i18next.t('button.wooden_pallet'),
115
- action: this._woodenPalletMode.bind(this),
116
- ...CommonButtonStyles.activate
117
- })
118
- } else {
119
- actions.push({
120
- title: i18next.t('button.plastic_pallet'),
121
- action: this._reusablePalletMode.bind(this),
122
- ...CommonButtonStyles.activate
123
- })
124
- }
112
+ actions.push({
113
+ title: i18next.t('button.plastic_pallet'),
114
+ action: this._reusablePalletMode.bind(this),
115
+ ...CommonButtonStyles.activate
116
+ })
125
117
  }
126
118
 
127
119
  if (this._isLooseItem) {
@@ -667,6 +659,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
667
659
  if (!response.errors) {
668
660
  this._orderNo = orderNo
669
661
  const worksheetInfo = response.data.unloadingReturnWorksheet.worksheetInfo
662
+ this._worksheetInfo = worksheetInfo
670
663
 
671
664
  this.orderProductData = {
672
665
  records: orderBy(
@@ -799,6 +792,12 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
799
792
  async _scanProductUnload() {
800
793
  if (this._scanning) return this._showToast({ message: i18next.t('text.previous_scan_is_executing') })
801
794
  this._scanning = true
795
+
796
+ if (this._isRequiredCheckExpiry && this._expirationPeriod > 0) {
797
+ const answer = await this._checkExpiry()
798
+ if (!answer?.value) return (this._scanning = false)
799
+ }
800
+
802
801
  try {
803
802
  const response = await client.mutate({
804
803
  mutation: gql`
@@ -826,7 +825,6 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
826
825
  })
827
826
 
828
827
  if (!response.errors) {
829
- await this._checkExpiry()
830
828
  await this._fetchProducts(this._orderNo)
831
829
  }
832
830
  } catch (e) {
@@ -841,22 +839,27 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
841
839
  }
842
840
 
843
841
  async _checkExpiry() {
844
- if (this._isRequiredCheckExpiry && this._expirationPeriod > 0) {
845
- let date = new Date()
846
- const acceptBefore = new Date(date.setDate(date.getDate() + this._expirationPeriod))
847
- let expiryDate = new Date(this.expDateInput.value)
848
- if (expiryDate < acceptBefore) {
849
- await CustomAlert({
850
- title: i18next.t('title.item_unloading_is_expiring_soon'),
851
- confirmButton: { text: i18next.t('button.confirm') }
852
- })
853
- }
842
+ let date = new Date()
843
+ const acceptBefore = new Date(date.setDate(date.getDate() + this._expirationPeriod))
844
+ let expiryDate = new Date(this.expDateInput.value)
845
+ if (expiryDate < acceptBefore) {
846
+ return await CustomAlert({
847
+ title: i18next.t('title.item_unloading_is_expiring_soon'),
848
+ confirmButton: { text: i18next.t('button.confirm') },
849
+ cancelButton: { text: i18next.t('button.cancel') }
850
+ })
854
851
  }
855
852
  }
856
853
 
857
854
  async _qtyUnload() {
858
855
  if (this._scanning) return this._showToast({ message: i18next.t('text.previous_scan_is_executing') })
859
856
  this._scanning = true
857
+
858
+ if (this._isRequiredCheckExpiry && this._expirationPeriod > 0) {
859
+ const answer = await this._checkExpiry()
860
+ if (!answer?.value) return (this._scanning = false)
861
+ }
862
+
860
863
  try {
861
864
  const response = await client.mutate({
862
865
  mutation: gql`
@@ -877,7 +880,6 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
877
880
  }
878
881
  })
879
882
  if (!response.errors) {
880
- await this._checkExpiry()
881
883
  await this._fetchProducts(this._orderNo)
882
884
  }
883
885
  } catch (e) {
@@ -1113,25 +1115,25 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1113
1115
  if (this.refOrderType === AVAIL_ORDER_TYPES.ARRIVAL_NOTICE.value) {
1114
1116
  response = await client.mutate({
1115
1117
  mutation: gql`
1116
- mutation completeUnloadingPartially($arrivalNoticeNo: String!, $worksheetDetail: WorksheetDetailPatch!) {
1118
+ mutation completeUnloadingPartially($arrivalNoticeNo: String!, $worksheetDetail: [WorksheetDetailPatch!]) {
1117
1119
  completeUnloadingPartially(arrivalNoticeNo: $arrivalNoticeNo, worksheetDetail: $worksheetDetail)
1118
1120
  }
1119
1121
  `,
1120
1122
  variables: {
1121
1123
  arrivalNoticeNo: this._orderNo,
1122
- worksheetDetail: this._getWorksheetDetails().find(wsd => wsd.name === this._selectedOrderProduct.name)
1124
+ worksheetDetail: this._getWorksheetDetails('partial').filter(wsd => wsd.actualPackQty > 0)
1123
1125
  }
1124
1126
  })
1125
1127
  } else {
1126
1128
  response = await client.mutate({
1127
1129
  mutation: gql`
1128
- mutation completeUnloadReturnPartially($returnOrderNo: String!, $worksheetDetail: WorksheetDetailPatch!) {
1130
+ mutation completeUnloadReturnPartially($returnOrderNo: String!, $worksheetDetail: [WorksheetDetailPatch!]) {
1129
1131
  completeUnloadReturnPartially(returnOrderNo: $returnOrderNo, worksheetDetail: $worksheetDetail)
1130
1132
  }
1131
1133
  `,
1132
1134
  variables: {
1133
1135
  returnOrderNo: this._orderNo,
1134
- worksheetDetail: this._getWorksheetDetails().find(wsd => wsd.name === this._selectedOrderProduct.name)
1136
+ worksheetDetail: this._getWorksheetDetails('partial').filter(wsd => wsd.actualPackQty > 0)
1135
1137
  }
1136
1138
  })
1137
1139
  }
@@ -1308,6 +1310,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1308
1310
  this._worksheetInfo.plasticPallet = this._reusablePallet.name
1309
1311
  this.updateContext()
1310
1312
  }}
1313
+ @normalPallet=${async () => this._normalPalletMode()}
1311
1314
  ></popup-reusable-pallet>
1312
1315
  `,
1313
1316
  {
@@ -1319,10 +1322,10 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1319
1322
  )
1320
1323
  }
1321
1324
 
1322
- async _woodenPalletMode() {
1325
+ async _normalPalletMode() {
1323
1326
  const result = await CustomAlert({
1324
1327
  title: i18next.t('title.are_you_sure'),
1325
- text: i18next.t('text.use_wooden_pallet'),
1328
+ text: i18next.t('text.use_normal_pallet'),
1326
1329
  confirmButton: { text: i18next.t('button.confirm') },
1327
1330
  cancelButton: { text: i18next.t('button.cancel') }
1328
1331
  })
@@ -1330,7 +1333,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1330
1333
  if (!result.value) return
1331
1334
  this._usingReusablePallet = false
1332
1335
  this._reusablePalletName = this._worksheetInfo.plasticPallet = ''
1333
- this._showToast({ message: i18next.t('text.now_using_wooden_pallet') })
1336
+ this._showToast({ message: i18next.t('text.now_using_normal_pallet') })
1334
1337
  this.updateContext()
1335
1338
  }
1336
1339
 
@@ -1356,9 +1359,11 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1356
1359
  }
1357
1360
  }
1358
1361
 
1359
- _getWorksheetDetails() {
1362
+ _getWorksheetDetails(unloadType) {
1360
1363
  return this.orderProductData.records.map(task => {
1361
- return { name: task.name, issue: task.issue ? task.issue : null }
1364
+ return unloadType == 'partial'
1365
+ ? { name: task.name, issue: task.issue ? task.issue : null, actualPackQty: task.actualPackQty }
1366
+ : { name: task.name, issue: task.issue ? task.issue : null }
1362
1367
  })
1363
1368
  }
1364
1369
 
@@ -347,7 +347,7 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
347
347
  <div class="button-div">
348
348
  <mwc-button
349
349
  id="button-add-products"
350
- label=${i18next.t('button.add_products')}
350
+ label=${i18next.t('button.bulk_select_products')}
351
351
  raised
352
352
  @click=${e => this._openBulkProductSelection()}
353
353
  ?disabled=${!this._showAddProducts}
@@ -1658,7 +1658,7 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
1658
1658
  async bulkUploadValidateOrderProducts(patches) {
1659
1659
  const response = await client.query({
1660
1660
  query: gql`
1661
- query bulkUploadValidateOrderProducts($orderProducts: [NewOrderProduct], $partnerBizplaceId: String!) {
1661
+ query bulkUploadValidateOrderProducts($orderProducts: [NewOrderProduct!], $partnerBizplaceId: String!) {
1662
1662
  bulkUploadValidateOrderProducts(orderProducts: $orderProducts, partnerBizplaceId: $partnerBizplaceId) {
1663
1663
  id
1664
1664
  packingType
@@ -106,7 +106,7 @@ class B2bOrderList extends localize(i18next)(PageView) {
106
106
  async pageInitialized() {
107
107
  this.isUserBelongsDomain = await this._checkUserBelongsDomain()
108
108
  const [_orderStatusReq, _bizplacesReq] = await Promise.allSettled([
109
- getCodeByName('RO_LIST_STATUS'),
109
+ getCodeByName('RO_REQUESTS_STATUS'),
110
110
  this._fetchBizplaces()
111
111
  ])
112
112
 
@@ -577,6 +577,17 @@ class B2bOrderList extends localize(i18next)(PageView) {
577
577
  })
578
578
  return { header: headerSetting, data: data }
579
579
  }
580
+
581
+ _showToast({ type, message }) {
582
+ document.dispatchEvent(
583
+ new CustomEvent('notify', {
584
+ detail: {
585
+ type,
586
+ message
587
+ }
588
+ })
589
+ )
590
+ }
580
591
  }
581
592
 
582
593
  window.customElements.define('b2b-order-list', B2bOrderList)
@@ -252,6 +252,8 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
252
252
  } else {
253
253
  this._warehouseTransportInput.checked = true
254
254
  this._warehouseTransport = true
255
+ this._exportOptionInput.checked = false
256
+ this._exportOption = false
255
257
  }
256
258
  this._validateTransport()
257
259
  }}"
@@ -269,6 +271,8 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
269
271
  if (this._warehouseTransport) {
270
272
  this._ownTransportInput.checked = false
271
273
  this._ownTransport = false
274
+ this._exportOptionInput.checked = false
275
+ this._exportOption = false
272
276
  } else {
273
277
  this._ownTransportInput.checked = true
274
278
  this._ownTransport = true
@@ -288,6 +292,16 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
288
292
  ?hidden="${!this._checkTransport}"
289
293
  @change="${e => {
290
294
  this._exportOption = e.currentTarget.checked
295
+ if (this._exportOption == true) {
296
+ this._warehouseTransportInput.checked = false
297
+ this._warehouseTransport = false
298
+ this._ownTransportInput.checked = true
299
+ this._ownTransport = true
300
+ }
301
+ if (this._warehouseTransport) {
302
+ this._exportOptionInput.checked = false
303
+ this._exportOption = false
304
+ }
291
305
  }}"
292
306
  />
293
307
  <label for="exportOption" ?hidden="${!this._checkTransport}">${i18next.t('label.export')}</label>
@@ -294,7 +294,8 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
294
294
  <input name="refNo3" ?readonly="${!this?._editable}" />
295
295
 
296
296
  <label>${i18next.t('label.release_date')}</label>
297
- <input name="releaseDate" type="date" ?readonly="${!this?._editable}" required />
297
+ <input name="releaseDate" type="date" ?readonly="${!this
298
+ ?._editable}" min="${this._getStdDate()}" required />
298
299
 
299
300
  <label ?hidden="${!this._ownTransport}">${i18next.t('label.co_no')}</label>
300
301
  <input name="collectionOrderNo" ?hidden="${!this._ownTransport}" ?readonly="${!this?._editable}" />