依瑪貓
|
56f08786ad
|
Revised the data order of the add_accounts() method in DataFiller to put English first in the accounting application.
|
2020-08-25 13:40:24 +08:00 |
|
|
ddb449262e
|
Revised the code to deal with the current user in the data models, so that the currently logged-in user can be supplied in the initial data.
|
2020-08-25 07:47:20 +08:00 |
|
|
04703df6b5
|
Replaced the combined localized data models into flexible, separated localized data models and their accompanying localization data models, so that adding new languages works automatically without having to change the data model definitions.
|
2020-08-24 21:59:50 +08:00 |
|
依瑪貓
|
567a610e90
|
Revised to allow amounts in decimal numbers in the accounting application.
|
2020-08-21 10:00:59 +08:00 |
|
|
4acc008457
|
Renamed the Populator utility to DataFiller in the accounting application.
|
2020-08-19 19:19:37 +08:00 |
|
依瑪貓
|
68964c5ed5
|
Moved the get_summary_categories() utility to TransactionFormView in the accounting application.
|
2020-08-19 14:13:30 +08:00 |
|
依瑪貓
|
b8f852c5f2
|
Moved the fill_txn_from_post() and _find_max_record_no() utilities to the fill_from_post() method in the transaction data model in the accounting application.
|
2020-08-19 14:08:17 +08:00 |
|
依瑪貓
|
790e8da908
|
Moved the make_txn_form_from_model utility to the from_model method in the TransactionForm in the accounting application.
|
2020-08-19 13:43:27 +08:00 |
|
依瑪貓
|
6f019d23c0
|
Moved the sort_post_txn_records utility and the logic to create the form to TransactionForm in the accounting application.
|
2020-08-19 13:38:05 +08:00 |
|
|
dec6233d4e
|
Added the current_app parameters to the uses of reverse() to enable different namespaces in the accounting application.
|
2020-08-17 23:05:01 +08:00 |
|
|
6ff9d0d4ff
|
Replaced tuples with lists in the arguments for reverse() in the accounting application.
|
2020-08-17 22:49:28 +08:00 |
|
|
d4e7458117
|
Added type hints to the accounting application.
|
2020-08-13 07:25:35 +08:00 |
|
|
9cb6f25ee5
|
Removed an unsed import from the utilities in the accounting application.
|
2020-08-13 00:07:35 +08:00 |
|
|
4f74a501d6
|
Replaced the raw SQL query with the Django ORM query in the get_ledger_accounts() utility in the accounting application.
|
2020-08-12 23:48:29 +08:00 |
|
|
0996fa59f8
|
Moved the logic in the make_txn_form_from_post() utility to the constructor of the transaction form, and moved the logic in the make_txn_form_from_status() utility to the txn_form view, and applied the standardized control flow to the txn_form view in the accounting application.
|
2020-08-12 20:42:31 +08:00 |
|
|
7fcfc00e30
|
Revised so that the settings of the accounting application are optional now, and will not raise errors when they are not set correctly.
|
2020-08-12 00:20:02 +08:00 |
|
|
4cd7b60f79
|
Fixed the SQL in the get_ledger_accounts() utility in the accounting application.
|
2020-08-11 00:32:55 +08:00 |
|
|
7a91a1fc1f
|
Cleaned-up the documentation of the ReportUrl utility of the accounting appication.
|
2020-08-09 13:55:20 +08:00 |
|
|
19ea58e7a3
|
Revised the import usage of mia_core.stored_post.
|
2020-08-09 13:51:56 +08:00 |
|
|
0ee5eeaacf
|
Renamed mia_core.status to mia_core.stored_post, and changed the stored status to stored POST data in the Mia core application.
|
2020-08-09 13:48:00 +08:00 |
|
|
755695be38
|
Replaced retrieve_status() with get_previous_post() in the make_txn_form_from_status() utility in the accounting application.
|
2020-08-09 13:27:00 +08:00 |
|
|
7ed08b4c2f
|
Revised the get_summary_categories() utility to look for bi-directional travel summary text in the accounting application.
|
2020-08-07 22:34:24 +08:00 |
|
依瑪貓
|
23f7564e87
|
Revised the constructor of the ReportUrl utility to better deal with the keyword arguments in the accounting application.
|
2020-08-07 09:42:07 +08:00 |
|
|
35e6b533cf
|
Implemented the find_existing_equipments() utility, and applied it in the ledger in the accounting application.
|
2020-08-07 01:06:57 +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 |
|
依瑪貓
|
9a9f715349
|
Fixed and set the txn_type to the form in the make_txn_form_from_model() utility in the accounting application.
|
2020-08-06 15:46:43 +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 |
|
依瑪貓
|
4f837f942f
|
Revised the get_summary_categories() utility to sort the returned categories by their frequencies in the accounting application.
|
2020-08-05 11:33:15 +08:00 |
|
依瑪貓
|
b6111f0707
|
Fixed the find_order_holes() utility so that pseudo records does not count in the accounting application.
|
2020-08-05 09:36:09 +08:00 |
|
|
b6f5bbaf9e
|
Fixed the fill_txn_from_post() utility so that it works on new transactions without any record in the accounting application.
|
2020-08-05 08:04:40 +08:00 |
|
|
b2ce0eff54
|
Applied the summary helper and JavaScripts to the transaction form, so that the transaction form works in the accounting application.
|
2020-08-05 07:48:50 +08:00 |
|
|
2c6256b497
|
Fixed to return as JSON in the get_summary_categories() utility in the accounting application.
|
2020-08-05 00:28:50 +08:00 |
|
|
66c08fd413
|
Rewrote the get_summary_categories() utility to only query once in the accounting application.
|
2020-08-04 23:26:30 +08:00 |
|
依瑪貓
|
245e4c6573
|
Added the get_summary_categories() utility and put the categories in the transaction forms in the accounting application.
|
2020-08-04 09:55:27 +08:00 |
|
|
44e22d711f
|
Renamed the sn column to id in the accounting application.
|
2020-08-04 01:59:51 +08:00 |
|
|
1d7acef3e1
|
Renamed RecordSummary to MonthlySummary, changed it from a Django data model to a simple data class, and moved it from accounting.models to accounting.utils in the accounting application.
|
2020-08-03 22:48:43 +08:00 |
|
|
14c6d2e4bf
|
Revised the sort_post_txn_records() utility to fill in the new order as strings instead of integers in the accounting applications.
|
2020-08-02 23:08:13 +08:00 |
|
|
da3e7912de
|
Moved the account code of cash from hard-coded in the codes to a class constant in the Account data model in the accounting application.
|
2020-08-02 18:13:04 +08:00 |
|
|
6f444442b1
|
Fixed the txn_edit() and txn_store() views to work with cash income and cash expense transactions in the accounting application.
|
2020-08-02 14:29:45 +08:00 |
|
|
62978474c8
|
Renamed the variable rec_type as record_type in the fill_txn_from_post() and make_txn_form_from_post() utilities in the accounting application.
|
2020-08-02 12:07:45 +08:00 |
|
|
8d9e4cdf93
|
Fixed the fill_txn_from_post() utility to fill the optional fields as None when they are empty in the accounting application.
|
2020-08-02 12:06:19 +08:00 |
|
|
330b43c71b
|
Fixed the fill_txn_from_post() utility when constructing the records in the accounting application.
|
2020-08-02 09:51:17 +08:00 |
|
|
96eb033fb4
|
Renamed utility methods *transaction* to *txn*, and the corresponding parameters and variables, to avoid name conflict in the accounting application.
|
2020-08-02 03:06:31 +08:00 |
|
|
066fd1cb3f
|
Renamed a variable to prevent shadowing the outer variables in the sort_form_transaction_records() utility in the accounting application.
|
2020-08-02 02:40:00 +08:00 |
|
|
73c961cfee
|
Moved the common codes in the make_transaction_form_from_post() and fill_transaction_from_post() utilities to the new _find_max_record_no() utility, to avoid duplicated codes in the accounting application.
|
2020-08-02 02:37:18 +08:00 |
|
|
413c0fe112
|
Renamed the fill_transaction_from_form() to fill_transaction_from_post(), and the parameter form to post in the accounting application.
|
2020-08-02 02:32:10 +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 |
|
|
9d988f17ca
|
Added forms and validators, and applied them to the transaction form in the accounting application.
|
2020-08-01 23:56:41 +08:00 |
|
|
69e8eed33f
|
Moved the account validation rule to from the transaction_store() view to the validate_account_code() utility function in the accounting application.
|
2020-07-30 08:04:18 +08:00 |
|
依瑪貓
|
5c2f5a0407
|
Revised the fill_transaction_from_form() utility to store the account code instead of the account primary key in the accounting application.
|
2020-07-29 14:47:49 +08:00 |
|