mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
Merged PR 2022: fix(checkout): prevent duplicate tasks in open reward carousel
Related work items: #5468
This commit is contained in:
committed by
Nino Righi
parent
6df02d9e86
commit
cc186dbbe2
@@ -12,7 +12,7 @@ import { firstValueFrom } from 'rxjs';
|
||||
* Service for fetching open reward distribution tasks (Prämienausgabe) from the OMS API.
|
||||
*
|
||||
* Provides cached access to unfinished reward orders with automatic request deduplication.
|
||||
* These are reward orders in processing statuses 16 (InPreparation) and 128 (ReadyForPickup)
|
||||
* These are reward orders in processing statuses 16 (Bestellt) and 8192 (Nachbestellt)
|
||||
* that need to be completed.
|
||||
*/
|
||||
@Injectable({ providedIn: 'root' })
|
||||
@@ -24,7 +24,7 @@ export class OpenRewardTasksService {
|
||||
* Fetches open reward distribution tasks (unfinished Prämienausgabe orders).
|
||||
*
|
||||
* Returns reward orders that are:
|
||||
* - In status 16 (InPreparation) or 128 (ReadyForPickup)
|
||||
* - In status 16 (Bestellt) or 8192 (Nachbestellt)
|
||||
* - Flagged as reward items (praemie: "1-")
|
||||
*
|
||||
* Results are cached for 1 minute to balance freshness with performance.
|
||||
@@ -42,7 +42,7 @@ export class OpenRewardTasksService {
|
||||
const payload: QueryTokenDTO = {
|
||||
input: {},
|
||||
filter: {
|
||||
orderitemprocessingstatus: '16', // InPreparation(16) and ReadyForPickup(128)
|
||||
orderitemprocessingstatus: '16;8192', // Bestellt(16) and Nachbestellt(8192)
|
||||
praemie: '1-', // Reward items only
|
||||
supplier_id: '16',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user