Skip to content

Commit

Permalink
Merge pull request #431 from R-Sourabh/#429-inventory-updation
Browse files Browse the repository at this point in the history
Improved: Inventory will update after shipment & return(#429)
  • Loading branch information
ymaheshwari1 authored Dec 11, 2024
2 parents 92548d8 + 880600a commit d02d18f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/views/ReturnDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ export default defineComponent({
const current = await this.store.dispatch('return/setCurrent', { shipmentId: this.$route.params.id })
this.observeProductVisibility();
},
ionViewDidLeave() {
this.productQoh = {};
},
computed: {
...mapGetters({
current: 'return/getCurrent',
Expand Down
3 changes: 3 additions & 0 deletions src/views/ShipmentDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ export default defineComponent({
await this.store.dispatch('shipment/setCurrent', { shipmentId: this.$route.params.id })
this.observeProductVisibility();
},
ionViewDidLeave() {
this.productQoh = {};
},
computed: {
...mapGetters({
current: 'shipment/getCurrent',
Expand Down

0 comments on commit d02d18f

Please sign in to comment.