Skip to content

Commit

Permalink
wrong UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
disk91 committed Sep 5, 2023
1 parent acee2af commit a930da5
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/main/java/eu/heliumiot/console/service/TransactionService.java
Original file line number Diff line number Diff line change
Expand Up @@ -529,14 +529,16 @@ public TransactionConfigRespItf getTransactionSetup() {
contentStream.endText();

// Get tenant
Tenant tenant = heliumTenantService.getTenant( UUID.fromString(t.getSourceTenantUUID()) );
if ( tenant != null ) {
contentStream.moveTo(0, 0);
contentStream.beginText();
contentStream.setFont(PDType1Font.TIMES_BOLD, 12);
contentStream.newLineAtOffset(300, 718);
contentStream.showText("Tenant NAME: " + tenant.getName());
contentStream.endText();
if ( t.getTargetTenantUUID() != null ) {
Tenant tenant = heliumTenantService.getTenant(UUID.fromString(t.getTargetTenantUUID()));
if (tenant != null) {
contentStream.moveTo(0, 0);
contentStream.beginText();
contentStream.setFont(PDType1Font.TIMES_BOLD, 12);
contentStream.newLineAtOffset(300, 718);
contentStream.showText("Tenant NAME: " + tenant.getName());
contentStream.endText();
}
}

// date
Expand Down

0 comments on commit a930da5

Please sign in to comment.