#6321 - Negative tickets #1945

Open
jsegarra wants to merge 93 commits from 6321_negative_tickets into dev
3 changed files with 4 additions and 10 deletions
Showing only changes of commit 25fc39ef2b - Show all commits

View File

@ -1,6 +1,6 @@
module.exports = Self => {
Self.remoteMethod('itemLack', {
description: 'Download a ticket delivery note document',
description: 'Get tickets as negative status',
accessType: 'READ',
accepts: [
{
@ -8,12 +8,6 @@ module.exports = Self => {
type: 'object',
http: {source: 'context'}
},
{
arg: 'filter',
type: 'object',
description: 'Filter defining where, order, offset, and limit - must be a JSON-encoded string',
http: {source: 'query'}
},
{
arg: 'id',
type: 'number',
@ -68,7 +62,7 @@ module.exports = Self => {
}
});
Self.itemLack = async(ctx, filter, options) => {
Self.itemLack = async(ctx, options) => {
const myOptions = {};
if (typeof options == 'object')
Object.assign(myOptions, options);

View File

@ -2,7 +2,7 @@ const {ParameterizedSQL} = require('loopback-connector');
module.exports = Self => {
Self.remoteMethod('negativeOrigin', {
description: 'Insert ticket negative into negativeOrigin',
description: 'Get tickets from negativeOrigin',
accessType: 'READ',
accepts: [{
arg: 'ctx',

View File

@ -1,6 +1,6 @@
module.exports = Self => {
Self.remoteMethodCtx('split', {
description: 'Split a ticket or n tickets',
description: 'Split n tickets',
accessType: 'WRITE',
accepts: [
{