Commit Graph

734 Commits

Author SHA1 Message Date
03d293d545 Added all the URL of the accounting application, using the dummy TODO view. Also applied the dummy TODO view to the URL that are not implemented yet. 2020-07-09 23:19:48 +08:00
a7ec80f066 Added a dummy "TODO" view to the Mia core application. 2020-07-09 23:18:37 +08:00
依瑪貓
e59d8738fa Renamed the routes of the transactions. 2020-07-09 10:46:32 +08:00
依瑪貓
e1e61869b7 Revised the documentation of the template tags. 2020-07-09 10:40:42 +08:00
04ca928a3a Added the url_query template tag. 2020-07-09 08:28:16 +08:00
d96a606e3a Removed the debug code in the cash account report. 2020-07-09 08:16:14 +08:00
faddceb074 Simplified the title in the cash account report. 2020-07-09 08:15:55 +08:00
6bdcdd0d78 Renamed the format template tag to str_format, and simplify it. 2020-07-09 01:29:51 +08:00
bcb5da1a5e Revised the code to generate the page size options in Pagination, to be clear. 2020-07-09 01:03:03 +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
8cefd0d4bf Removed the unused get_month_range() method from the period parser. 2020-07-08 08:18:57 +08:00
56ae1bb29a Renamed the parameter period_spec to spec in the period parser. 2020-07-08 08:13:47 +08:00
39d65e1381 Revised the text message in the period parser. 2020-07-08 07:45:18 +08:00
ad0eb6e73e Renamed the template variable from period_parser to period. 2020-07-08 07:40:50 +08:00
76df32a76d Revised the period parser. 2020-07-08 07:40:07 +08:00
6f604f1c86 Revised the documentation. 2020-07-08 07:24:36 +08:00
6da65f00ba Moved the period parser from the accounting application to the Mia core application. 2020-07-08 07:20:38 +08:00
d047be7ba9 Added the format template tag that does sprintf-like string format in the templates. 2020-07-08 00:58:25 +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
e48460b9bb Implemented the period parser. 2020-07-08 00:12:48 +08:00
974d654750 Fixed the documentation of Pagination. 2020-07-07 22:52:29 +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
3bce775729 Added the trailing blank line in mia_core.utils. 2020-07-07 21:07:25 +08:00
1f748d09ce Fixed the documentation in Pagination. 2020-07-07 21:07:05 +08:00
563a368ab0 Fixed UrlBuilder on its string output. 2020-07-07 21:06:11 +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
5ff7f444e9 Added documentation to PageNuOutOfRangeError. 2020-07-07 20:55:29 +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
c0f664761e Added documentation to the utilities and views of the Mia Core application. 2020-07-07 20:49:31 +08:00
a26247f752 Revised the has_order_hole attribute of the accounting transaction data model. 2020-07-07 19:33:34 +08:00
83f97a6467 Restored the missing _has_order_hole attribute to the accounting transaction model. 2020-07-07 19:32:19 +08:00
bf20fc8a72 Added the has_many_same_day property to the accounting transactions. 2020-07-07 07:12:26 +08:00
e6401e75ae Implemented has_order_hole in Transaction, and added the caches and setters to the pseudo properties is_balanced and has_order_hole. 2020-07-07 07:10:24 +08:00
37e793f340 Revised the cash report template. 2020-07-06 23:58:47 +08:00
cd7d7a5106 Added the home page view. 2020-07-06 23:22:20 +08:00
66f1e4b4fa Renamed the logout_view() function to logout(). 2020-07-06 23:06:45 +08:00
68be53e212 Added to log out the current user. 2020-07-06 23:04:14 +08:00
de679cf91a Removed an unsed logging. 2020-07-06 22:26:43 +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
218ae35b8d Added the Simplified Chinese translation to .gitignore, because it is generated. 2020-07-06 07:48:29 +08:00
62f960c081 Addded a simple authentication request to the cash report view. 2020-07-06 00:10:38 +08:00
714086e8e2 Applied the User model to the data models in the accounting application. Changed the primary keys of the accounting application to positive integers. 2020-07-06 00:09:26 +08:00