2020-02-01 15:26:26 +01:00
<!DOCTYPE html>
< html lang = "de" dir = "ltr" xmlns:th = "http://www.thymeleaf.org" >
< head >
2020-04-27 09:48:24 +02:00
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=0.75, user-scalable=no" >
2020-02-01 15:26:26 +01:00
2020-04-27 09:48:24 +02:00
< title > Artikelübersicht< / title >
< script th:src = "@{/js/filterTable.js}" > < / script >
< link rel = "stylesheet" th:href = "@{/css/ecom.css}" / >
2020-02-01 15:26:26 +01:00
< / head >
< body >
2020-04-27 09:48:24 +02:00
< nav th:replace = "fragments/header :: header" > Header< / nav >
< div class = "sidebar-layout content-width" >
< nav > < / nav >
< div >
2020-06-01 11:53:29 +02:00
< h1 th:text = "|Bestellung ${order.id}|" > < / h1 >
2020-03-06 16:11:26 +01:00
2020-04-27 09:48:24 +02:00
< script th:src = "@{/js/back.js}" > < / script >
< div class = "back" data-group = "intern" data-insert = "true" > < / div >
< / div >
< / div >
< main class = "sidebar-layout content-width" >
< nav th:replace = "fragments/intern :: sidebar" > < / nav >
< div class = "content-width" >
< div >
2020-06-01 11:53:29 +02:00
< h2 th:text = "| Bestellung vom ${order.created.toString().substring(0,10)}" > < / h2 >
2020-02-01 15:26:26 +01:00
< div >
2020-04-27 09:48:24 +02:00
< table class = "key-value" >
< tr >
< th > Nutzer< / th >
2020-06-01 11:53:29 +02:00
< td > < a th:href = "@{/intern/customers/{id}(id=${order.customer.id})}" th:text = "${order.customer.id}" > < / a > < / td >
2020-04-27 09:48:24 +02:00
< / tr >
< tr >
< th > Lieferstatus< / th >
2020-06-10 14:51:12 +02:00
< td th:text = "${deliveryData.getStatus()}" > < / td >
2020-06-10 17:03:59 +02:00
< / tr >
< tr >
< td > < / td >
< td th:if = "${order.deliveredAt == null && order.trackingId!=null}" > Vorraussichtliche Ankunft: < span th:text = "${deliveryData.getEstimatedArrival()}" / > < / td >
< td th:if = "${order.deliveredAt != null && order.trackingId!=null}" > < b > Angekommen< / b > Ankunft: < span th:text = "${deliveryData.getEstimatedArrival()}" / > < / td >
2020-04-27 09:48:24 +02:00
< / tr >
< tr >
< th > Sendeverfolgungsnummer< / th >
2020-06-10 14:51:12 +02:00
< td th:text = "${order.trackingId!=null} ? ${order.trackingId} : 'Es wurde noch keine Sendungsnummer vergeben'" > < / td >
2020-04-27 09:48:24 +02:00
< / tr >
< tr >
< th > < / th >
2020-06-01 11:53:29 +02:00
< td th:text = "${order.destination.toString()}" > < / td >
2020-04-27 09:48:24 +02:00
< / tr >
< / table >
2020-02-01 15:26:26 +01:00
< / div >
< table >
2020-04-27 09:48:24 +02:00
< tr >
< th > Bild< / th >
< th > Name< / th >
< th > Menge< / th >
< th > Preis (Brutto)< / th >
< / tr >
2020-06-01 11:53:29 +02:00
< tr th:each = "position: ${order.positions}" >
< td > < a th:href = "@{/shop/articles/{id}(id = ${position.article.id})}" > < img th:src = "@{/shop/articles/{id}/image.jpg(id=${position.article.id})}" class = "s" / > < / a > < / td >
< td > < a th:href = "@{/shop/articles/{id}(id = ${position.article.id})}" th:text = "${position.article.title}" class = "s" > < / a > < / td >
< td th:text = "${position.quantity}" / >
< td th:text = "${#numbers.formatDecimal(position.getSumPrice() * 0.01, 1, 'POINT', 2, 'COMMA')}" / >
2020-04-27 09:48:24 +02:00
< / tr >
< tr >
< th > < / th >
< th > < / th >
< th > Position< / th >
< th > Preis< / th >
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td > Artikel (Netto)< / td >
2020-06-01 11:53:29 +02:00
< td th:text = "${#numbers.formatDecimal(order.totalNetCent * 0.01, 1, 'POINT', 2, 'COMMA')}" / >
2020-04-27 09:48:24 +02:00
< / tr >
< tr >
< td > < / td >
< td > < / td >
2020-06-01 11:53:29 +02:00
< td > Umsatzsteuer< / td >
< td th:text = "${#numbers.formatDecimal(order.totalVatCent * 0.01, 1, 'POINT', 2, 'COMMA')}" / >
2020-04-27 09:48:24 +02:00
< / tr >
< tr >
< td > < / td >
< td > < / td >
< td >
2020-06-01 11:53:29 +02:00
< h3 > Gesamtpreis< / h3 >
2020-04-27 09:48:24 +02:00
< / td >
< td >
2020-06-01 11:53:29 +02:00
< h3 th:text = "${#numbers.formatDecimal(order.totalGrossCent * 0.01, 1, 'POINT', 2, 'COMMA')}" / >
2020-04-27 09:48:24 +02:00
< / td >
< / tr >
2020-02-01 15:26:26 +01:00
< / table >
2020-04-27 09:48:24 +02:00
< / div >
< / div >
< / main >
< footer th:replace = "fragments/footer :: footer" > < / footer >
2020-02-01 15:26:26 +01:00
< / body >
< / html >