diff --git a/modules/invoiceIn/back/methods/invoice-in/negativeBases.js b/modules/invoiceIn/back/methods/invoice-in/negativeBases.js index 4d5975fab..4c9a8984b 100644 --- a/modules/invoiceIn/back/methods/invoice-in/negativeBases.js +++ b/modules/invoiceIn/back/methods/invoice-in/negativeBases.js @@ -98,6 +98,7 @@ module.exports = Self => { stmt.merge(conn.makeWhere(args.filter.where)); stmt.merge(conn.makeOrderBy(args.filter.order)); + stmt.merge(conn.makeLimit(args.filter)); const negativeBasesIndex = stmts.push(stmt) - 1; diff --git a/modules/invoiceIn/front/negative-bases/index.html b/modules/invoiceIn/front/negative-bases/index.html index 368f44461..5da8e7aad 100644 --- a/modules/invoiceIn/front/negative-bases/index.html +++ b/modules/invoiceIn/front/negative-bases/index.html @@ -2,7 +2,8 @@ vn-id="model" url="InvoiceIns/negativeBases" auto-load="true" - params="$ctrl.params"> + params="$ctrl.params" + limit="20">