diff --git a/modules/ticket/back/methods/sale/refund.js b/modules/ticket/back/methods/sale/refund.js
index af58a6286..18ccee976 100644
--- a/modules/ticket/back/methods/sale/refund.js
+++ b/modules/ticket/back/methods/sale/refund.js
@@ -101,6 +101,9 @@ module.exports = Self => {
}
}
+ const query = `CALL vn.ticket_recalc(?)`;
+ await Self.rawSql(query, [refundTicket.id], myOptions);
+
if (tx) await tx.commit();
return refundTicket;
diff --git a/modules/ticket/front/sale/index.html b/modules/ticket/front/sale/index.html
index f7b3c161d..7d14a4fa3 100644
--- a/modules/ticket/front/sale/index.html
+++ b/modules/ticket/front/sale/index.html
@@ -61,20 +61,20 @@
- Visible
- Available
- Id
- Quantity
- Item
- Price
- Disc
- Amount
- Packaging
+ Visible
+ Available
+ Id
+ Quantity
+ Item
+ Price
+ Disc
+ Amount
+ Packaging
-
+
@@ -481,7 +481,7 @@
on-accept="$ctrl.transferSales($ctrl.transfer.ticketId)">
-
- Add claim
+ Add claim
{
expect(controller.$.editDiscount.hide).toHaveBeenCalledWith();
});
});
+
+ describe('sortBy()', () => {
+ it('should set reverse and propertyName properties', () => {
+ const propertyName = 'id';
+ controller.sortBy(propertyName);
+
+ expect(controller.propertyName).toEqual(propertyName);
+ expect(controller.reverse).toEqual(false);
+ });
+ });
});
});