fix(regularizeClaim): refound with negative quantity
gitea/salix/pipeline/head This commit looks good Details

Refs: #4148
This commit is contained in:
Joan Sanchez 2022-06-01 09:36:47 +02:00
parent 54fdcb354f
commit 4ac26895ba
1 changed files with 1 additions and 2 deletions

View File

@ -86,12 +86,11 @@ module.exports = Self => {
};
ticketFk = await createTicket(ctx, myOptions);
}
await models.Sale.create({
ticketFk: ticketFk,
itemFk: sale.itemFk,
concept: sale.concept,
quantity: -sale.quantity,
quantity: sale.quantity,
price: sale.price,
discount: 100
}, myOptions);