7225-hotFix_ticket_advanced_movable a dev para probar #2366

Merged
alexm merged 6 commits from 7225-hotFix_ticket_advanced_movable into dev 2024-04-24 12:34:48 +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)) {
Review

Quedava este fallet sino si podies adelantar totes les linies no ho fea be

Quedava este fallet sino si podies adelantar totes les linies no ho fea be
const newTicket = await models.Ticket.transferSales(
ctx,
args.id,