Commit Graph

368 Commits

Author SHA1 Message Date
imacat ad0eb6e73e Renamed the template variable from period_parser to period. 2020-07-08 07:40:50 +08:00
imacat 76df32a76d Revised the period parser. 2020-07-08 07:40:07 +08:00
imacat 6f604f1c86 Revised the documentation. 2020-07-08 07:24:36 +08:00
imacat 6da65f00ba Moved the period parser from the accounting application to the Mia core application. 2020-07-08 07:20:38 +08:00
imacat d047be7ba9 Added the format template tag that does sprintf-like string format in the templates. 2020-07-08 00:58:25 +08:00
imacat db860619f1 Added the period parser to the base report view and the template variables 2020-07-08 00:29:41 +08:00
imacat 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
imacat e48460b9bb Implemented the period parser. 2020-07-08 00:12:48 +08:00
imacat 974d654750 Fixed the documentation of Pagination. 2020-07-07 22:52:29 +08:00
imacat 92867c3e97 Changed the pagination template variable to pagination_links. 2020-07-07 22:50:57 +08:00
imacat e9509c9bac Changed the links attribute of Pagination to a pseudo attribute that is calculated on request. 2020-07-07 22:49:37 +08:00
imacat 19ac9d3200 Added the navigation links for pagination. 2020-07-07 22:18:40 +08:00
imacat 3bce775729 Added the trailing blank line in mia_core.utils. 2020-07-07 21:07:25 +08:00
imacat 1f748d09ce Fixed the documentation in Pagination. 2020-07-07 21:07:05 +08:00
imacat 563a368ab0 Fixed UrlBuilder on its string output. 2020-07-07 21:06:11 +08:00
imacat 897f82bd26 Moved part of the pagination logic from the view to Pagination. 2020-07-07 21:04:07 +08:00
imacat df0380362b Renamed PageNoOutOfRangeError to PageNoOutOfRangeException. 2020-07-07 20:56:01 +08:00
imacat 5ff7f444e9 Added documentation to PageNuOutOfRangeError. 2020-07-07 20:55:29 +08:00
imacat 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
imacat c0f664761e Added documentation to the utilities and views of the Mia Core application. 2020-07-07 20:49:31 +08:00
imacat a26247f752 Revised the has_order_hole attribute of the accounting transaction data model. 2020-07-07 19:33:34 +08:00
imacat 83f97a6467 Restored the missing _has_order_hole attribute to the accounting transaction model. 2020-07-07 19:32:19 +08:00
imacat bf20fc8a72 Added the has_many_same_day property to the accounting transactions. 2020-07-07 07:12:26 +08:00
imacat 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
imacat 37e793f340 Revised the cash report template. 2020-07-06 23:58:47 +08:00
imacat cd7d7a5106 Added the home page view. 2020-07-06 23:22:20 +08:00
imacat 66f1e4b4fa Renamed the logout_view() function to logout(). 2020-07-06 23:06:45 +08:00
imacat 68be53e212 Added to log out the current user. 2020-07-06 23:04:14 +08:00
imacat de679cf91a Removed an unsed logging. 2020-07-06 22:26:43 +08:00
imacat 405ae2307e Added the digest_login_required decorator. 2020-07-06 22:26:29 +08:00
imacat 68cf985671 Changed the decorator from @require_http_methods to @require_GET in the accounting module 2020-07-06 21:36:31 +08:00
imacat 218ae35b8d Added the Simplified Chinese translation to .gitignore, because it is generated. 2020-07-06 07:48:29 +08:00
imacat 62f960c081 Addded a simple authentication request to the cash report view. 2020-07-06 00:10:38 +08:00
imacat 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
imacat 5acda6cd30 Added the HTTP digest authentication to mia_core. 2020-07-05 23:40:39 +08:00
imacat 8a539fb144 Added the User and Country models to mia_core. 2020-07-05 23:40:12 +08:00
imacat aa89286cd9 Added the mia_core application. 2020-07-04 08:17:08 +08:00
依瑪貓 6295641366 Created mia.local_settings and moved the local settings from mia.settings to mia.local_settings. Removed settings.py from .gitignore, and added local_settings.py to .gitignore. 2020-07-02 10:08:33 +08:00
依瑪貓 9690256edc Fixed the template of the accounting cash report. 2020-07-02 09:53:15 +08:00
依瑪貓 0243289946 Revised the code according to the PyCharm and PEP8 inspection. 2020-07-02 09:45:11 +08:00
imacat dc14f2e27a Renamed the human_date filter to smart_date. 2020-07-02 07:40:45 +08:00
imacat a315907a5a Added the excludes directory to .gitignore. 2020-07-02 02:13:26 +08:00
imacat 1f931062ef Added the migrations directories to .gitignore. 2020-07-02 02:11:29 +08:00
imacat bc0c1d9803 Fixed the layout of the cash report. 2020-07-02 02:10:44 +08:00
imacat a3c0f3fb82 Added the template helper to display the date in a human-friendly format. 2020-07-02 02:04:35 +08:00
imacat d19b12509f Removed an unused import from the views of the accounting application. 2020-07-02 02:04:16 +08:00
imacat fbce3ab9ef Revised the documentation. 2020-07-02 00:50:27 +08:00
imacat 4537681bb5 Added the documentation to the invalid page number in Pagination. 2020-07-02 00:45:53 +08:00
imacat 3abce4498f Revised the pagination to redirect to the URL without the page number if the specific page number is exactly the default page number. That is, the page number is totally unnecessary. 2020-07-02 00:42:34 +08:00
imacat 789bdca699 Added simple localization. 2020-07-02 00:34:43 +08:00