#7648 - Filter entries by days #2722

Merged
jsegarra merged 12 commits from 7648_myEntries_filter into dev 2024-07-15 09:22:35 +00:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 0ca4bffaf0 - Show all commits

View File

@ -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

si pones <= no te puedes ahorar el interval + 1?

si pones <= no te puedes ahorar el interval + 1?