Skip to content

Commit

Permalink
Fixed: wrong excluded atp on catalog details page by calculating excl…
Browse files Browse the repository at this point in the history
…uded atp using atp and onlineAtp(hotwax#240)
  • Loading branch information
ymaheshwari1 committed Oct 9, 2023
1 parent 0232b87 commit b0d035f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/catalog-product-details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ export default defineComponent({
else this.atpCalcDetails.onlineAtp = resp[1].data?.onlineAtp

if (typeof this.atpCalcDetails.totalQOH === 'number' && typeof this.atpCalcDetails.onlineAtp === 'number') {
this.atpCalcDetails.excludedAtp = resp[0].data?.quantityOnHandTotal - resp[1].data?.onlineAtp
this.atpCalcDetails.excludedAtp = resp[0].data?.availableToPromiseTotal - resp[1].data?.onlineAtp
}
} catch (error) {
showToast(translate('Something went wrong'))
Expand Down

0 comments on commit b0d035f

Please sign in to comment.