Skip to content

Commit

Permalink
Improved: added check to handle '0' qoh of a product(#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Sourabh committed Nov 11, 2024
1 parent a828bc2 commit 5030e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/ShipmentDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</div>

<div class="location">
<ion-button v-if="!productQoh[item.productId]" fill="clear" @click.stop="fetchQuantityOnHand(item.productId)">
<ion-button v-if="!(productQoh[item.productId] >= 0)" fill="clear" @click.stop="fetchQuantityOnHand(item.productId)">
<ion-icon color="medium" slot="icon-only" :icon="cubeOutline" />
</ion-button>
<ion-chip v-else outline>
Expand Down

0 comments on commit 5030e2c

Please sign in to comment.