This commit is contained in:
parent
b2cbded2dc
commit
24411f9af1
|
@ -44,7 +44,7 @@ module.exports = Self => {
|
||||||
JOIN hedera.imageConfig ic
|
JOIN hedera.imageConfig ic
|
||||||
WHERE e.supplierFk = ?
|
WHERE e.supplierFk = ?
|
||||||
AND i.family IN ('EMB', 'CONT')
|
AND i.family IN ('EMB', 'CONT')
|
||||||
AND b.created > util.VN_CURDATE() - INTERVAL bc.monthsAgo MONTH)
|
AND b.created > (util.VN_CURDATE() - INTERVAL bc.monthsAgo MONTH)
|
||||||
GROUP BY b.itemFk
|
GROUP BY b.itemFk
|
||||||
ORDER BY et.quantity DESC, quantityTotal DESC`, [entry, id, id]);
|
ORDER BY et.quantity DESC, quantityTotal DESC`, [entry, id, id]);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue