fix: quantity negative for refunds
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
468da0c5a9
commit
6f754d962e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue