Commit Graph

91 Commits

Author SHA1 Message Date
22f3cad8b1 Fixed the documentation of the view transaction_edit() in the accounting application. 2020-07-28 03:12:16 +08:00
9aa85b6ae8 Renamed the transaction_create() view to transaction_edit() in the accounting application. 2020-07-28 03:10:45 +08:00
78cac61cd5 Renamed the templates edit.html to form.html, and show.html to view.html in the accounting application. 2020-07-28 03:09:53 +08:00
b11348b276 Applied the form to existing transactions in the accounting application. 2020-07-28 03:07:37 +08:00
760c739864 Removed the transaction type from the template variables of the transactions, because they are not necessary at all in the accounting application. 2020-07-28 00:23:13 +08:00
99fb99b160 Added the view and the templates for the forms of the transactions in the accounting application. 2020-07-27 22:36:28 +08:00
c8eb31ce82 Removed unused debug logging in the views of the accounting application. 2020-07-25 14:26:35 +08:00
20369e42cc Fixed so that the URL in the transaction views uses the current transaction type specified in the URL rather than the type of the transaction itself in the accounting application. 2020-07-23 23:35:43 +08:00
2db3899dea Added the transaction views in the accounting application. 2020-07-23 22:02:26 +08:00
依瑪貓
0ff6076b36 Revised the imports in accounting.views and accounting.converters in the accounting application. 2020-07-23 14:26:05 +08:00
依瑪貓
6691e3db2b Moved the views back to accounting.views in the accounting application. 2020-07-23 14:17:05 +08:00
2f53bcfd43 Moved accounting/views.py to accounting/views/_init__.py. 2020-07-11 10:12:23 +08:00
e5d0feadbc Added the page size options to the pagination navigation bar. 2020-07-08 23:40:36 +08:00
依瑪貓
fc2e89ca1a Added the currently-specified subject to the template variables, and use it in the template. 2020-07-08 11:07:00 +08:00
依瑪貓
149aa8391a Revised the view of the cash account to use the first and last day of the data from the data source. 2020-07-08 11:00:14 +08:00
依瑪貓
dde75b9805 Added Period as the template period helper, and changed PeriodParser to the inner class Period.Parser. 2020-07-08 10:52:03 +08:00
ad0eb6e73e Renamed the template variable from period_parser to period. 2020-07-08 07:40:50 +08:00
6da65f00ba Moved the period parser from the accounting application to the Mia core application. 2020-07-08 07:20:38 +08:00
db860619f1 Added the period parser to the base report view and the template variables 2020-07-08 00:29:41 +08:00
097e699ccf Replaced now() with localdate() when finding the default period in the view of the cash reports. 2020-07-08 00:14:36 +08:00
92867c3e97 Changed the pagination template variable to pagination_links. 2020-07-07 22:50:57 +08:00
e9509c9bac Changed the links attribute of Pagination to a pseudo attribute that is calculated on request. 2020-07-07 22:49:37 +08:00
19ac9d3200 Added the navigation links for pagination. 2020-07-07 22:18:40 +08:00
897f82bd26 Moved part of the pagination logic from the view to Pagination. 2020-07-07 21:04:07 +08:00
df0380362b Renamed PageNoOutOfRangeError to PageNoOutOfRangeException. 2020-07-07 20:56:01 +08:00
d48d1b017a Moved the pagination and the page number out of range error from the accounting application to the Mia core application. 2020-07-07 20:54:35 +08:00
a26247f752 Revised the has_order_hole attribute of the accounting transaction data model. 2020-07-07 19:33:34 +08:00
405ae2307e Added the digest_login_required decorator. 2020-07-06 22:26:29 +08:00
68cf985671 Changed the decorator from @require_http_methods to @require_GET in the accounting module 2020-07-06 21:36:31 +08:00
62f960c081 Addded a simple authentication request to the cash report view. 2020-07-06 00:10:38 +08:00
依瑪貓
0243289946 Revised the code according to the PyCharm and PEP8 inspection. 2020-07-02 09:45:11 +08:00
d19b12509f Removed an unused import from the views of the accounting application. 2020-07-02 02:04:16 +08:00
fbce3ab9ef Revised the documentation. 2020-07-02 00:50:27 +08:00
1ddfc96621 Revised to redirect on invalid page size and page number on pagination. 2020-07-01 23:39:32 +08:00
eb07cc30ba Removed the unused imports from the views of the accounting application. 2020-07-01 00:54:41 +08:00
51ec6f7eed Revised the documentation of the get_query_number() function. 2020-07-01 00:54:15 +08:00
37cddf478c Changed the get_number_query() method to the get_query_number() function, so that it is shared by different view classes. 2020-07-01 00:52:38 +08:00
967c51075c Removed an unused variable from the views. 2020-07-01 00:45:33 +08:00
42fe685d53 Added a simple pagination filter and refined the cash report. 2020-06-30 23:49:21 +08:00
06b8d470fb Added simple views for the accounting cash report. 2020-06-30 20:59:24 +08:00
fb95c0e073 Added the accounting application. 2020-06-29 19:41:52 +08:00