fix(regularizeClaim): refound with negative quantity
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Refs: #4148
This commit is contained in:
parent
54fdcb354f
commit
4ac26895ba
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue