From a987002aa5e4b7b5c9282d55785e32987e6b0183 Mon Sep 17 00:00:00 2001 From: R-Sourabh Date: Fri, 31 May 2024 11:13:33 +0530 Subject: [PATCH] Fixed: scheduled time issue and replace inbound in job section to shipmentId(#285) --- src/store/modules/stock/actions.ts | 4 ++-- src/views/ScheduledRestock.vue | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/store/modules/stock/actions.ts b/src/store/modules/stock/actions.ts index c243713..c53cfd0 100644 --- a/src/store/modules/stock/actions.ts +++ b/src/store/modules/stock/actions.ts @@ -117,7 +117,7 @@ const actions: ActionTree = { commit(types.STOCK_SHOPIFY_SHOPS_UPDATED, payload) }, - async scheduleService({ dispatch, state }, { params, restockName }) { + async scheduleService({ dispatch, state }, { params, restockName, scheduledTime}) { let resp; const job = await dispatch("fetchDraftJob") @@ -149,7 +149,7 @@ const actions: ActionTree = { } job?.priority && (payload['SERVICE_PRIORITY'] = job.priority.toString()) - payload['SERVICE_TIME'] = state.schedule.scheduledTime.toString() + payload['SERVICE_TIME'] = scheduledTime || state.schedule.scheduledTime.toString() job?.sinceId && (payload['sinceId'] = job.sinceId) try { diff --git a/src/views/ScheduledRestock.vue b/src/views/ScheduledRestock.vue index 2077041..1f454fc 100644 --- a/src/views/ScheduledRestock.vue +++ b/src/views/ScheduledRestock.vue @@ -99,7 +99,7 @@

{{ job.jobId }}

{{ job.jobName }} -

inbound

+

{{ job.runTimeData.shipmentId }}

{{ getTime(job.runTime) ? getTime(job.runTime) : 'Select time' }} @@ -194,6 +194,8 @@ export default defineComponent({ }, mixins:[ parseFileMixin ], async ionViewDidEnter() { + this.schedule = "" + this.restockName = "" this.selectedProductStoreId = "" this.selectedShopifyShopId = "" this.file = {}