diff --git a/src/common/shared_vuejs.ts b/src/common/shared_vuejs.ts index aeaa3074..9175af1d 100755 --- a/src/common/shared_vuejs.ts +++ b/src/common/shared_vuejs.ts @@ -308,6 +308,7 @@ export const shared_consts = { CAT_SKILL_TXT: 4, CAT_NO_SPAZI: 5, CAT_GOODS_TXT: 10, + PRODUCTS: 20, }, BotType: [ diff --git a/src/components/CProductCard/CProductCard.ts b/src/components/CProductCard/CProductCard.ts index 65bf636d..1b851d87 100755 --- a/src/components/CProductCard/CProductCard.ts +++ b/src/components/CProductCard/CProductCard.ts @@ -154,8 +154,8 @@ export default defineComponent({ if (myorder.value.quantity > 0) { myproduct.value.quantityAvailable -= myorder.value.quantity } - if (myproduct.value.tempTotalQty > 0) { - myproduct.value.quantityAvailable -= myproduct.value.tempTotalQty + if (myproduct.value.QuantitaOrdinateInAttesa > 0) { + myproduct.value.quantityAvailable -= myproduct.value.QuantitaOrdinateInAttesa } } diff --git a/src/components/CProductCard/CProductCard.vue b/src/components/CProductCard/CProductCard.vue index c8e9d38e..6231df96 100755 --- a/src/components/CProductCard/CProductCard.vue +++ b/src/components/CProductCard/CProductCard.vue @@ -1,8 +1,7 @@