Merge pull request 'Fix[priceDifference]: Fixed shipped field' (!3380) from Fix-priceDifferenceError into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #3380 Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
This commit is contained in:
commit
f3cb2bd200
|
@ -108,7 +108,10 @@ module.exports = Self => {
|
|||
|
||||
// Get items movable
|
||||
const ticketOrigin = await models.Ticket.findById(args.id, null, myOptions);
|
||||
const differenceShipped = ticketOrigin.shipped.getTime() > args.shipped.getTime();
|
||||
let shipped = ticketOrigin.shipped ?? ticketOrigin.updated;
|
||||
|
||||
const differenceShipped = shipped.getTime() > args.shipped.getTime();
|
||||
|
||||
const differenceWarehouse = ticketOrigin.warehouseFk != args.warehouseId;
|
||||
|
||||
salesObj.haveDifferences = differenceShipped || differenceWarehouse;
|
||||
|
|
Loading…
Reference in New Issue