Corretto incongruenze OrdersCart

This commit is contained in:
Surya Paolo
2023-12-21 01:34:39 +01:00
parent 9104a1eceb
commit 31014b21c0
7 changed files with 198 additions and 81 deletions

View File

@@ -109,12 +109,12 @@
<q-list>
<q-item
:clickable="tools.isManager()"
@click="tools.isManager() ? (openlistorders = true) : null"
@click="tools.isManager() ? (visuListDisponibili()) : null"
>
<q-item-section avatar>
<q-icon
:color="getQtyAvailable() >= 0 ? 'green' : 'blue'"
:name="getQtyAvailable() >= 0 ? 'fas fa-store' : 'fas fa-edit'"
color="green"
name="fas fa-store"
/>
</q-item-section>
@@ -146,9 +146,9 @@
</q-item-section>
</q-item>
<q-item
v-if="getQtyBookableAvailable() > 0"
v-if="getQtyBookableAvailable() > 0 || (myproduct.bookableQty > 0)"
:clickable="tools.isManager()"
@click="tools.isManager() ? (openlistorders = true) : null"
@click="tools.isManager() ? (visuListBookable()) : null"
>
<q-item-section avatar>
<q-icon color="blue" name="fas fa-edit" />
@@ -210,7 +210,6 @@
class="self-center no-outline"
tabindex="0"
>
Preord.: {{ myorder.quantitypreordered }}
</div>
</template>
</q-field>
@@ -298,7 +297,7 @@
<tbody>
<tr
v-for="(ordcart, index) of arrordersCart"
v-for="(ordcart, index) of listord"
:key="index"
class="listaev listaev__table"
>
@@ -347,7 +346,7 @@
<td class="text-center">
Totali:
<span class="totali">{{
products.getSumQtyOrderProductInOrdersCart(myproduct._id)
sumval
}}</span>
</td>
<td>&nbsp;</td>