context.put("grandTotal", grandTotal); context.put("additionalInformation", order.getAdditionalInformation()); context.put("orderDate", new DateWebObject().withDate(order.getCreationDate(), locale));
result.put("invoice", new HashMap<String, Object>() {{ put("number", number.getNumber()); put("date", new DateWebObject().withDate(number.getGenerationDate(), locale)); put("settings", new HashMap<String ,Object>() {{ put("footerLegalNotice", invoicingSettings.getFooterLegalNotice().getValue());