hotFix(ticket): refs #7225 fix advanced and movable #2356
|
@ -150,7 +150,7 @@ module.exports = Self => {
|
||||||
const salesNewTicket = salesMovable.filter(sale => (sale.movable ? sale.movable : 0) >= sale.quantity);
|
const salesNewTicket = salesMovable.filter(sale => (sale.movable ? sale.movable : 0) >= sale.quantity);
|
||||||
|
|
||||||
const salesNewTicketLength = salesNewTicket.length;
|
const salesNewTicketLength = salesNewTicket.length;
|
||||||
if (salesNewTicketLength && sales.length != salesNewTicketLength) {
|
if (salesNewTicketLength && (args.newTicket || sales.length != salesNewTicketLength)) {
|
||||||
const newTicket = await models.Ticket.transferSales(
|
const newTicket = await models.Ticket.transferSales(
|
||||||
ctx,
|
ctx,
|
||||||
args.id,
|
args.id,
|
||||||
|
|
Loading…
Reference in New Issue