Merge pull request 'refs #6877 add attenderFk' (!2427) from 6877-modPeticionesCompra into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #2427 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
fcd1b5e351
|
@ -19,6 +19,9 @@ module.exports = Self => {
|
|||
type: 'number',
|
||||
required: true,
|
||||
description: 'The requested item quantity',
|
||||
}, {
|
||||
arg: 'attenderFk',
|
||||
type: 'number'
|
||||
}],
|
||||
returns: {
|
||||
type: 'object',
|
||||
|
@ -73,12 +76,14 @@ module.exports = Self => {
|
|||
ticketFk: request.ticketFk,
|
||||
itemFk: ctx.args.itemFk,
|
||||
quantity: ctx.args.quantity,
|
||||
attenderFk: ctx.args.attenderFk,
|
||||
concept: item.name
|
||||
}, myOptions);
|
||||
await request.updateAttributes({
|
||||
saleFk: sale.id,
|
||||
itemFk: sale.itemFk,
|
||||
isOk: true
|
||||
isOk: true,
|
||||
attenderFk: sale.attenderFk,
|
||||
}, myOptions);
|
||||
|
||||
const query = `CALL vn.sale_calculateComponent(?, NULL)`;
|
||||
|
|
Loading…
Reference in New Issue