d5719ad223Refined to enable the selection of Accumulated Profit or Loss accounts other than 3351-001, facilitating the consolidation of existing balances.依瑪貓2023-11-28 08:03:04 +08:00
eb3fa8f414Added docs/requirements.txt and the "sphinx_rtd_theme" theme to the readthedocs configuration, as Read the Docs does not install sphinx_rtd_theme by default after August 7, 2023.imacat2023-10-24 05:11:39 +05:30
cd86651606Added the "accounting-titleize" console command to capitalize the existing account titles that were already initialized.依瑪貓2023-07-29 12:55:27 +08:00
9147744ff7Renamed the test_init test to test_init_db in the ConsoleCommandTestCase test case.依瑪貓2023-07-29 12:34:12 +08:00
1a212a5330Updated the documentation of the test_init test of the ConsoleCommandTestCase test case.依瑪貓2023-07-29 11:59:23 +08:00
0614457b7bMoved dropping tables from the setUp method to the test_init test in the ConsoleCommandTestCase test case. The other tests may not need to drop the tables first.依瑪貓2023-07-29 11:57:44 +08:00
545f49043bUpdated the Sphinx documentation.依瑪貓2023-07-29 10:01:28 +08:00
cac0d66ca1Updated the translation.依瑪貓2023-07-29 08:56:54 +08:00
5ffd37c859Revised to capitalize the account titles when initializing the base accounts instead of when displaying the account titles, so that the titles of the user-added accounts are not capitalized incorrectly.依瑪貓2023-07-26 20:49:06 +08:00
9ae8c1bce9Updated the translation.依瑪貓2023-06-10 10:43:35 +08:00
ec0ff3e2e6Updated the log in message at the home page, and removed the next URI from the log in link. The next URI is not clear text but encrypted now. There is no need to attach the next URI, as it defaults redirects to the accounting application without the next URI.依瑪貓2023-06-10 10:41:39 +08:00
40a8080751Removed unused imports from the test site.依瑪貓2023-06-10 10:33:57 +08:00
736a4086eeRemoved an unused import from testlib_journal_entry.py.依瑪貓2023-06-10 10:33:09 +08:00
6723077b72Revised the code to read from the CSV data files in the __test_base_account_data method of the ConsoleCommandTestCase test case, to prevent PyCharm from complaining.依瑪貓2023-06-10 10:32:33 +08:00
0ae00bce79Changed the properties of the test cases from public to private.依瑪貓2023-06-10 10:23:33 +08:00
356d2010ccRemoved the CSRF token from the get_client function in testlib.py, so that type hints and documentation can be added to the client and the CSRF token properties separately.依瑪貓2023-06-10 09:35:51 +08:00
501c4b1d22Added missing documentation to the global variables, class properties, and object properties.依瑪貓2023-06-09 07:28:47 +08:00
64b9c8c11fRemoved an excess property declaration in the populate_obj method of the JournalEntryForm form.依瑪貓2023-06-09 05:45:50 +08:00
9072de82d4Added the "decode_next" utility in the "accounting.utils.next_uri" module, and applied the "encode_next" and "decode_next" utilities to the NextUriTestCase test case, so that the test case do not need to get involved into the detail of the next URI encryption.依瑪貓2023-06-08 09:27:39 +08:00
30fd9c2164Fixed the documentation of the "is_default" property of the Period utility.依瑪貓2023-06-05 22:43:35 +08:00
7cb01b4ceeRevised the documentation of the columns of the data models.依瑪貓2023-06-05 16:54:38 +08:00
9a4e04c41fRenamed the HTML ID "collapsible-navbar" to "accounting-collapsible-navbar" in the test site.依瑪貓2023-06-03 11:12:28 +08:00
3a676e0b5aFixed the back URL of the creation forms, applying the accounting_or_next filter for the decoded next URI instead of getting the next URI directly.依瑪貓2023-05-23 09:05:30 +08:00
9cc7b64bb3Moved the "__as_next" utility from the test site to the "accounting.utils.next_uri" module, and applied it to the template of the unmatched offset list.依瑪貓2023-05-23 09:00:51 +08:00
09a344d749Removed excess spaces from the test_change_date test of the JournalEntryReorderTestCase test case.依瑪貓2023-05-23 08:40:23 +08:00
818c357613Revised the next URI utilities to apply URLSafeSerializer for encoding and decoding the next URI, in order to prevent tampering with the next URI.依瑪貓2023-05-23 08:24:12 +08:00
822c8fc49bRenamed the "__get_next_uri" function to "__get_next" in the "accounting.utils.next_uri" module.依瑪貓2023-05-23 07:10:30 +08:00
3b8a2e3bb1Replaced the "accounting-dummy-form" name with the dummy CSRF token to work with OWASP ZAP CSRF token scans.依瑪貓2023-05-22 18:32:24 +08:00
9e4927ee0bReplaced the get_errors_view with the get_messages_view in the create_test_app function in testlib.py.依瑪貓2023-05-22 00:03:13 +08:00
3b030c577cAdded the integrity value of the CDN stylesheet links in the base template of the test site.依瑪貓2023-05-19 18:08:33 +08:00
60b33f2a3bRevised the link to the stylesheet of tempus dominus in the base template of the test site.依瑪貓2023-05-19 18:05:43 +08:00
08fdf59844Revised the indent of the flashed success messages in the base template of the test site.依瑪貓2023-05-19 18:04:08 +08:00
b397515457Removed the size restriction in the next URI utilities. Buffer overflow may happen with any parameter, not only the "next" parameter. It should be solved in uWSGI, but not the application.依瑪貓2023-05-18 23:30:36 +08:00
65e7dcdf6dReplaced the "/next" next URI with the NEXT_URI constant in the test_reorder test of the JournalEntryReorderTestCase test case.依瑪貓2023-05-18 00:06:05 +08:00
74e414badfRemoved unnecessary f-strings from the test_reorder test of the JournalEntryReorderTestCase test case.依瑪貓2023-05-17 23:54:52 +08:00
69175979ffAdded the form name to the dummy forms so that they can be excluded by OWASP ZAP scanner for Anti-CSRF tokens.依瑪貓2023-05-17 22:56:47 +08:00
2f69e0f215Added the form name to the search forms so that they can be excluded by OWASP ZAP scanner for Anti-CSRF tokens.依瑪貓2023-05-17 21:43:21 +08:00
961385c389Added SESSION_COOKIE_SAMESITE and SESSION_COOKIE_SECURE to create_app of the test site, to set the SameSite and Secure flags for the session cookie.依瑪貓2023-05-17 19:57:06 +08:00
a691cfd2daApplied the or_next utility to the set local route of the test site.依瑪貓2023-05-17 19:54:13 +08:00
482a0faa23Added safeguard to the next URI utilities from invalid or insecure next URI.依瑪貓2023-05-17 16:12:30 +08:00
0ecf7b6617Revised the documentation of the "accounting.utils.cast" module.依瑪貓2023-05-17 15:33:42 +08:00
4408bbfc82Updated the JavaScript library versions, and added decimal.js-light to the documentation.imacat2023-05-06 23:59:06 +08:00
433110f486Revised the way to query accounts with Flask-SQLAlchemy style queries in the accounts method of the CurrentAccount data model.依瑪貓2023-05-04 09:35:14 +08:00
46bd27e126Revised the saveOriginalLineItem method of the JavaScript JournalEntryLineItemEditor class not to override the existing amount when the existing amount is less than the net balance. This make it easier when updating the existing journal entries.依瑪貓2023-04-30 14:46:13 +08:00
b718d19450Resolved an issue where, in cases where there was no existing localized title and the default title was submitted, the submitted account title or currency name would be erroneously saved as the localized title.依瑪貓2023-04-30 14:23:42 +08:00
a732656746Revised the coding style in the "__get_line_items" method of the OffsetMatcher class.依瑪貓2023-04-30 06:38:43 +08:00
1daed940b6Corrected the definition of the "is_offset" property in the "__get_line_items" method of the OffsetMatcher class.依瑪貓2023-04-30 06:38:01 +08:00
693f07a49cRemoved the "timestamp" and "user_pk" type aliases for the columns in the data models. They do not work with the current version of Flask-SQLAlchemy when creating Sphinx documentation.依瑪貓2023-04-30 05:51:31 +08:00
8c899776f2Corrected the filename in the csv method of the AccountsWithUnmatchedOffsets report class.依瑪貓2023-04-30 05:35:13 +08:00
f9aa226bf9Removed an unnecessary f-string from the csv method of the AccountsWithUnappliedOriginalLineItems report class.依瑪貓2023-04-30 05:34:34 +08:00
c9bb4197beFixed the error calling the old "setEnableDescriptionAccount" method in the saveOriginalLineItem method of the JavaScript JournalEntryLineItemEditor class.依瑪貓2023-04-30 05:25:28 +08:00
9ae8d587d8Removed the unused "random_pk" annotated type alias.依瑪貓2023-04-29 04:16:11 +08:00
158058dcfbUpdated the documentation of the created_at, created_by, updated_at, updated_by, and visited_at columns of the data models, for consistency.依瑪貓2023-04-28 21:53:11 +08:00
0bc9947234Revised the documentation of the new_id function.依瑪貓2023-04-26 20:35:23 +08:00
8c58a9083aAdded type hint subscription for the cls parameter of the new_id function.依瑪貓2023-04-26 18:31:13 +08:00
f45663754cFixed the documentation of the "accounting.utils.random_id" module.依瑪貓2023-04-26 18:27:56 +08:00
cda9e4e3c6Replaced importing the "typing" module as "t" with importing the individual names in the "typing" module. Since Python 3.9 introduced type hinting generics in standard collections, we do not have as many names to import now. This is also to be consistent with the practices of most major and standard packages and examples.依瑪貓2023-04-26 18:22:45 +08:00
ee5b447c23Renamed the "journal_entry_date" variable to "date" in the "__form" method of the JournalEntryData class in the lib module of the test site.依瑪貓2023-04-26 13:42:47 +08:00
25bfcf4aa4Fixed the documentation of the balance pseudo property of the JournalEntryLineItem data model.依瑪貓2023-04-26 13:39:40 +08:00
5956d2cd4cRenamed the "match" parameter to "value" in the setter of the "match" pseudo property of the JournalEntryLineItem data model, for consistency.依瑪貓2023-04-26 13:39:01 +08:00
833285d924Renamed the "is_offset" parameter to "value" in the setter of the "is_offset" pseudo property of the JournalEntryLineItem data model, for consistency.依瑪貓2023-04-26 13:38:25 +08:00
dee4f5e83fRenamed the "balance" parameter to "value" in the setter of the "balance" pseudo property of the JournalEntryLineItem data model, for consistency.依瑪貓2023-04-26 13:38:02 +08:00
f0d1cae32dRenamed the "net_balance" parameter to "value" in the setter of the "net_balance" pseudo property of the JournalEntryLineItem data model, for consistency.依瑪貓2023-04-26 13:37:47 +08:00
5dc71697b3Renamed the "credit" parameter to "value" in the setter of the "credit" pseudo property of the JournalEntryLineItem data model, for consistency.依瑪貓2023-04-26 13:37:33 +08:00
1bb1e03c08Renamed the "debit" parameter to "value" in the setter of the "debit" pseudo property of the JournalEntryLineItem data model, for consistency.依瑪貓2023-04-26 13:37:09 +08:00
914ff92e0fRenamed the "count" parameter to "value" in the setter of the "count" pseudo property of the Account data model, for consistency.依瑪貓2023-04-26 13:35:51 +08:00
8a1cf463b1Renamed the "journal_entry_date" parameter to "date" in the constructor of the CSVRow class in the "accounting.report.reports.ledger" module.依瑪貓2023-04-26 13:34:14 +08:00
d4cf224d6bRenamed the "journal_entry_date" parameter to "date" in the constructor of the CSVRow class in the "accounting.report.reports.income_expenses" module.依瑪貓2023-04-26 13:33:50 +08:00
8d412ec00aRenamed the "journal_entry_date" parameter to "date" in the show_journal_entry_order route.依瑪貓2023-04-26 13:32:42 +08:00
2986c518ceRenamed the "journal_entry_date" parameter to "date" in the sort_journal_entries route.依瑪貓2023-04-26 13:32:30 +08:00
f1351243a6Renamed the "journal_entry_date" parameter to "date" in the constructor of the JournalEntryReorderForm form.依瑪貓2023-04-26 13:29:55 +08:00
969e8c76a6Renamed the "journal_entry_date" parameter to "date" in the "sort_journal_entries_in" function in the "accounting.journal_entry.forms.reorder" module.依瑪貓2023-04-26 13:29:14 +08:00
10f5e75752Renamed the "journal_entry_date" variable to "date" in the "test_reorder" test of the JournalEntryReorderTestCase test case.依瑪貓2023-04-26 13:28:07 +08:00