Skip to content

Commit

Permalink
Improved: used logger instead of this. and used ODR_FLMNT_HST key of …
Browse files Browse the repository at this point in the history
…VUE_APP_FULFILLMENT_JOB_ENUMS in fulfullment view (#597)
  • Loading branch information
sanskar345 committed Aug 28, 2023
1 parent 4a0af35 commit 135abd0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/views/Fulfillment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
<ion-card-header>
<ion-card-title>{{ $t("History") }}</ion-card-title>
</ion-card-header>
<ion-item button @click="viewJobConfiguration({ id: 'ODR_FULFILLMENT', status: getJobStatus(jobEnums['ODR_FULFILLMENT']) })" detail>
<ion-item button @click="viewJobConfiguration({ id: 'ODR_FLMNT_HST', status: getJobStatus(jobEnums['ODR_FLMNT_HST']) })" detail>
<ion-label class="ion-text-wrap">{{ $t("Order fulfillment") }}</ion-label>
<ion-label slot="end">{{ getTemporalExpression('ODR_FULFILLMENT') }}</ion-label>
<ion-label slot="end">{{ getTemporalExpression('ODR_FLMNT_HST') }}</ion-label>
</ion-item>
<ion-item lines="none">
<ion-label class="ion-text-wrap">
Expand Down Expand Up @@ -101,6 +101,7 @@ import emitter from '@/event-bus';
import { JobService } from '@/services/JobService'
import MoreJobs from '@/components/MoreJobs.vue';
import { Actions, hasPermission } from '@/authorization'
import logger from '@/logger';
export default defineComponent({
name: 'Fulfillment',
Expand Down Expand Up @@ -165,7 +166,7 @@ export default defineComponent({
}
} catch (err) {
showToast(translate('Something went wrong'))
this.$log.error(err)
logger.error(err)
}
} else {
showToast(translate('Unable to update auto cancel days. None product store selected.'));
Expand Down Expand Up @@ -227,11 +228,11 @@ export default defineComponent({
if (resp.status === 200 && !hasError(resp) && resp.data.docs?.length > 0 ) {
this.autoCancelDays = resp.data.docs[0].daysToCancelNonPay;
} else {
this.$log.error(resp)
logger.error(resp)
this.autoCancelDays = "";
}
} catch (err) {
this.$log.error(err)
logger.error(err)
this.autoCancelDays = "";
}
},
Expand Down

0 comments on commit 135abd0

Please sign in to comment.