- Uscita PRIMA VERSIONE PiuCheBuono.app
This commit is contained in:
@@ -67,7 +67,7 @@ export default defineComponent({
|
||||
{
|
||||
name: 'items',
|
||||
required: true,
|
||||
label: 'Articoli',
|
||||
label: '',
|
||||
field: 'items',
|
||||
sortable: true
|
||||
},
|
||||
@@ -157,7 +157,6 @@ export default defineComponent({
|
||||
|
||||
function getOrdersCart(): IOrderCart[] | undefined {
|
||||
const hasGasordine: any = (cosa.value === shared_consts.PROD.TUTTI) ? undefined : (cosa.value === shared_consts.PROD.GAS)
|
||||
console.log('hasgas', hasGasordine)
|
||||
const ris = productStore.getOrdersCart(taborders.value, hasGasordine)
|
||||
|
||||
return ris
|
||||
@@ -180,8 +179,12 @@ export default defineComponent({
|
||||
totalPrice: orderscart.reduce((total: number, rec: any) => total + rec.totalPrice, 0),
|
||||
};
|
||||
|
||||
// Combine orders and totals
|
||||
const rowsWithTotals = [...orderscart, totals];
|
||||
let rowsWithTotals: any = [...orderscart];
|
||||
|
||||
if (tools.isManager()) {
|
||||
// Combine orders and totals
|
||||
rowsWithTotals.push(totals);
|
||||
}
|
||||
|
||||
return rowsWithTotals;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user