diff --git a/src/main/java/edu/ntnu/idi/idatt/view/components/elements/RecieptComponent.java b/src/main/java/edu/ntnu/idi/idatt/view/components/elements/RecieptComponent.java index 16e39d4..8ada10f 100644 --- a/src/main/java/edu/ntnu/idi/idatt/view/components/elements/RecieptComponent.java +++ b/src/main/java/edu/ntnu/idi/idatt/view/components/elements/RecieptComponent.java @@ -41,7 +41,9 @@ public RecieptComponent(Transaction transaction) { CssUtils.apply(title, CssUtils.BIG_TEXT_32); Label operation = new Label(); - String operationString = "Transaction type: %s, week: %d"; + String operationString = "Transaction type: %s"; + + Label week = new Label(String.format("Week: %s", transaction.getWeek())); Label shareName = new Label(String.format("Share: %s", transaction.getShare().getStock().toString())); Label shareAmount = new Label(String.format("Amount: %.3f", transaction.getShare().getQuantity())); @@ -60,14 +62,14 @@ public RecieptComponent(Transaction transaction) { Label profits = new Label(); - List