Commit Graph

498 Commits

Author SHA1 Message Date
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
5acda6cd30 Added the HTTP digest authentication to mia_core. 2020-07-05 23:40:39 +08:00
8a539fb144 Added the User and Country models to mia_core. 2020-07-05 23:40:12 +08:00
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
dc14f2e27a Renamed the human_date filter to smart_date. 2020-07-02 07:40:45 +08:00
a315907a5a Added the excludes directory to .gitignore. 2020-07-02 02:13:26 +08:00
1f931062ef Added the migrations directories to .gitignore. 2020-07-02 02:11:29 +08:00
bc0c1d9803 Fixed the layout of the cash report. 2020-07-02 02:10:44 +08:00
a3c0f3fb82 Added the template helper to display the date in a human-friendly format. 2020-07-02 02:04:35 +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
4537681bb5 Added the documentation to the invalid page number in Pagination. 2020-07-02 00:45:53 +08:00
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
789bdca699 Added simple localization. 2020-07-02 00:34:43 +08:00
bcb7718646 Added the gettext MO files to .gitignore. 2020-07-02 00:34:27 +08:00
1ddfc96621 Revised to redirect on invalid page size and page number on pagination. 2020-07-01 23:39:32 +08:00
8cab91dcd2 Added the side-wide base template, and apply it in the accounting cash report. 2020-07-01 23:38:36 +08:00
cff4893c77 Added the UrlBuilder utility to the Mia core. 2020-07-01 23:35:23 +08:00
238f5f6b85 Added the setvar template tag to the Mia core. 2020-07-01 23:35:04 +08:00
cccf96e099 Added the mia_core package. 2020-07-01 23:34:22 +08:00
依瑪貓
baa93ca76c Added venv and the external libraries to .gitignore. 2020-07-01 09:28:37 +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
a48a885ed6 Added the get_absolute_url() method to the accounting transactions. 2020-07-01 00:43:46 +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
cde10aed91 Added the accounting models to the administration. 2020-06-30 05:41:41 +08:00
48d9d742ec Added the data models of the accounting application. 2020-06-30 05:41:36 +08:00
fb95c0e073 Added the accounting application. 2020-06-29 19:41:52 +08:00
依瑪貓
7d29dab314 Initial commit. 2020-06-29 13:46:47 +08:00