Skip to content
Snippets Groups Projects
Commit d0189d33 authored by Daniel Haag's avatar Daniel Haag
Browse files

OPENOLAT-157: made order-total information in the detail view consistent with the summary table

parent d93a3ec7
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,12 @@ public class OrderDetailController extends FormBasicController {
String creationDateStr = Formatter.getInstance(getLocale()).formatDateAndTime(creationDate);
uifactory.addStaticTextElement("creation-date", "order.creationDate", creationDateStr, mainLayout);
String orderTotal = PriceFormat.fullFormat(order.getTotal());
String orderTotal;
if (order.getTotal().getAmount().signum() != 0) {
orderTotal = PriceFormat.fullFormat(order.getTotal());
} else {
orderTotal = "-";
}
String orderTotalStr;
if(acModule.isVatEnabled()) {
BigDecimal vat = acModule.getVat();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment