Skip to content

Commit

Permalink
Merge pull request #1183 from eclipse-tractusx/feature/520-add-bpn-to…
Browse files Browse the repository at this point in the history
…-detail

Feature/520 add bpn to detail
  • Loading branch information
ds-lcapellino authored Jul 8, 2024
2 parents c12b852 + 94a0135 commit 7d1872b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ _**For better traceability add the corresponding GitHub issue number in each cha
- #1017 added file for CC BY 4.0 license for TRG 7
- #985 Added reference to part/notification under contract
- #786 Added icons on part table to let admin reload registry / sync assets via IRS
- #520 Added Attribute BPN to DetailView

### Changed
- #965 Implement proxy functionality of the IRS policy store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ describe('PartsAssembler', () => {
const manufacturerName = 'manufacturerName';
const manufacturerPartId = 'manufacturerPartId';
const nameAtManufacturer = 'nameAtManufacturer';
const businessPartner = 'businessPartner';
const van = 'van';
const mainAspectType = MainAspectType.AS_BUILT;

Expand All @@ -185,6 +186,7 @@ describe('PartsAssembler', () => {
manufacturerName,
manufacturerPartId,
nameAtManufacturer,
businessPartner,
test: '',
van,
mainAspectType,
Expand All @@ -193,7 +195,7 @@ describe('PartsAssembler', () => {
.pipe(PartsAssembler.mapPartForManufacturerView())
.subscribe(result => {
expect(result).toEqual({
data: { manufacturerName, manufacturerPartId, nameAtManufacturer, van } as unknown as Part,
data: { manufacturerName, manufacturerPartId, nameAtManufacturer, businessPartner, van } as unknown as Part,
});
done();
});
Expand Down
6 changes: 4 additions & 2 deletions frontend/src/app/modules/shared/assembler/parts.assembler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,16 +188,18 @@ export class PartsAssembler {
manufacturerName,
manufacturerPartId,
nameAtManufacturer,
businessPartner,
van,
} = viewData.data;
return { data: { manufacturerName, manufacturerPartId, nameAtManufacturer, van } as Part };
return { data: { manufacturerName, manufacturerPartId, nameAtManufacturer, businessPartner, van } as Part };
} else {
const {
manufacturerName,
manufacturerPartId,
nameAtManufacturer,
businessPartner,
} = viewData.data;
return { data: { manufacturerName, manufacturerPartId, nameAtManufacturer } as Part };
return { data: { manufacturerName, manufacturerPartId, nameAtManufacturer, businessPartner} as Part };
}
});
}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/locales/de/partDetail.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"nameAtCustomer": "Name beim Kunden",
"customerPartId": "Kunden Produktnummer",
"semanticDataModel": "Semantisches Datenmodell",
"businessPartner": "Geschäftspartner Nummer",
"van": "Van",
"manufacturingDate": "Produktionsdatum",
"manufacturingCountry": "Produktionsland",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/locales/en/partDetail.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"nameAtCustomer": "Name at customer",
"customerPartId": "Customer part ID",
"semanticDataModel": "Semantic Data Model",
"businessPartner": "Business partner number",
"van": "Van",
"manufacturingDate": "Production date",
"manufacturingCountry": "Production country",
Expand Down

0 comments on commit 7d1872b

Please sign in to comment.