- corretto cancellazione ordine

This commit is contained in:
Surya Paolo
2024-02-15 18:59:13 +01:00
parent c6e0caa3f4
commit a82e07b4ce
5 changed files with 58 additions and 8 deletions

View File

@@ -3,7 +3,6 @@
v-if="order && order.product && order.product.productInfo"
class="q-pa-xs q-gutter-xs"
>
order: {{order}}
<div v-if="order.product">
<q-item>
<q-item-section top thumbnail class="q-ml-none">
@@ -26,7 +25,7 @@
</div>
{{ order.product.productInfo.name }}
</q-item-label>
<q-item-label caption>
<div
class="text-black text-h8"
@@ -65,7 +64,16 @@
</div>
<div class="row q-mb-xs no-wrap items-center centeritems">
<q-btn
v-if="showall && !nomodif"
v-if="showall && !nomodif && products.CanDeleteIfSub(order)"
icon="fas fa-trash"
color="negative"
round
size="xs"
@click="removeFromCard"
>
</q-btn>
<q-btn
v-else-if="showall && !nomodif"
:disable="!products.enableSubQty(order)"
size="sm"
icon="fas fa-cart-arrow-down"
@@ -123,7 +131,7 @@
updateOrder({
quantitypreordered: order.quantitypreordered,
quantity: order.quantity,
price: order.price,
price: order.price,
})
"
>
@@ -167,7 +175,8 @@
<span
v-if="
tools.isManager() &&
order.TotalPriceProduct.toFixed(2) !== order.TotalPriceProductCalc.toFixed(2)
order.TotalPriceProduct.toFixed(2) !==
order.TotalPriceProductCalc.toFixed(2)
"
:class="isApplicatoSconto() ? 'ordine_scontato_nuovo' : ''"
>