Merge pull request '4372-refund_3.0' (#1037) from 4372-refund_3.0 into test
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #1037 Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
commit
104773d909
|
@ -98,7 +98,7 @@ module.exports = Self => {
|
||||||
const createdSale = await models.Sale.create({
|
const createdSale = await models.Sale.create({
|
||||||
ticketFk: refundTicketId,
|
ticketFk: refundTicketId,
|
||||||
itemFk: sale.itemFk,
|
itemFk: sale.itemFk,
|
||||||
quantity: sale.quantity,
|
quantity: - sale.quantity,
|
||||||
concept: sale.concept,
|
concept: sale.concept,
|
||||||
price: sale.price,
|
price: sale.price,
|
||||||
discount: sale.discount,
|
discount: sale.discount,
|
||||||
|
@ -122,7 +122,7 @@ module.exports = Self => {
|
||||||
|
|
||||||
await models.TicketService.create({
|
await models.TicketService.create({
|
||||||
description: service.description,
|
description: service.description,
|
||||||
quantity: service.quantity,
|
quantity: - service.quantity,
|
||||||
price: service.price,
|
price: service.price,
|
||||||
taxClassFk: service.taxClassFk,
|
taxClassFk: service.taxClassFk,
|
||||||
ticketFk: refundTicketId,
|
ticketFk: refundTicketId,
|
||||||
|
|
Loading…
Reference in New Issue