From 88a7d39f7352458de7ea5963217593276755a2b8 Mon Sep 17 00:00:00 2001 From: Setyo Nugroho Date: Sun, 22 May 2022 22:16:07 +0700 Subject: [PATCH] download usage cost --- .../projects_invoice/cost_tables.html | 19 ++++ .../templates/usage_cost/cost_tables.html | 103 +++++++++++------- 2 files changed, 81 insertions(+), 41 deletions(-) diff --git a/yuyu/admin/projects_invoice/templates/projects_invoice/cost_tables.html b/yuyu/admin/projects_invoice/templates/projects_invoice/cost_tables.html index 6b40a64..45284bc 100644 --- a/yuyu/admin/projects_invoice/templates/projects_invoice/cost_tables.html +++ b/yuyu/admin/projects_invoice/templates/projects_invoice/cost_tables.html @@ -13,6 +13,9 @@ href="{% url 'horizon:admin:projects_invoice:rollback_to_unpaid' invoice.id %}?next={{ request.path }}">Rollback to Unpaid {% endif %} + + +

@@ -57,10 +60,26 @@ {% endblock %} {% block js %} {{ block.super }} + + {% endblock %} \ No newline at end of file diff --git a/yuyu/project/usage_cost/templates/usage_cost/cost_tables.html b/yuyu/project/usage_cost/templates/usage_cost/cost_tables.html index 1dd362d..8fb059b 100644 --- a/yuyu/project/usage_cost/templates/usage_cost/cost_tables.html +++ b/yuyu/project/usage_cost/templates/usage_cost/cost_tables.html @@ -2,48 +2,53 @@ {% block title %}{{ page_title }}{% endblock %} {% block main %} {% if invoice %} -
-
-
Invoice Month
-
- -
-
Invoice State
-
{{ invoice.state_text }}
-
Subtotal
-
{{ invoice.subtotal_money }}
- {% if invoice.state != 1 %} -
Tax
-
{{ invoice.tax_money }}
-
Total
-
{{ invoice.total_money }}
- {% endif %} -
-
+ +
+
+
+
+
+
Invoice Month
+
+ +
+
Invoice State
+
{{ invoice.state_text }}
+
Subtotal
+
{{ invoice.subtotal_money }}
+ {% if invoice.state != 1 %} +
Tax
+
{{ invoice.tax_money }}
+
Total
+
{{ invoice.total_money }}
+ {% endif %} +
+
-
- {{ instance_cost_table.render }} -
+
+ {{ instance_cost_table.render }} +
-
- {{ volume_cost_table.render }} -
-
- {{ floating_ip_cost_table.render }} -
-
- {{ router_cost_table.render }} -
-
- {{ snapshot_cost_table.render }} -
-
- {{ image_cost_table.render }} +
+ {{ volume_cost_table.render }} +
+
+ {{ floating_ip_cost_table.render }} +
+
+ {{ router_cost_table.render }} +
+
+ {{ snapshot_cost_table.render }} +
+
+ {{ image_cost_table.render }} +
{% else %}

Billing not enabled or you don't have any usage yet


@@ -51,10 +56,26 @@ {% endblock %} {% block js %} {{ block.super }} + + -{% endblock %} \ No newline at end of file +{% endblock %}