refs #5036 transferSales also transfer sale's logs
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
be8d19a9f8
commit
6590c6f1fa
|
@ -142,6 +142,13 @@ module.exports = Self => {
|
||||||
ticket: ticketId
|
ticket: ticketId
|
||||||
}
|
}
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
|
|
||||||
|
query = `UPDATE ticketLog
|
||||||
|
SET originFk = ?
|
||||||
|
WHERE changedModel = 'Sale'
|
||||||
|
AND originFk = ?
|
||||||
|
AND changedModelId = ?`;
|
||||||
|
await Self.rawSql(query, [ticketId, id, sale.id], myOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
const isTicketEmpty = await models.Ticket.isEmpty(id, myOptions);
|
const isTicketEmpty = await models.Ticket.isEmpty(id, myOptions);
|
||||||
|
|
Loading…
Reference in New Issue