fix: shipped field
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
13821b86ea
commit
603e3e32c4
|
@ -108,7 +108,10 @@ module.exports = Self => {
|
||||||
|
|
||||||
// Get items movable
|
// Get items movable
|
||||||
const ticketOrigin = await models.Ticket.findById(args.id, null, myOptions);
|
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;
|
const differenceWarehouse = ticketOrigin.warehouseFk != args.warehouseId;
|
||||||
|
|
||||||
salesObj.haveDifferences = differenceShipped || differenceWarehouse;
|
salesObj.haveDifferences = differenceShipped || differenceWarehouse;
|
||||||
|
|
Loading…
Reference in New Issue