fix: replace colour by inkFk
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Javier Segarra 2025-02-17 13:36:46 +01:00
parent f7d953d392
commit 44a3059e91
2 changed files with 5 additions and 5 deletions

View File

@ -30,9 +30,9 @@ module.exports = Self => {
description: 'Supplier id',
},
{
arg: 'colour',
arg: 'inkFk',
type: 'string',
description: 'Colour\'s item',
description: 'InkFk\'s item',
},
{
arg: 'size',
@ -91,7 +91,7 @@ module.exports = Self => {
const filterKeyOrder = [
'itemFk', 'force', 'days', 'longName', 'supplier',
'colour', 'size', 'originFk',
'inkFk', 'size', 'originFk',
'lack', 'warehouseFk', 'categoryFk', 'typeFk'
];

View File

@ -34,7 +34,7 @@ describe('Item Lack', () => {
it('should return data with filter.longname', async() => {
const filter = {
longname: 'Ranged weapon pistol 9mm'
longName: 'Ranged weapon pistol 9mm'
};
const result = await models.Ticket.itemLack(ctx, filter, options);
@ -43,7 +43,7 @@ describe('Item Lack', () => {
it('should return data with filter.color', async() => {
const filter = {
colour: 'WHT'
inkFk: 'WHT'
};
const result = await models.Ticket.itemLack(ctx, filter, options);