#6321 - Negative tickets #1945
|
@ -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);
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
module.exports = Self => {
|
||||
Self.remoteMethodCtx('split', {
|
||||
description: 'Split a ticket or n tickets',
|
||||
description: 'Split n tickets',
|
||||
accessType: 'WRITE',
|
||||
accepts: [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue