refs #5331 al filtrar por 'Pendiente' no muestra los estados 'Previa x'
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2023-03-23 14:55:19 +01:00
parent 7ee33a77b1
commit afdfe5e3f3
1 changed files with 30 additions and 13 deletions

View File

@ -352,20 +352,37 @@ module.exports = Self => {
return {'t.alertLevel': value}; return {'t.alertLevel': value};
case 'pending': case 'pending':
if (value) { if (value) {
return {and: [ return {'t.alertLevelCode': {inq: [
{'t.alertLevel': 0}, 'FIXING',
{'t.alertLevelCode': {nin: [ 'FREE',
'OK', 'NOT_READY',
'BOARDING', 'BLOCKED',
'PRINTED', 'EXPANDABLE',
'PRINTED_AUTO', 'CHAINED',
'PICKER_DESIGNED' 'WAITING_FOR_PAYMENT'
]}} ]}};
]};
} else { } else {
return {and: [ return {'t.alertLevelCode': {inq: [
{'t.alertLevel': {gt: 0}} 'ON_PREPARATION',
]}; 'ON_CHECKING',
'CHECKED',
'PACKING',
'PACKED',
'INVOICED',
'ON_DELIVERY',
'PREPARED',
'WAITING_FOR_PICKUP',
'DELIVERED',
'PRINTED_BACK',
'LAST_CALL',
'PREVIOUS_PREPARATION',
'ASSISTED_PREPARATION',
'BOARD',
'PRINTED STOWAWAY',
'OK STOWAWAY',
'HALF_PACKED',
'COOLER_PREPARATION'
]}};
} }
case 'agencyModeFk': case 'agencyModeFk':
case 'warehouseFk': case 'warehouseFk':