refs #6877 add attenderFk #2427
|
@ -19,6 +19,10 @@ module.exports = Self => {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
required: true,
|
required: true,
|
||||||
description: 'The requested item quantity',
|
description: 'The requested item quantity',
|
||||||
|
}, {
|
||||||
|
arg: 'attenderFk',
|
||||||
|
type: 'number',
|
||||||
|
required: true
|
||||||
}],
|
}],
|
||||||
returns: {
|
returns: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
|
@ -73,12 +77,14 @@ module.exports = Self => {
|
||||||
ticketFk: request.ticketFk,
|
ticketFk: request.ticketFk,
|
||||||
itemFk: ctx.args.itemFk,
|
itemFk: ctx.args.itemFk,
|
||||||
quantity: ctx.args.quantity,
|
quantity: ctx.args.quantity,
|
||||||
|
attenderFk: ctx.args.attenderFk,
|
||||||
concept: item.name
|
concept: item.name
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
await request.updateAttributes({
|
await request.updateAttributes({
|
||||||
saleFk: sale.id,
|
saleFk: sale.id,
|
||||||
itemFk: sale.itemFk,
|
itemFk: sale.itemFk,
|
||||||
isOk: true
|
isOk: true,
|
||||||
|
attenderFk: sale.attenderFk,
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
|
|
||||||
const query = `CALL vn.sale_calculateComponent(?, NULL)`;
|
const query = `CALL vn.sale_calculateComponent(?, NULL)`;
|
||||||
|
|
Loading…
Reference in New Issue