diff --git a/packages/core/graphql/src/lib/documents/fragments/fulfillment.gql b/packages/core/graphql/src/lib/documents/fragments/fulfillment.gql index 55388c53..cce928a1 100644 --- a/packages/core/graphql/src/lib/documents/fragments/fulfillment.gql +++ b/packages/core/graphql/src/lib/documents/fragments/fulfillment.gql @@ -70,6 +70,10 @@ fragment FulfillmentFragment on IoRestorecommerceFulfillmentFulfillment { exportDescription exportType } + references { + instanceType + instanceId + } fulfillmentState meta { ...MetaFragment diff --git a/packages/core/graphql/src/lib/generated/generated.ts b/packages/core/graphql/src/lib/generated/generated.ts index df261391..1904e75a 100644 --- a/packages/core/graphql/src/lib/generated/generated.ts +++ b/packages/core/graphql/src/lib/generated/generated.ts @@ -6070,6 +6070,11 @@ export type FulfillmentFragmentFragment = { } | null; } | null; } | null; + references?: Array<{ + __typename?: 'IoRestorecommerceReferenceReference'; + instanceType?: string | null; + instanceId?: string | null; + }> | null; meta?: { __typename?: 'IoRestorecommerceMetaMeta'; created?: unknown | null; @@ -7410,6 +7415,11 @@ export type FulfillmentFulfillmentMutateMutation = { } | null; } | null; } | null; + references?: Array<{ + __typename?: 'IoRestorecommerceReferenceReference'; + instanceType?: string | null; + instanceId?: string | null; + }> | null; meta?: { __typename?: 'IoRestorecommerceMetaMeta'; created?: unknown | null; @@ -7565,6 +7575,11 @@ export type FulfillmentFulfillmentReadQuery = { } | null; } | null; } | null; + references?: Array<{ + __typename?: 'IoRestorecommerceReferenceReference'; + instanceType?: string | null; + instanceId?: string | null; + }> | null; meta?: { __typename?: 'IoRestorecommerceMetaMeta'; created?: unknown | null; @@ -7695,6 +7710,11 @@ export type FulfillmentFulfillmentSubmitMutation = { } | null; } | null; } | null; + references?: Array<{ + __typename?: 'IoRestorecommerceReferenceReference'; + instanceType?: string | null; + instanceId?: string | null; + }> | null; meta?: { __typename?: 'IoRestorecommerceMetaMeta'; created?: unknown | null; @@ -10841,6 +10861,10 @@ export const FulfillmentFragmentFragmentDoc = gql` exportDescription exportType } + references { + instanceType + instanceId + } fulfillmentState meta { ...MetaFragment diff --git a/packages/modules/fulfillment/src/lib/components/fulfillment-view-details.component.html b/packages/modules/fulfillment/src/lib/components/fulfillment-view-details.component.html index 6fd7157b..3bcebf11 100644 --- a/packages/modules/fulfillment/src/lib/components/fulfillment-view-details.component.html +++ b/packages/modules/fulfillment/src/lib/components/fulfillment-view-details.component.html @@ -12,6 +12,11 @@ {{ '' }} +
+ Fulfilment order + {{ fulfillment.references?.[0]?.instanceId }} +
+
Fulfilment product {{ fulfillment.packaging?.parcels?.[0]?.productId }} diff --git a/packages/modules/ui/src/lib/components/molecules/order-info/order-info.component.html b/packages/modules/ui/src/lib/components/molecules/order-info/order-info.component.html index 6808c319..1e273eb4 100644 --- a/packages/modules/ui/src/lib/components/molecules/order-info/order-info.component.html +++ b/packages/modules/ui/src/lib/components/molecules/order-info/order-info.component.html @@ -16,7 +16,7 @@