#7648 - Filter entries by days #2722
|
@ -1,4 +1,3 @@
|
|||
|
||||
const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
|
||||
const buildFilter = require('vn-loopback/util/filter').buildFilter;
|
||||
const mergeFilters = require('vn-loopback/util/filter').mergeFilters;
|
||||
|
@ -197,7 +196,7 @@ module.exports = Self => {
|
|||
JOIN vn.currency cu ON cu.id = e.currencyFk`
|
||||
);
|
||||
|
||||
if (supplier && ctx.args.days) {
|
||||
if (ctx.args.days) {
|
||||
stmt.merge({
|
||||
sql: `
|
||||
AND t.shipped < util.VN_CURDATE() + INTERVAL ? + 1 DAY
|
||||
jsegarra marked this conversation as resolved
Outdated
|
||||
|
|
Loading…
Reference in New Issue
si pones <= no te puedes ahorar el interval + 1?