From 6f754d962e546025466f1ce6b7bd6beaea37e6bb Mon Sep 17 00:00:00 2001 From: vicent Date: Thu, 4 Aug 2022 14:19:21 +0200 Subject: [PATCH] fix: quantity negative for refunds --- modules/ticket/back/methods/sale/refund.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ticket/back/methods/sale/refund.js b/modules/ticket/back/methods/sale/refund.js index 66c0550e0..c0c431636 100644 --- a/modules/ticket/back/methods/sale/refund.js +++ b/modules/ticket/back/methods/sale/refund.js @@ -98,7 +98,7 @@ module.exports = Self => { const createdSale = await models.Sale.create({ ticketFk: refundTicketId, itemFk: sale.itemFk, - quantity: sale.quantity, + quantity: - sale.quantity, concept: sale.concept, price: sale.price, discount: sale.discount, @@ -122,7 +122,7 @@ module.exports = Self => { await models.TicketService.create({ description: service.description, - quantity: service.quantity, + quantity: - service.quantity, price: service.price, taxClassFk: service.taxClassFk, ticketFk: refundTicketId,