From 1a58424531e919e291f15d6296807205ac2c2c45 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 12 Jun 2023 08:33:31 +0200 Subject: [PATCH 1/2] refs #5327 warnFix(ticket_sale): fix orderBy amount itemPackingType --- modules/ticket/front/sale/index.html | 4 ++-- modules/ticket/front/sale/index.js | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/ticket/front/sale/index.html b/modules/ticket/front/sale/index.html index f50ef10a5..e0f4e4ed5 100644 --- a/modules/ticket/front/sale/index.html +++ b/modules/ticket/front/sale/index.html @@ -69,7 +69,7 @@ Price Disc Amount - Packaging + Packaging @@ -202,7 +202,7 @@ - {{$ctrl.getSaleTotal(sale) | currency: 'EUR':2}} + {{::sale.amount | currency: 'EUR':2}} {{::sale.item.itemPackingTypeFk | dashIfEmpty}} diff --git a/modules/ticket/front/sale/index.js b/modules/ticket/front/sale/index.js index 88a59e605..b68db6dc0 100644 --- a/modules/ticket/front/sale/index.js +++ b/modules/ticket/front/sale/index.js @@ -34,6 +34,11 @@ class Controller extends Section { } get sales() { + if (this._sales) { + for (let sale of this._sales) + sale.amount = this.getSaleTotal(sale); + } + return this._sales; } @@ -49,6 +54,7 @@ class Controller extends Section { return ticketState && ticketState.state.code; } + getConfig() { let filter = { fields: ['daysForWarningClaim'], -- 2.40.1 From 2c0c0f24b0083f9c898680da9843ab4b9be690d7 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 12 Jun 2023 08:36:19 +0200 Subject: [PATCH 2/2] reactive --- modules/ticket/front/sale/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ticket/front/sale/index.html b/modules/ticket/front/sale/index.html index e0f4e4ed5..be9e81964 100644 --- a/modules/ticket/front/sale/index.html +++ b/modules/ticket/front/sale/index.html @@ -202,7 +202,7 @@ - {{::sale.amount | currency: 'EUR':2}} + {{sale.amount | currency: 'EUR':2}} {{::sale.item.itemPackingTypeFk | dashIfEmpty}} -- 2.40.1