Merged PR 2014: fix(open-reward-tasks): filter out pickup-only reward orders

fix(open-reward-tasks): filter out pickup-only reward orders

Exclude reward orders with only pickup items (supplier_id: '16') from open tasks
as these cannot be completed in the reward shop.

Fixes BUG-5444
This commit is contained in:
Lorenz Hilpert
2025-11-10 13:11:49 +00:00
committed by Nino Righi
parent b0afc80a26
commit b984a2cac2

View File

@@ -7,7 +7,6 @@ import {
import { ResponseArgsError, takeUntilAborted } from '@isa/common/data-access';
import { logger } from '@isa/core/logging';
import { firstValueFrom } from 'rxjs';
import { Cache, CacheTimeToLive, InFlight } from '@isa/common/decorators';
/**
* Service for fetching open reward distribution tasks (Prämienausgabe) from the OMS API.
@@ -45,6 +44,7 @@ export class OpenRewardTasksService {
filter: {
orderitemprocessingstatus: '16', // InPreparation(16) and ReadyForPickup(128)
praemie: '1-', // Reward items only
supplier_id: '16',
},
orderBy: [],
};