diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 94e1c719..712c0545 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -28,7 +28,6 @@ "Cancel orders": "Cancel orders", "Catalog": "Catalog", "Category": "Category", - "Category and brokering jobs": "Category and brokering jobs", "Change": "Change", "Change time zone": "Change time zone", "Click the backdrop to dismiss.": "Click the backdrop to dismiss.", @@ -166,6 +165,7 @@ "Product not found": "Product not found", "Purchase orders": "Purchase orders", "Quantity on hand": "Quantity on hand", + "Related jobs": "Related jobs", "Release": "Release", "Release item": "Release item", "Release orders": "Release orders", diff --git a/src/views/catalog-product-details.vue b/src/views/catalog-product-details.vue index edd778dd..0497b0ea 100644 --- a/src/views/catalog-product-details.vue +++ b/src/views/catalog-product-details.vue @@ -272,7 +272,7 @@ -

{{ $t('Category and brokering jobs') }}

+

{{ $t('Related jobs') }}

@@ -733,8 +733,8 @@ export default defineComponent({ if (hasError(resp[1]) && resp[1]?.data?.error !== "No record found") showToast(this.$t("Something went wrong, could not fetch", { data: 'online ATP' })) 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 + if (typeof resp[0].data?.availableToPromiseTotal === 'number' && typeof this.atpCalcDetails.onlineAtp === 'number') { + this.atpCalcDetails.excludedAtp = resp[0].data?.availableToPromiseTotal - resp[1].data?.onlineAtp } } catch (error) { showToast(translate('Something went wrong'))