Commit Graph

  • 2969e83afe Advanced to version 1.5.2. v1.5.2 imacat 2023-04-30 06:39:53 +08:00
  • a732656746 Revised the coding style in the "__get_line_items" method of the OffsetMatcher class. imacat 2023-04-30 06:38:43 +08:00
  • 1daed940b6 Corrected the definition of the "is_offset" property in the "__get_line_items" method of the OffsetMatcher class. imacat 2023-04-30 06:38:01 +08:00
  • f29cb00aec Advanced to version 1.5.1. v1.5.1 imacat 2023-04-30 05:53:37 +08:00
  • 693f07a49c Removed 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. imacat 2023-04-30 05:51:31 +08:00
  • 8c899776f2 Corrected the filename in the csv method of the AccountsWithUnmatchedOffsets report class. imacat 2023-04-30 05:35:13 +08:00
  • f9aa226bf9 Removed an unnecessary f-string from the csv method of the AccountsWithUnappliedOriginalLineItems report class. imacat 2023-04-30 05:34:34 +08:00
  • c9bb4197be Fixed the error calling the old "setEnableDescriptionAccount" method in the saveOriginalLineItem method of the JavaScript JournalEntryLineItemEditor class. imacat 2023-04-30 05:25:28 +08:00
  • 9ae8d587d8 Removed the unused "random_pk" annotated type alias. imacat 2023-04-29 04:16:11 +08:00
  • 158058dcfb Updated the documentation of the created_at, created_by, updated_at, updated_by, and visited_at columns of the data models, for consistency. imacat 2023-04-28 21:53:11 +08:00
  • 0bc9947234 Revised the documentation of the new_id function. imacat 2023-04-26 20:35:23 +08:00
  • 8c58a9083a Added type hint subscription for the cls parameter of the new_id function. imacat 2023-04-26 18:31:13 +08:00
  • f45663754c Fixed the documentation of the "accounting.utils.random_id" module. imacat 2023-04-26 18:27:56 +08:00
  • cda9e4e3c6 Replaced 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. imacat 2023-04-26 18:22:45 +08:00
  • ee5b447c23 Renamed the "journal_entry_date" variable to "date" in the "__form" method of the JournalEntryData class in the lib module of the test site. imacat 2023-04-26 13:42:47 +08:00
  • 25bfcf4aa4 Fixed the documentation of the balance pseudo property of the JournalEntryLineItem data model. imacat 2023-04-26 13:39:40 +08:00
  • 5956d2cd4c Renamed the "match" parameter to "value" in the setter of the "match" pseudo property of the JournalEntryLineItem data model, for consistency. imacat 2023-04-26 13:39:01 +08:00
  • 833285d924 Renamed the "is_offset" parameter to "value" in the setter of the "is_offset" pseudo property of the JournalEntryLineItem data model, for consistency. imacat 2023-04-26 13:38:25 +08:00
  • dee4f5e83f Renamed the "balance" parameter to "value" in the setter of the "balance" pseudo property of the JournalEntryLineItem data model, for consistency. imacat 2023-04-26 13:38:02 +08:00
  • f0d1cae32d Renamed the "net_balance" parameter to "value" in the setter of the "net_balance" pseudo property of the JournalEntryLineItem data model, for consistency. imacat 2023-04-26 13:37:47 +08:00
  • 5dc71697b3 Renamed the "credit" parameter to "value" in the setter of the "credit" pseudo property of the JournalEntryLineItem data model, for consistency. imacat 2023-04-26 13:37:33 +08:00
  • 1bb1e03c08 Renamed the "debit" parameter to "value" in the setter of the "debit" pseudo property of the JournalEntryLineItem data model, for consistency. imacat 2023-04-26 13:37:09 +08:00
  • 914ff92e0f Renamed the "count" parameter to "value" in the setter of the "count" pseudo property of the Account data model, for consistency. imacat 2023-04-26 13:35:51 +08:00
  • 8a1cf463b1 Renamed the "journal_entry_date" parameter to "date" in the constructor of the CSVRow class in the "accounting.report.reports.ledger" module. imacat 2023-04-26 13:34:14 +08:00
  • d4cf224d6b Renamed the "journal_entry_date" parameter to "date" in the constructor of the CSVRow class in the "accounting.report.reports.income_expenses" module. imacat 2023-04-26 13:33:50 +08:00
  • 8d412ec00a Renamed the "journal_entry_date" parameter to "date" in the show_journal_entry_order route. imacat 2023-04-26 13:32:42 +08:00
  • 2986c518ce Renamed the "journal_entry_date" parameter to "date" in the sort_journal_entries route. imacat 2023-04-26 13:32:30 +08:00
  • f1351243a6 Renamed the "journal_entry_date" parameter to "date" in the constructor of the JournalEntryReorderForm form. imacat 2023-04-26 13:29:55 +08:00
  • 969e8c76a6 Renamed the "journal_entry_date" parameter to "date" in the "sort_journal_entries_in" function in the "accounting.journal_entry.forms.reorder" module. imacat 2023-04-26 13:29:14 +08:00
  • 10f5e75752 Renamed the "journal_entry_date" variable to "date" in the "test_reorder" test of the JournalEntryReorderTestCase test case. imacat 2023-04-26 13:28:07 +08:00
  • 169b3c292a Renamed the "journal_entry_date" variable to "date" in the "__get_journal_entry_condition" method of the LineItemCollector class in the "accounting.report.reports.search" module. imacat 2023-04-26 13:26:38 +08:00
  • 3eb3aef2f2 Renamed the "j_date" parameter to "date" in the "__next_j_no" method of the BaseTestData class in the lib module of the test site. imacat 2023-04-26 13:24:19 +08:00
  • 6c455a615c Renamed the "j_date" variable to "date" in the "_add_journal_entry" method of the BaseTestData class in the lib module of the test site. imacat 2023-04-26 13:23:53 +08:00
  • 4f3339bf68 Renamed the "j_date" variable to "date" in the "__add_usd_recurring" method of the SampleData class in the reset module of the test site. imacat 2023-04-26 13:23:23 +08:00
  • b5aa7e923f Renamed the "j_date" variable to "date" in the "_init_data" method of the ReportTestData class in test_report.py. imacat 2023-04-26 13:22:46 +08:00
  • 359c335662 Revised the way to import from the datetime package, to avoid name conflict with the common "date" and "time" names. imacat 2023-04-26 13:17:31 +08:00
  • c11ae23885 Removed an unused import from the "accounting.utils.cast" module. imacat 2023-04-26 13:15:18 +08:00
  • e083b11394 Removed the random_pk type alias, because autoincrement=False does not seem to work with it. imacat 2023-04-24 23:29:58 +08:00
  • 167990fc4c Renamed the random_id type alias to random_pk. imacat 2023-04-24 20:22:33 +08:00
  • d5c1be3d80 Rewrote the data model declaration of the test site with the mapped type hint and the mapped columns in SQLAlchemy 2.0. imacat 2023-04-24 14:02:56 +08:00
  • f6567794e0 Added the documentation to the authentication blueprint of the test site. imacat 2023-04-24 14:00:32 +08:00
  • ded85d88f7 Added the timestamp, user_pk, and random_id type aliases to simplify the column definition of the data models. imacat 2023-04-24 03:37:33 +08:00
  • 6d780e9296 Revised the title of the change log. imacat 2023-04-23 22:19:01 +08:00
  • 86637267d3 Advanced to version 1.5.0. v1.5.0 imacat 2023-04-23 18:46:14 +08:00
  • 71e97721aa Removed the documentation link from the documentation in intro.rst. It does not make sense for a circular link to itself. imacat 2023-04-23 18:41:51 +08:00
  • 5815608288 Added the VERSION constant to the accounting module for the package version, and revised pyproject.toml and conf.py to read the version from it. imacat 2023-04-23 18:35:03 +08:00
  • 5f75d93c6a Simplified README.rst. imacat 2023-04-23 18:16:05 +08:00
  • 118c4b458e Added the change log. imacat 2023-04-23 13:46:34 +08:00
  • 3f7e4c0dda Rewrote the data model declaration with the mapped type hint and the mapped columns in SQLAlchemy 2.0. Added "SQLAlchemy >= 2" to the dependencies. imacat 2023-04-23 11:54:37 +08:00
  • eed4c923f6 Removed the "be" cast function to cast data type for the binary expressions. It is to be replaced by the mapped type hints. imacat 2023-04-23 10:35:50 +08:00
  • 09dd5ae541 Revised the long line in the JournalEntryConverter converter. imacat 2023-04-23 09:52:21 +08:00
  • 172a12b134 Fixed the type hint of the "currency_options" function. imacat 2023-04-23 09:44:25 +08:00
  • f3c558f48a Advanced to version 1.4.1. v1.4.1 imacat 2023-04-22 18:22:47 +08:00
  • 988757d30e Revised the JavaScript journal entry line item editor to only override the description with the description of the original line item when there is no existing description. imacat 2023-04-20 00:28:28 +08:00
  • 50cea90d1b Revised the JavaScript journal entry line item editor to allow editing the description for offsets and partially-offset original items. imacat 2023-04-20 00:26:58 +08:00
  • 71dfb6f003 Advanced to version 1.4.0. v1.4.0 imacat 2023-04-18 09:33:35 +08:00
  • be628b4aa1 Updated the Sphinx documentation. imacat 2023-04-18 09:33:00 +08:00
  • 5d444adec4 Updated the translation. imacat 2023-04-18 09:32:38 +08:00
  • 014d67f7b8 Removed the period filter from the unapplied original line items and unmatched offsets. It does not make sense for these two reports. imacat 2023-04-18 09:21:42 +08:00
  • 26b4d4388f Revised the imports in the "accounting.report.reports.unmatched" module. imacat 2023-04-18 09:10:25 +08:00
  • 6e2e92d0fb Removed the redundant currency from the title of the reports when the currency is the default currency. imacat 2023-04-18 08:46:23 +08:00
  • b1f87cb707 Updated the icon of the unmatched offsets. imacat 2023-04-18 08:20:51 +08:00
  • 928dea8312 Added the account information to the original line item selector of the journal entry form. imacat 2023-04-18 08:15:33 +08:00
  • b8cec8a2af Revised the account options in the report toolbar to be scrollable. imacat 2023-04-18 08:03:06 +08:00
  • b6ae946f32 Removed the account code from the journal entry form for mobile screens. imacat 2023-04-18 07:55:00 +08:00
  • a9acc18a6f Removed the account code from the journal entry detail for mobile screens. imacat 2023-04-18 07:13:10 +08:00
  • 5468010c87 Removed the account code from the account list with unmatched offsets for mobile screens. imacat 2023-04-18 07:10:26 +08:00
  • b505e380df Removed the account code from the account list with unapplied original line items for mobile screens. imacat 2023-04-18 07:10:15 +08:00
  • 412da170e1 Added the get_net_balances function to the "accounting.report.utils.unapplied" module to replace the __get_net_balances methods of the OffsetMatcher and UnappliedOriginalLineItems classes. imacat 2023-04-18 07:04:00 +08:00
  • fa237795cf Simplified the query for the unapplied original line items, replacing the offset matcher with its own query. imacat 2023-04-18 01:26:02 +08:00
  • e2f854b5cc Changed the unmatched offsets from a module to a report, and to show both the unapplied original line items and the unmatched offsets instead of only the unmatched offsets, and added the accumulated balance, in order for ease of use. Removed the match information from the unapplied original line item report. Added the currency and period filters to both the unapplied original line item report and unmatched offset reports. imacat 2023-04-18 01:12:04 +08:00
  • f8895e3bff Revised the documentation of the "__get_unmatched_offsets" method of the OffsetMatcher class. imacat 2023-04-16 22:52:14 +08:00
  • 84ad065782 Merged the "accounting.utils.unapplied" module into the "accounting.utils.offset_matcher" module as the "__get_unapplied" method of the OffsetMatcher class. It is only used in the offset matcher. imacat 2023-04-16 22:46:05 +08:00
  • 260e3cbe82 Advanced to version 1.3.3. v1.3.3 imacat 2023-04-13 09:56:16 +08:00
  • cd039520b6 Added permission checks to the reset routes in the test site. imacat 2023-04-13 09:39:52 +08:00
  • 05e652aa62 Changed the "_journal_entries" and "_line_items" properties in the BaseTestData class from protected to private, renaming them to "__journal_entries" and "__line_items", respectively. There is no need to access it from the child classes anymore. imacat 2023-04-13 09:28:53 +08:00
  • 5c9bf0638c Removed the "csv_data" pseudo property from BaseTestData. imacat 2023-04-13 09:25:50 +08:00
  • bbc78433fd Moved the sample data generation from the make-sample.py script to the test site. The sample data is generated at real time. This avoids the problem with pre-recorded sample data that the beginning of the months and weeks changes with the day resetting the sample data. imacat 2023-04-13 09:23:04 +08:00
  • 7bcc2b28b2 Moved the JournalEntryLineItemData, JournalEntryCurrencyData, JournalEntryData, and BaseTestData classes from testlib.py to the ".lib" module in the test site. imacat 2023-04-13 08:30:07 +08:00
  • c1d9ca284c Changed the new_form and update_form methods of the JournalEntryData class in testlib.py to receive the next URI as the parameter instead of the constant, so that the JournalEntryData class can move to other places. imacat 2023-04-13 08:23:52 +08:00
  • 165e28441a Changed the sample data format from JSON to CSV for the test site live demonstration. imacat 2023-04-12 21:32:21 +08:00
  • 621020b0f0 Advanced to version 1.3.2. v1.3.2 imacat 2023-04-12 18:01:11 +08:00
  • 6ad36cfaa3 Updated the translation of the test site. imacat 2023-04-12 18:00:26 +08:00
  • 20b0412091 Added the sample data generation and database reset on the test site for live demonstration. imacat 2023-04-12 17:43:05 +08:00
  • 3ca246d3e0 Revised the strings in babel-utils.py and babel-utils-test-site.py. imacat 2023-04-12 15:04:32 +08:00
  • 85d1b13ccd Added the "populate" method to the BaseTestData class, and changed it so that the tests need to call the "populate" method to populate the data, so that it may return the data with populating the database in the future. imacat 2023-04-12 12:28:34 +08:00
  • 3bada28b8f Revised the BaseTestData class in testlib.py to add journal entries directly to the database instead of through the API, in order to allow the data to be reused, and to speed up the test. imacat 2023-04-12 12:12:11 +08:00
  • 8f2cef8d81 Revised the imports in the accounting.journal_entry.converters module. imacat 2023-04-12 00:41:29 +08:00
  • e62316c477 Advanced to version 1.3.1. v1.3.1 imacat 2023-04-11 22:32:22 +08:00
  • 24ddb0c278 Updated the translation of the test site. imacat 2023-04-11 22:19:39 +08:00
  • 536f3390aa Revised the home page of the test site. imacat 2023-04-11 22:19:29 +08:00
  • fadd8e73b6 Revised the log in process of the test site to return to the previous page after logging in. imacat 2023-04-11 22:05:57 +08:00
  • 12ccf658bf Revised the documentation in README.rst and intro.rst. imacat 2023-04-11 21:33:51 +08:00
  • e30d1257e5 Revised the navigation bar so that viewers do not see the menu of the unmatched offsets. imacat 2023-04-11 07:50:10 +08:00
  • 404b902d88 Advanced to version 1.3.0. v1.3.0 imacat 2023-04-11 00:08:53 +08:00
  • a560ff175a Updated the Sphinx documentation. imacat 2023-04-11 00:06:17 +08:00
  • 4be1ead6b5 Added the "accounting-init-db" console command to the database initialization of the test site, for simplicity. imacat 2023-04-10 23:58:08 +08:00
  • 700e4f822a Merged the "init-db" console command to the Flask application initialization in the test site, to simplify the code. imacat 2023-04-10 23:50:16 +08:00
  • c21ed59dfe Replaced SQLAlchemy 1.x-style bulk_save_objects(objects) with SQLAlchemy 2.x-style execute(insert(model), data). imacat 2023-04-10 23:32:32 +08:00
  • c4a8326bfc Added the "accounting-init-db" console command to replace the trivial "accounting-init-base", "accounting-init-accounts" and "accounting-init-currencies" console commands. imacat 2023-04-10 23:14:04 +08:00