mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merge branch 'develop' into fix/5411-Reward-Crm-Change-Adress
This commit is contained in:
@@ -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: [],
|
||||
};
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user