diff --git a/accounting/templates/accounting/search.html b/accounting/templates/accounting/search.html new file mode 100644 index 0000000..ec94871 --- /dev/null +++ b/accounting/templates/accounting/search.html @@ -0,0 +1,174 @@ +{% extends "base.html" %} +{% comment %} +The Mia Accounting Application +cash.html: The template for the cash account reports + + Copyright (c) 2020 imacat. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +Author: imacat@mail.imacat.idv.tw (imacat) +First written: 2020/7/21 +{% endcomment %} +{% load static %} +{% load i18n %} +{% load humanize %} +{% load mia_core %} +{% load accounting %} + +{% block settings %} + {% blocktrans asvar title with query=request.GET.q context "Accounting|" %}Search Result for “{{ query }}”{% endblocktrans %} + {% setvar "title" title %} + {% setvar "use_period_chooser" True %} + {% static "accounting/css/report.css" as css %} + {% setvar "css" css %} +{% endblock %} + +{% block content %} + +
{% trans "Date" context "Accounting|" as text %}{{ text|force_escape }} | +{% trans "Subject" context "Accounting|" as text %}{{ text|force_escape }} | +{% trans "Summary" context "Accounting|" as text %}{{ text|force_escape }} | +{% trans "Debit" context "Accounting|" as text %}{{ text|force_escape }} | +{% trans "Credit" context "Accounting|" as text %}{{ text|force_escape }} | +{% trans "Notes" context "Accounting|" as text %}{{ text|force_escape }} | +{% trans "View" context "Accounting|" as text %}{{ text|force_escape }} | +
---|---|---|---|---|---|---|
{{ item.transaction.date|smart_date }} | +{{ item.subject.title|title }} | +{{ item.summary|default:"" }}{% if not item.is_balanced %}
+
+ {% trans "Unbalanced" context "Accounting|" as text %}
+ {{ text|force_escape }}
+
+ {% endif %}{% if item.has_order_hole %}
+
+ {% trans "Need Reorder" context "Accounting|" as text %}
+ {{ text|force_escape }}
+
+ {% endif %} |
+ {{ item.debit_amount|accounting_amount }} | +{{ item.credit_amount|accounting_amount }} | +{{ item.transaction.note|default:"" }} | ++ + + {% trans "View" context "Accounting|" as text %}{{ text|force_escape }} + + | +
{{ _("There is currently no data.")|force_escape }}
+{% endif %} + +{% endblock %} diff --git a/accounting/urls.py b/accounting/urls.py index 9429474..0916812 100644 --- a/accounting/urls.py +++ b/accounting/urls.py @@ -74,7 +74,7 @@ urlpatterns = [ path("balance-sheet/