From b25d1875ef13f53097e57094fb19b87e74abf805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sat, 22 Aug 2020 09:18:38 +0800 Subject: [PATCH] Applied the short_amount template filter to the totals in the transaction forms in the accounting application. --- .../templates/accounting/transaction_expense_form.html | 3 ++- accounting/templates/accounting/transaction_income_form.html | 3 ++- .../templates/accounting/transaction_transfer_form.html | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/accounting/templates/accounting/transaction_expense_form.html b/accounting/templates/accounting/transaction_expense_form.html index 9b1ad0e..97288ef 100644 --- a/accounting/templates/accounting/transaction_expense_form.html +++ b/accounting/templates/accounting/transaction_expense_form.html @@ -24,6 +24,7 @@ First written: 2020/7/23 {% load static %} {% load i18n %} {% load mia_core %} +{% load accounting %} {% block settings %} {% setvar "title" _("Cash Expense Transaction") %} @@ -92,7 +93,7 @@ First written: 2020/7/23
  • {{ _("Total")|force_escape }} - {{ form.debit_total }} + {{ form.debit_total|short_amount }}
  • diff --git a/accounting/templates/accounting/transaction_income_form.html b/accounting/templates/accounting/transaction_income_form.html index a7b9b3a..af42b6f 100644 --- a/accounting/templates/accounting/transaction_income_form.html +++ b/accounting/templates/accounting/transaction_income_form.html @@ -24,6 +24,7 @@ First written: 2020/7/23 {% load static %} {% load i18n %} {% load mia_core %} +{% load accounting %} {% block settings %} {% setvar "title" _("Cash Income Transaction") %} @@ -91,7 +92,7 @@ First written: 2020/7/23
  • {{ _("Total")|force_escape }} - {{ form.credit_total }} + {{ form.credit_total|short_amount }}
  • diff --git a/accounting/templates/accounting/transaction_transfer_form.html b/accounting/templates/accounting/transaction_transfer_form.html index 9376800..8e3c355 100644 --- a/accounting/templates/accounting/transaction_transfer_form.html +++ b/accounting/templates/accounting/transaction_transfer_form.html @@ -24,6 +24,7 @@ First written: 2020/7/23 {% load static %} {% load i18n %} {% load mia_core %} +{% load accounting %} {% block settings %} {% setvar "title" _("Transfer Transaction") %} @@ -93,7 +94,7 @@ First written: 2020/7/23
  • {{ _("Total")|force_escape }} - {{ form.debit_total }} + {{ form.debit_total|short_amount }}
    {{ form.balance_error|default:"" }}
  • @@ -123,7 +124,7 @@ First written: 2020/7/23
  • {{ _("Total")|force_escape }} - {{ form.credit_total }} + {{ form.credit_total|short_amount }}
    {{ form.balance_error|default:"" }}