aggio modif

This commit is contained in:
Surya Paolo
2024-01-10 20:44:54 +01:00
parent c80b1da42d
commit ee064854a7
4 changed files with 38 additions and 12 deletions

View File

@@ -87,9 +87,9 @@
class="text-black q-ml-xs text-h8"
v-if="myproduct.productInfo.unit"
>
{{ myproduct.productInfo.weight }}
{{ tools.getWeightByUnit(myproduct.productInfo.unit, true, myproduct.productInfo.weight) }}
{{
tools.getUnitsMeasure(myproduct.productInfo.unit, true)
tools.getUnitsMeasure(myproduct.productInfo.unit, true, myproduct.productInfo.weight)
}}</span
>
</q-item-label>
@@ -429,13 +429,13 @@
<span v-if="getpercqtaraggiunta() >= 1">{{
t('ecomm.offerta_gas_raggiunta', {
qta: myproduct.qtyToReachForGas,
unit: tools.getUnitsMeasure(myproduct.productInfo.unit, true),
unit: tools.getUnitsMeasure(myproduct.productInfo.unit, true, myproduct.productInfo.weight),
})
}}</span>
<span v-else>{{
t('ecomm.offerta_gas', {
qta: myproduct.qtyToReachForGas,
unit: tools.getUnitsMeasure(myproduct.productInfo.unit, true),
unit: tools.getUnitsMeasure(myproduct.productInfo.unit, true, myproduct.productInfo.weight),
})
}}</span>
</q-item-label>

View File

@@ -58,6 +58,7 @@
borderless
rounded
dense
@update:model-value="updateOrder"
:label="$t('ecomm.preord')"
></q-input>
</div>
@@ -85,7 +86,7 @@
<q-item-label>
<div class="col-2 no-wrap text-subtitle3_short q-mr-sm">
<span class="prezzo_singolo">
{{ order.quantity + order.quantitypreordered }} x
{{ (order.quantity + order.quantitypreordered) }} x
{{ order.price ? order.price : 0 }}
</span>
<span :class="isApplicatoSconto() ? 'ordine_scontato_nuovo' : ''">
@@ -102,8 +103,8 @@
>
{{
(
order.price * order.quantity +
order.price * order.quantitypreordered
(order.price * order.quantity) +
(order.price * order.quantitypreordered)
).toFixed(2)
}}</span
>)</span