Skip to content

Commit

Permalink
Merge pull request #209 from hotwax/#200
Browse files Browse the repository at this point in the history
Improved: Show old missing SKU value (#200)
  • Loading branch information
adityasharma7 authored May 4, 2023
2 parents f4e7299 + 7097b62 commit 0e14fa4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/components/PurchaseOrderDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
<Image :src="item.imageUrl" />
</ion-thumbnail>
<ion-label class="ion-text-wrap">
{{ item.pseudoId }}
<h3>{{ item.pseudoId }}</h3>
<p v-if="item.initialSKU">{{ item.initialSKU }}</p>
</ion-label>
</ion-item>
<ion-chip outline class="tablet">
Expand Down
1 change: 1 addition & 0 deletions src/store/modules/order/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const actions: ActionTree<OrderState, RootState> = {
let original = state.purchaseOrders.original as any;
const unidentifiedItems = payload.unidentifiedItems.map((item: any) => {
if(item.updatedSku) {
item.initialSKU = item.shopifyProductSKU;
item.shopifyProductSKU = item.updatedSku;
parsed[item.orderId] ? parsed[item.orderId].push(item) : parsed[item.orderId] = [item];
original[item.orderId] ? original[item.orderId].push(item) : original[item.orderId] = [item];
Expand Down
1 change: 1 addition & 0 deletions src/store/modules/stock/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const actions: ActionTree<StockState, RootState> = {
const parsed = state.items.parsed as any;
const unidentifiedItems = payload.unidentifiedItems.map((item: any) => {
if(item.updatedSku) {
item.initialSKU = item.shopifyProductSKU;
item.shopifyProductSKU = item.updatedSku;
parsed.push(item);
state.items.original.push(item);
Expand Down
8 changes: 5 additions & 3 deletions src/views/InventoryReview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@
<ion-thumbnail>
<Image :src="searchedProduct.imageUrl" />
</ion-thumbnail>
<ion-label>
{{ searchedProduct.pseudoId }}
<ion-label class="ion-text-wrap">
<h3>{{ searchedProduct.pseudoId }}</h3>
<p v-if="searchedProduct.initialSKU">{{ searchedProduct.initialSKU }}</p>
</ion-label>
</ion-item>

Expand Down Expand Up @@ -102,7 +103,8 @@
<Image :src="item.imageUrl" />
</ion-thumbnail>
<ion-label class="ion-text-wrap">
{{ item.pseudoId }}
<h3>{{ item.pseudoId }}</h3>
<p v-if="item.initialSKU">{{ item.initialSKU }}</p>
</ion-label>
</ion-item>

Expand Down

0 comments on commit 0e14fa4

Please sign in to comment.