Merge branch 'develop' into fix/5411-Reward-Crm-Change-Adress

This commit is contained in:
Nino
2025-11-10 14:35:07 +01:00
3 changed files with 24 additions and 6 deletions

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: [],
};

View File

@@ -18,10 +18,13 @@
role="region"
aria-label="Destination information">
@if (name() || address()) {
<span data-what="recipient-name">{{ name() }}</span> |
<shared-inline-address
[address]="address()"
data-what="destination-address"></shared-inline-address>
<span data-what="recipient-name">{{ name() }}</span>
@if (address()) {
|
<shared-inline-address
[address]="address()"
data-what="destination-address"></shared-inline-address>
}
} @else if (estimatedDelivery()) {
<span data-what="estimated-delivery">
@if (estimatedDelivery()!.stop) {

View File

@@ -6,10 +6,11 @@ import {
isaDeliveryVersand,
isaDeliveryRuecklage2,
isaDeliveryRuecklage1,
isaDeliveryDownload,
} from '@isa/icons';
import { InlineAddressComponent } from '@isa/shared/address';
import { logger } from '@isa/core/logging';
import { OrderType, OrderTypeFeature } from '@isa/common/data-access';
import { OrderTypeFeature } from '@isa/common/data-access';
export type Address = {
apartment?: string;
@@ -52,6 +53,7 @@ export type EstimatedDelivery = {
isaDeliveryVersand,
isaDeliveryRuecklage2,
isaDeliveryRuecklage1,
isaDeliveryDownload,
}),
],
})
@@ -83,11 +85,20 @@ export class OrderDestinationComponent {
return 'isaDeliveryRuecklage1';
}
if (OrderTypeFeature.Download === orderType) {
return 'isaDeliveryDownload';
}
return 'isaDeliveryVersand';
});
name = computed(() => {
const orderType = this.orderType();
if (OrderTypeFeature.Download === orderType) {
return 'Hugendubel Digital';
}
if (
OrderTypeFeature.Delivery === orderType ||
OrderTypeFeature.B2BShipping === orderType ||
@@ -104,6 +115,10 @@ export class OrderDestinationComponent {
address = computed(() => {
const orderType = this.orderType();
if (OrderTypeFeature.Download === orderType) {
return undefined;
}
if (
OrderTypeFeature.Delivery === orderType ||
OrderTypeFeature.B2BShipping === orderType ||