= partial
.order_by_desc(transaction::Column::Date)
.order_by_desc(transaction::Column::Id)
diff --git a/bookkeeper/templates/index.html.j2 b/bookkeeper/templates/index.html.j2
index 0c627ef..ec63b97 100644
--- a/bookkeeper/templates/index.html.j2
+++ b/bookkeeper/templates/index.html.j2
@@ -28,11 +28,11 @@
{% if loop.index == 1 %}
| {{ r.code|string|padLeft(6) }} |
{{ r.name }} |
- {{ r.date }} |
+ {{ r.date }} |
{{ r.buy|float|round(4) }} |
{{ r.volume }} |
{{ r.net_buy|float|round(2) }} |
- {{ p.date or "" }} |
+ {{ p.date or "" }} |
{{ (p.sell or 0)|float|round(4) }} |
{{ p.volume or "" }} |
{{ (p.net_sell or 0)|float|round(2) }} |
@@ -65,24 +65,31 @@
| {{ r.code|string|padLeft(6) }} |
{{ r.name }} |
- {{ r.date }} |
+ {{ r.date }} |
{{ r.buy|float|round(4) }} |
{{ r.volume }} |
{{ r.net_buy|float|round(2) }} |
- |
- |
- |
- |
- - |
- - |
+ |
+ |
+ |
+ |
+ - |
+ - |
改 删
|
{% endif %}
{% endfor %}
- | 添加 高级筛选 |
+
+ 添加
+
+ 高级筛选
+
+ 未清仓
+
+ 已清仓
+ |
diff --git a/bookkeeper/templates/nav.html.j2 b/bookkeeper/templates/nav.html.j2
index 3fa66d6..0f88e9b 100644
--- a/bookkeeper/templates/nav.html.j2
+++ b/bookkeeper/templates/nav.html.j2
@@ -3,7 +3,7 @@