refs #4764 withWarehouse
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Carlos Satorres 2023-06-09 14:30:46 +02:00
parent 9ca82a2f79
commit 06d1334e1f
1 changed files with 4 additions and 2 deletions

View File

@ -71,7 +71,8 @@ module.exports = Self => {
const now = Date.vnNew();
const [firstTicketId] = ticketsIds;
refundTicket = await createTicketRefund(firstTicketId, now, refundAgencyMode, refoundZoneId, myOptions);
// eslint-disable-next-line max-len
refundTicket = await createTicketRefund(firstTicketId, now, refundAgencyMode, withWarehouse, refoundZoneId, myOptions);
for (const sale of sales) {
const createdSale = await models.Sale.create({
@ -101,7 +102,8 @@ module.exports = Self => {
const now = Date.vnNew();
const [firstTicketId] = ticketsIds;
refundTicket = await createTicketRefund(firstTicketId, now, refundAgencyMode, refoundZoneId, myOptions);
// eslint-disable-next-line max-len
refundTicket = await createTicketRefund(firstTicketId, now, refundAgencyMode, withWarehouse, refoundZoneId, myOptions);
}
if (servicesIds && servicesIds.length > 0) {