Skip to content

Commit

Permalink
Fixed: scheduled time issue and replace inbound in job section to shi…
Browse files Browse the repository at this point in the history
…pmentId(hotwax#285)
  • Loading branch information
R-Sourabh committed May 31, 2024
1 parent dea2ee0 commit a987002
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/store/modules/stock/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const actions: ActionTree<StockState, RootState> = {
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")
Expand Down Expand Up @@ -149,7 +149,7 @@ const actions: ActionTree<StockState, RootState> = {
}

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 {
Expand Down
4 changes: 3 additions & 1 deletion src/views/ScheduledRestock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
<ion-label>
<p class="overline">{{ job.jobId }}</p>
{{ job.jobName }}
<p>inbound</p>
<p>{{ job.runTimeData.shipmentId }}</p>
</ion-label>
<ion-button class="date-time-button" @click="changeRunTime(job)">{{ getTime(job.runTime) ? getTime(job.runTime) : 'Select time' }}</ion-button>
<ion-button fill="clear" color="medium" @click="openScheduledRestockPopover($event, job)">
Expand Down Expand Up @@ -194,6 +194,8 @@ export default defineComponent({
},
mixins:[ parseFileMixin ],
async ionViewDidEnter() {
this.schedule = ""
this.restockName = ""
this.selectedProductStoreId = ""
this.selectedShopifyShopId = ""
this.file = {}
Expand Down

0 comments on commit a987002

Please sign in to comment.