6964-hasItemOlder #2560
Labels
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2560
Loading…
Reference in New Issue
No description provided.
Delete Branch "6964-hasItemOlder"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +46,4 @@
JOIN vn.shelving sh ON sh.code = is2.shelvingFk
JOIN vn.parking p ON p.id = sh.parkingFk
JOIN vn.sector s ON s.id = p.sectorFk
WHERE is2.shelvingFk = ? AND s.code = "NAVE ALGEMESI"
Pasar a una config
@ -0,0 +54,4 @@
JOIN vn.parking p ON p.id = sh.parkingFk
JOIN vn.sector s ON s.id = p.sectorFk
WHERE is2.shelvingFk <> ?
AND s.code = "NAVE ALGEMESI")
Pasar a una config
Posat els casos en productionConfig
@ -0,0 +17,4 @@
},
],
returns: {
type: 'Object',
Return array
@ -0,0 +64,4 @@
JOIN vn.productionConfig pc
WHERE ti.created > tis.created + INTERVAL pc.itemOlderReviewHours HOUR;`,
[shelvingFk, shelvingFk], myOptions);
return result;
Si no hi ha resultats de per si ja torna array vuit, no cal ficar el if else
@ -0,0 +2,4 @@
const {models} = require('vn-loopback/server/server');
describe('itemShelving getListItemNewer()', () => {
fit('should return true because there is an older item', async() => {
quitar fit
Fusionar sin actualizar