Import entry buys from lastest buy #861

Merged
carlosjr merged 11 commits from 3258-import_buys into dev 2022-02-01 12:12:21 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 52e5c6bc6b - Show all commits

View File

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