Skip to content

Commit

Permalink
add tenant name to invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
disk91 committed Sep 5, 2023
1 parent e750bf4 commit acee2af
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -528,11 +528,22 @@ public TransactionConfigRespItf getTransactionSetup() {
contentStream.showText("Customer ID: "+t.getUserUUID());
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();
}

// date
contentStream.moveTo(0,0);
contentStream.beginText();
contentStream.setFont(PDType1Font.TIMES_ROMAN, 12);
contentStream.newLineAtOffset(300, 718);
contentStream.newLineAtOffset(300, 702);
Date d = new Date(t.getIntentTime());
Locale locale = new Locale("en", "US");
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MMMM-dd",locale);
Expand Down

0 comments on commit acee2af

Please sign in to comment.