Commit Graph

188 Commits

Author SHA1 Message Date
09c1f453f4 Replaced parsing the HTML element ID with the HTML custom data attributes in the JavaScripts. 2020-08-07 22:31:08 +08:00
依瑪貓
4342f1e34e Revised the translation. 2020-08-07 10:40:57 +08:00
依瑪貓
8cc40e1f68 Simplified the code in the account_options view in the accounting application. 2020-08-07 10:36:14 +08:00
eac77c725a Renamed the is_credit_card_paid() utility to is_payable(), and implemented it in the accounting application. 2020-08-07 00:58:33 +08:00
75cc6b2d00 Removed the context from the translatable text messages, because that is not necessary anymore. 2020-08-07 00:05:05 +08:00
f6c6ee7fe4 Applied the force_escape filter to the gettext shortcut _("...") in the templates, because it returns SafeString instead of str. 2020-08-06 23:55:24 +08:00
f970974e71 Added the transaction sorting in the accounting application. 2020-08-06 23:51:20 +08:00
1d79e970c4 Revised the error messages and their translations both in Python and for the JavaScript. 2020-08-06 01:47:01 +08:00
372e55b028 Revised the translation. 2020-08-06 01:14:51 +08:00
adcd97dd98 Revised the title_case template filter to work with gettext_lazy() in the Mia core application. 2020-08-06 01:14:40 +08:00
5d4060c919 Removed an unused import from the template tags and filters in the Mia core application. 2020-08-06 01:04:18 +08:00
86dfe993a4 Removed the context from the translatable text messages in the accounting application, because it is not needed now. 2020-08-06 00:41:29 +08:00
518b49ee65 Split the translations into their corresponding applications. 2020-08-06 00:01:01 +08:00
依瑪貓
4dd1d35cec Removed the status ID when constructing the return url in the Mia core application. 2020-08-05 10:26:39 +08:00
依瑪貓
474c74ebb0 Revised Pagination so that the status ID does not pass along with the pagination links in the Mia core application. 2020-08-05 10:17:46 +08:00
733335c715 Replaced the set() method with the kwargs-based query() method in UrlBuilder in the Mia core application. 2020-08-03 23:12:04 +08:00
66f57b7b0d Added the title_case filter and replaced the title filter with the title_case filter to display titles in American English. 2020-08-03 22:31:13 +08:00
3babe8bc1f Added the prep_desc property to Period to return the text descriptions with prepositions, to be easier to embed it in a text message in the Mia core application, and applied it in the accounting reports in the accounting application. 2020-08-03 22:20:20 +08:00
512fd35adc Removed the now-unused error decorated @property from Period in the accounting application. 2020-08-03 22:00:41 +08:00
c2b9cdbeed Renamed the set_this_month() method to _set_this_month() to change it to private in Period.Parser in the Mia core application. 2020-08-03 21:51:04 +08:00
95e0173126 Replaced the invalid_period() method in Period.Parser with ValueError in the Mia core application. 2020-08-03 21:42:51 +08:00
95cd08a887 Added the VERY_START constant in Period.Parser to denote the earliest-possible beginning in the Mia core application. 2020-08-03 21:35:25 +08:00
ad52aa1783 Revised the documentation in Period in the accounting application. 2020-08-03 21:31:25 +08:00
2ff813ebd1 Renamed get_month_last_day() to _month_last_day() in Period.Parser in the Mia core application. 2020-08-03 21:30:40 +08:00
4cd0f0636d Renamed the method _get_month_text() to _month_text(), _get_year_text() to _year_text(), and _get_date_text() to _date_text() in Period.Parser in the Mia core application. 2020-08-03 21:28:35 +08:00
7b92ff7567 Added the _get_year_text() utility to Period.Parser in the Mia core application. 2020-08-03 21:25:14 +08:00
cd6cd51444 Renamed get_month_text() to _get_month_text(), and get_date_text() to _get_date_text() to change them to private in Period.Parser. 2020-08-03 21:19:47 +08:00
c3240b27e7 Removed the unused dict template filter from the Mia core application. 2020-08-03 21:17:25 +08:00
841fbc1223 Added the add_css and add_js template tags to add local CSS and JavaScript files to the base template in the Mia core application, and applied them in the templates of the accounting application. 2020-08-03 00:20:26 +08:00
2c3bd43345 Fixed the URL of the 3351 brought-forward subject in the balance sheet to the income statement before the current period in the accounting application. 2020-08-02 22:38:16 +08:00
688e350017 Adapted dirtyfields in the data models. 2020-08-02 09:53:26 +08:00
fe8dae191e Revised the strip_form() utility to remove the empty input in the Mia core application. 2020-08-02 09:44:08 +08:00
db4100cb9c Removed the unused is_chosen_year() method from the Period utility in the Mia core application. 2020-08-02 02:28:47 +08:00
c3fc7ad3ca Removed unnecessary @property decorations in the Period utility in the Mia core application. 2020-08-02 02:27:54 +08:00
783ecea5cb Revised the documentation of Period in the Mia core application. 2020-08-02 02:20:08 +08:00
1b89fef01c Fixed and replaced the incorrect class property declaration with the instance property declaration, and replaced unnecessary pseudo properties with instance properties. 2020-08-02 01:04:47 +08:00
edb1aece09 Fixed the documentation of the view of the home page in the Mia core application. 2020-08-02 00:29:43 +08:00
da80816b37 Revised the coding style according to PEP8. 2020-08-02 00:08:53 +08:00
9d988f17ca Added forms and validators, and applied them to the transaction form in the accounting application. 2020-08-01 23:56:41 +08:00
c1da25b3b5 Fixed the text in the period chooser for the period "since last month" in the period chooser template in the Mia core application. 2020-08-01 07:56:06 +08:00
aec234fc01 Renamed the add_param() method to add(), the del_param() method to remove(), and the set_param() method to set() in UrlBuilder in the Mia core application. 2020-07-31 21:16:03 +08:00
1a27d87400 Added the strip_form() utility to the Mia core application, and apply it to the transaction_store() view of the accounting application. 2020-07-31 00:14:12 +08:00
a30c937a4b Renamed the digest_login_required() decorator to login_required(), for consistency. 2020-07-30 00:12:13 +08:00
e64089f06f Added the default_spec() method to Period, and applied it to the views in the accounting application. 2020-07-29 19:08:10 +08:00
80b871d488 Added the retrieve_status() utility and applied it in the retrieve_status template tag in the Mia core application. 2020-07-28 22:22:06 +08:00
983f38d6f0 Renamed the function of the retrieve_status() template tag to retrieve_status_tag() with alias to retrieve_status. 2020-07-28 22:19:26 +08:00
a0ec831310 Removed the unused index template filter from the Mia core application. 2020-07-28 22:12:46 +08:00
9ab325a1c7 Added the dict template filter to obtain a value from a dictionary in the Mia core application, and applied it in the templates of the forms of the transactions in the acccounting application. 2020-07-28 22:11:54 +08:00
d6df2496be Removed an excess trailing blank line in the Mia core application. 2020-07-28 20:14:55 +08:00
7ae30f9980 Revised the retrieve_status() template tag and renamed the errors template variable to page_errors in the Mia core application. 2020-07-28 20:06:09 +08:00
50c06bd3d3 Added the error_redirect() utility, and revised the documentation of the stored status utilities in the Mia core application. 2020-07-28 20:01:58 +08:00
958e3048bb Added the documentation to the success_redirect() utility in the Mia core application. 2020-07-28 19:34:14 +08:00
依瑪貓
8285c69685 Fixed an error in the storing the status into the session in the Mia core application. 2020-07-28 09:38:58 +08:00
b5e7f9878f Fixed an error in the storing the status into the session in the Mia core application. 2020-07-28 08:43:30 +08:00
e90defd25d Added the stored status and a dummy transaction_store() view to the accounting application. 2020-07-28 08:22:42 +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
cc18dbd5f1 Reordered the code in the template tags in the Mia core application. 2020-07-27 21:23:40 +08:00
5a2a3a6c56 Fixed the UrlBuilder utility to allow dummy parameter value that is None in the Mia core application. 2020-07-24 07:25:30 +08:00
10cbe2a70f Revised the documentation of the utilities of the Mia core application. 2020-07-24 06:42:33 +08:00
6e49443b88 Renamed the new_id() utility to new_pk() in the Mia core application. 2020-07-23 23:24:42 +08:00
e04736b90d Renamed the new_sn() utility to new_id() in the Mia core application. 2020-07-23 23:04:18 +08:00
6453cd4b8e Added the edit button to the transaction views in the accounting application. 2020-07-23 22:32:34 +08:00
0a29ffaa12 Moved the url_with_return template tag from the accounting application to the Mia core application. 2020-07-23 22:23:40 +08:00
334292e6e8 Revised the url_period() tag in the Mia core application. 2020-07-23 22:19:27 +08:00
25383a3ae6 Employed a regular expression pattern in the PeriodConverter to check the period format first. 2020-07-23 22:13:17 +08:00
d88d3942d2 Removed the url_query() template tag from the Mia core application. 2020-07-23 22:05:41 +08:00
2db3899dea Added the transaction views in the accounting application. 2020-07-23 22:02:26 +08:00
f9a9a99246 Added PeriodConverter to convert a period specification to a period, and applied it in the URL patterns. 2020-07-21 22:05:39 +08:00
01dbd7e60b Removed the default order of the users and the countries in the Mia core application. 2020-07-21 21:24:36 +08:00
ebb7c06f91 Applied the set_multi_lingual_attr() utility function to the titles of the accounts and the names of the countries. 2020-07-21 21:23:54 +08:00
8d2d4c39b6 Added the set_multi_lingual_attr() utility function in the Mia core application. 2020-07-21 21:21:43 +08:00
依瑪貓
c6a62d92d5 Added the search page in the accounting application. 2020-07-21 10:04:29 +08:00
361b8c9881 Added the new_sn() utility method to the Mia core application. 2020-07-20 21:55:34 +08:00
b8b5546b9f Renamed the variables. 2020-07-19 21:08:10 +08:00
1cd64955a3 Removed the now-unused SqlQuery from the Mia core application. 2020-07-18 23:43:31 +08:00
0525197993 Renamed the variable in the url_period template tag in the Mia core application. 2020-07-17 23:06:10 +08:00
856bcd47ff Revised the url_period template tag so that it works with or without the subject code in the mia_core application. 2020-07-17 23:05:23 +08:00
e2945045f3 Added the default parameter to the get_multi_lingual_attr() function to allow a different default lanugage for a data model. 2020-07-16 23:18:16 +08:00
418dcd9803 Renamed the get_multi_language_attr() method to get_multi_lingual_attr(), and renamed the multi-lingual model fields from _zhtw to _zh_hant, and _zhcn to _zh_hans. 2020-07-16 23:13:15 +08:00
a58f6d6d11 Moved the core custom template filters and tags to the template tag library in the Mia core application. 2020-07-16 23:03:37 +08:00
42e444b8c8 Revised the code for PEP8. 2020-07-16 22:25:33 +08:00
5b9ac93ee5 Revised the import of django.utils.timezone.localdate. 2020-07-16 22:22:35 +08:00
983c2a5533 Added the cash summary report in the accounting application. 2020-07-16 00:28:50 +08:00
c65d778a1b Revised Period in the Mia core application. 2020-07-14 22:15:04 +08:00
94884e72b8 Added and applied the current() method to Language in the Mia core application. 2020-07-14 22:14:39 +08:00
ef4c8ea2ae Renamed the get_default() method to default() in Language in the Mia core application. 2020-07-14 22:12:17 +08:00
e895de3abc Changed Period to use the current language instead of expecting the language passed by the caller. 2020-07-14 22:10:27 +08:00
fa034b9a6a Added the get_multi_language_attr() function to the Mia core application, to deal with the multi-lingual attributes, and applied it in the data models. 2020-07-14 22:01:32 +08:00
依瑪貓
1212cc2858 Revised the TODO view to accept additional arguments in the Mia core application. 2020-07-14 09:59:56 +08:00
069cd9ca74 Revised the parameters of Period. 2020-07-14 07:43:47 +08:00
ea354ae101 Added ReportUrl to help building the report chooser in the accounting application. 2020-07-14 07:41:19 +08:00
39c75f772a Added the balance-before record and the sum record to the cash account report. Moved the SqlQuery utility from the accounting application to the Mia core application. 2020-07-13 19:54:27 +08:00
fa7416d0f3 Replaced the CashReportView list view with the cash view function, to simplify. Moved the pagination query parameter parser from the view to Pagination. 2020-07-11 17:23:38 +08:00
562989bde2 Renamed templatetags to template_tags, and templatefilters to template_filters. 2020-07-11 07:18:14 +08:00
d7f04dbb39 Added the pagination navigation bar and the action buttons to the cash account in the accounting application. 2020-07-11 07:12:53 +08:00
241445bc7a Removed is_safe=True from the smart_date template filter. 2020-07-10 18:54:55 +08:00
f8d25412cb Removed an unused import from templatetags. 2020-07-10 00:30:19 +08:00
a7ec80f066 Added a dummy "TODO" view to the Mia core application. 2020-07-09 23:18:37 +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