|
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.
|
2023-04-26 18:22:45 +08:00 |
|
|
c21ed59dfe
|
Replaced SQLAlchemy 1.x-style bulk_save_objects(objects) with SQLAlchemy 2.x-style execute(insert(model), data).
|
2023-04-10 23:38:31 +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.
|
2023-04-10 23:38:27 +08:00 |
|
|
4e550413ba
|
Revised the styles for blueprints to specify the URL, for consistency in the base account, account, currency, and journal entry management.
|
2023-04-09 10:08:22 +08:00 |
|
|
a3507494e5
|
Added the refundable deposit accounts to the default list of accounts that need offset in the accounting-init-accounts console command.
|
2023-04-08 18:12:57 +08:00 |
|
|
3aa6c8d6f6
|
Removed the empty value in the __is_need_offset function in the "accounting.account.commands" console.command.
|
2023-04-08 18:12:56 +08:00 |
|
|
4c2dcc5070
|
Renamed the project from "Mia! Accounting Flask" to "Mia! Accounting".
|
2023-04-04 18:26:54 +08:00 |
|
|
d0d2d77a2e
|
Added the limitation so that essential accounts, like cash, and the accounts in use, cannot be deleted.
|
2023-03-22 00:37:26 +08:00 |
|
|
77787eee9f
|
Fixed the search queries to be case-insensitive.
|
2023-03-20 23:54:38 +08:00 |
|
|
50dd6078c7
|
Replaced "Need offset" with "Needs Offset" as the text of the badge.
|
2023-03-20 22:43:53 +08:00 |
|
|
8f909965a9
|
Renamed "voucher line item" to "journal entry line item".
|
2023-03-20 20:52:35 +08:00 |
|
|
c1235608d8
|
Renamed "journal entry" to "voucher line item", and "entry type" to "side".
|
2023-03-19 22:09:40 +08:00 |
|
|
5571c0d01f
|
Renamed all the is_XXX_needed properties to is_need_XXX. For example, especially the is_offset_needed property to is_need_offset, to be clear and understandable.
|
2023-03-18 22:52:29 +08:00 |
|
|
4eac10981f
|
Added owner's equity (base code starts with "3") to the accounts that can take offset.
|
2023-03-18 22:11:44 +08:00 |
|
|
2b2c665eb6
|
Replaced the if checks with assert in the IsBalanced validator of the currency sub-form of the transaction form, the NoOffsetNominalAccount validator of the account form, and the CodeUnique validator of the currency form.
|
2023-03-15 22:25:24 +08:00 |
|
|
e9d8a8fcd8
|
Added the "accounting.utils.cast" module to cast the things to the expected type in order to supress the warnings from PyCharm.
|
2023-03-15 01:09:59 +08:00 |
|
|
1d6a53f7cd
|
Revised the account form so that the if-offset-needed option is only available for real accounts.
|
2023-03-12 01:34:42 +08:00 |
|
|
965e78d8ad
|
Revised the rule for the accounts that need offset in the accounting-init-accounts console command.
|
2023-03-11 17:15:08 +08:00 |
|
|
5132141c68
|
Renamed the "is_pay_off_needed" column of the Account data model to "is_offset_needed", and the "pay_off_target_id" column of the JournalEntry data model to "original_id".
|
2023-03-09 17:16:05 +08:00 |
|
|
8cf81b5459
|
Revised the documentation of the "accounting.account.queries", "accounting.base_account.queries", "accounting.currency.queries", and "accounting.transaction.queries" modules.
|
2023-03-04 06:57:35 +08:00 |
|
|
6957e52d0d
|
Renamed the "accounting.account.query", "accounting.base_account.query", "accounting.currency.query", and "accounting.transaction.query" modules to "accounting.account.queries", "accounting.base_account.queries", "accounting.currency.queries", and "accounting.transaction.queries", respectively. There will be more than one query in the next report module.
|
2023-03-03 01:12:36 +08:00 |
|
|
515d39e61c
|
Added the __get_detail_uri and __get_list_uri functions to the "accounting.account.views" module, for simplicity.
|
2023-02-27 16:29:56 +08:00 |
|
|
4cfe7c7c59
|
Added the flash_all_errors utility in the "accounting.utils.flash_errors" module to recursively flush all form errors in the sub-forms.
|
2023-02-25 12:27:55 +08:00 |
|
|
2e3633b205
|
Revised to sort the accounts in the same base before saving an account to a new base, and added the test_change_base_code test to the AccountTestCase test case for this.
|
2023-02-25 09:44:17 +08:00 |
|
|
d68aa91c33
|
Removed the redundant post_update methods from the AccountForm and CurrencyForm forms.
|
2023-02-24 17:18:55 +08:00 |
|
|
3f63fb0bda
|
Fixed a type hint in the populate_obj method of the AccountForm form.
|
2023-02-24 00:18:55 +08:00 |
|
|
d5af5de3c1
|
Renamed offset to pay-off, to be clear.
|
2023-02-23 11:32:55 +08:00 |
|
|
a4c89f1494
|
Added the type hint and the documentation for the obj parameter of the post_update method of the AccountForm and CurrencyForm forms.
|
2023-02-20 16:08:49 +08:00 |
|
|
a73e3204b9
|
Renamed the "accounting.utils.next_url" module to "accounting.utils.next_uri".
|
2023-02-20 16:08:32 +08:00 |
|
|
36b0bb3a0e
|
Revised the import in the "accounting.account.view" module.
|
2023-02-18 18:40:11 +08:00 |
|
|
d99f592cff
|
Merged the "accounting.database" module into the "accounting" module. It has only one member as "db", the database instance, and does not need to be separated into another file.
|
2023-02-08 11:13:09 +08:00 |
|
|
c3cedf714b
|
Revised the documentation of the init_app function of the "accounting.locale", "accounting.base_account", "accounting.account", and "accounting.currency" modules.
|
2023-02-07 17:01:08 +08:00 |
|
|
5cf3cb1e11
|
Added the "is_modified" pseudo property to the Account data model, and applied it to the update_account view, to count the localized titles for modification.
|
2023-02-07 11:14:15 +08:00 |
|
|
fb9ff1d7ff
|
Added to validate if the base account is available in the AccountForm form with the BaseAccountAvailable validator.
|
2023-02-07 09:30:06 +08:00 |
|
|
be10984cbb
|
Fixed the documentation of the BaseAccountExists validator.
|
2023-02-07 09:28:10 +08:00 |
|
|
d78b941674
|
Applied the delete method of the Account data model to the delete_account view, to make things easier.
|
2023-02-07 00:22:23 +08:00 |
|
|
895bca2508
|
Fixed the documentation of the list_accounts view.
|
2023-02-06 11:07:18 +08:00 |
|
|
b5d87d2387
|
Revised to allow the viewers to view the account order page.
|
2023-02-03 12:57:53 +08:00 |
|
|
f32d268494
|
Revised the order and sorting routes from "/base/" to "/bases/".
|
2023-02-03 12:57:53 +08:00 |
|
|
589da0c1c6
|
Renamed "sorting" to "reorder", and the "sort-form" route to "order".
|
2023-02-03 12:57:53 +08:00 |
|
|
7dc754174c
|
Revised the documentation of the views.
|
2023-02-03 12:57:53 +08:00 |
|
|
5238168b2d
|
Added support to sort the accounts under the same base account.
|
2023-02-03 12:57:53 +08:00 |
|
|
9f9c40c30e
|
Revised the code to find the next number in the populate_obj method of the AccountForm form.
|
2023-02-03 12:57:53 +08:00 |
|
|
581e803707
|
Moved the user utilities from the "accounting.database" module to the "accounting.utils.users" module, and simplified its use.
|
2023-02-03 12:57:53 +08:00 |
|
|
2359842e80
|
Added to query the "offset needed" in the get_account_query function.
|
2023-02-03 12:55:58 +08:00 |
|
|
cb0dea58f1
|
Fixed the documentation of the AccountConverter converter.
|
2023-02-03 12:55:55 +08:00 |
|
|
241ad337c8
|
Added the "accounting.utils.next_uri" utilities to fixed how the next URI works.
|
2023-02-03 12:55:55 +08:00 |
|
|
e29b99b0a7
|
Merged the "accounting.base_account.models" and "accounting.account.models" modules into the new "accounting.modules" module, so that the data models can reference one another.
|
2023-02-03 12:55:54 +08:00 |
|
|
e9f6b769f4
|
Added the account management.
|
2023-02-03 12:55:54 +08:00 |
|