7525-devToTest #2542
|
@ -7,6 +7,7 @@ describe('ticket setDelivered()', () => {
|
||||||
accessToken: {userId: userId},
|
accessToken: {userId: userId},
|
||||||
__: value => value
|
__: value => value
|
||||||
};
|
};
|
||||||
|
const ctx = {req: activeCtx};
|
||||||
|
|
||||||
beforeAll(async() => {
|
beforeAll(async() => {
|
||||||
spyOn(LoopBackContext, 'getCurrentContext').and.returnValue({
|
spyOn(LoopBackContext, 'getCurrentContext').and.returnValue({
|
||||||
|
|
|
@ -92,7 +92,7 @@ module.exports = Self => {
|
||||||
AND st.isChecked
|
AND st.isChecked
|
||||||
AND s.originalQuantity IS NOT NULL
|
AND s.originalQuantity IS NOT NULL
|
||||||
AND s.originalQuantity <> s.quantity
|
AND s.originalQuantity <> s.quantity
|
||||||
AND s2.\`order\` < (SELECT \`order\` FROM vn.state WHERE code = 'PACKING')
|
AND s2.\`order\` < (SELECT \`order\` FROM vn.state WHERE code = 'CHECKED')
|
||||||
ORDER BY st.created DESC
|
ORDER BY st.created DESC
|
||||||
`, [params.ticketFk], myOptions);
|
`, [params.ticketFk], myOptions);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue