diff --git a/modules/entry/back/methods/entry/lastItemBuys.js b/modules/entry/back/methods/entry/lastItemBuys.js index b9216bb94..7e83f1e5f 100644 --- a/modules/entry/back/methods/entry/lastItemBuys.js +++ b/modules/entry/back/methods/entry/lastItemBuys.js @@ -3,7 +3,7 @@ const mergeFilters = require('vn-loopback/util/filter').mergeFilters; module.exports = Self => { Self.remoteMethod('lastItemBuys', { - description: 'Returns a list of buys', + description: 'Returns a list of items from last buys', accepts: [ { arg: 'id', @@ -46,7 +46,7 @@ module.exports = Self => { fields: ['warehouseInFk', 'landed'], } }] - }); + }, myOptions); const travel = entry.travel();