hotFix(ticket): refs #7225 fix advanced and movable #2356

Merged
alexm merged 6 commits from 7225-hotFix_ticket_advanced_movable into master 2024-04-25 05:52:40 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 69486fb29f - Show all commits

View File

@ -150,7 +150,7 @@ module.exports = Self => {
const salesNewTicket = salesMovable.filter(sale => (sale.movable ? sale.movable : 0) >= sale.quantity);
const salesNewTicketLength = salesNewTicket.length;
if (salesNewTicketLength && sales.length != salesNewTicketLength) {
if (salesNewTicketLength && (args.newTicket || sales.length != salesNewTicketLength)) {
const newTicket = await models.Ticket.transferSales(
ctx,
args.id,