Skip to content

Commit

Permalink
Merge branch 'main' into #290
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Sep 24, 2024
2 parents 48e1f51 + 517f2e2 commit 7a5cac9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "preorder-app",
"version": "1.17.0",
"version": "1.18.0",
"private": true,
"description": "HotWax Commece Pre-order App",
"scripts": {
Expand Down
5 changes: 4 additions & 1 deletion src/views/orders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ export default defineComponent({
selectedItemsToCancel: 'order.getSelectedItemsToCancel',
selectedItemsCount: 'order/getSelectedItemsCount',
userProfile: 'user/getUserProfile',
query: 'order/getQuery'
query: 'order/getQuery',
currentEComStore: 'user/getCurrentEComStore',
}),
},
async ionViewWillEnter() {
Expand Down Expand Up @@ -326,6 +327,7 @@ export default defineComponent({
const fileName = "ReleaseItems_" + Date.now() +".json";
formData.append("uploadedFile", blob, fileName);
formData.append("configId", "MDM_REL_ORD_ITM_JSON");
formData.append("param_productStoreId", this.currentEComStore.productStoreId);
this.deselectSelectedItems();
return this.store.dispatch("order/releaseItems", {
headers: {
Expand All @@ -346,6 +348,7 @@ export default defineComponent({
const fileName = "CancelItems_" + Date.now() +".json";
formData.append("uploadedFile", blob, fileName);
formData.append("configId", "MDM_CAN_ORD_ITM_JSON");
formData.append("param_productStoreId", this.currentEComStore.productStoreId);
this.deselectSelectedItems();
return this.store.dispatch("order/cancelItems", {
headers: {
Expand Down
3 changes: 3 additions & 0 deletions src/views/product-details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ export default defineComponent({
const fileName = "ReleaseItems_" + Date.now() +".json";
formData.append("uploadedFile", blob, fileName);
formData.append("configId", "MDM_REL_ORD_ITM_JSON");
formData.append("param_productStoreId", this.currentEComStore.productStoreId);
return this.store.dispatch("order/releaseItems", {
headers: {
'Content-Type': 'multipart/form-data;'
Expand Down Expand Up @@ -475,6 +477,7 @@ export default defineComponent({
const fileName = "CancelItems_" + Date.now() +".json";
formData.append("uploadedFile", blob, fileName);
formData.append("configId", "MDM_CAN_ORD_ITM_JSON");
formData.append("param_productStoreId", this.currentEComStore.productStoreId);
return this.store.dispatch("order/cancelItems", {
headers: {
'Content-Type': 'multipart/form-data;'
Expand Down
2 changes: 2 additions & 0 deletions src/views/promise-date-modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default defineComponent({
...mapGetters({
jobTotal: 'job/getTotal',
getSelectedItemsToUpdatePromiseDate: 'order/getSelectedItemsToUpdatePromiseDate',
currentEComStore: 'user/getCurrentEComStore',
}),
disableUpdate(): boolean {
return this.promisedDatetime === '' || (this.item && this.item.promisedDatetime && DateTime.fromFormat(this.item.promisedDatetime, "yyyy-MM-dd hh:mm:ss.SSS").toFormat("yyyy-MM-dd") === this.promisedDatetime);
Expand Down Expand Up @@ -94,6 +95,7 @@ export default defineComponent({
const fileName = "UpdatePromiseDateItems_" + Date.now() +".json";
formData.append("uploadedFile", blob, fileName);
formData.append("configId", "MDM_UPD_ORD_ITM_JSON");
formData.append("param_productStoreId", this.currentEComStore.productStoreId);
return this.store.dispatch("order/updatePromiseDateItems", {
headers: {
'Content-Type': 'multipart/form-data;'
Expand Down
1 change: 1 addition & 0 deletions src/views/warehouse-modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export default defineComponent({
const fileName = "ReleaseItemsToWarehouse_" + Date.now() +".json";
formData.append("uploadedFile", blob, fileName);
formData.append("configId", "MDM_REL_ORD_ITM_JSON");
formData.append("param_productStoreId", this.currentEComStore.productStoreId);
return this.store.dispatch("order/releaseItems", {
headers: {
'Content-Type': 'multipart/form-data;'
Expand Down

0 comments on commit 7a5cac9

Please sign in to comment.