Commit Graph

62 Commits

Author SHA1 Message Date
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
依瑪貓
aa35e45426 Renamed the variables in the sort_form_transaction_records() utility in the accounting application. 2020-07-29 09:40:51 +08:00
依瑪貓
758af556fc Simplified the code in the sort_form_transaction_records() utility in the accounting application. 2020-07-29 09:38:34 +08:00
依瑪貓
7ec25d89a8 Refined the sort_form_transaction_records() utility in the accounting application. 2020-07-29 09:37:15 +08:00
依瑪貓
0b0624b709 Simplified the code in the sort_form_transaction_records() utility in the accounting application. 2020-07-29 09:27:52 +08:00
依瑪貓
3873f131ef Revised the redundant part in the fill_transaction_from_form() utility in the accounting application. 2020-07-29 09:22:56 +08:00
de7abdfc7e Added the fill_transaction_from_form() utility and moved most of the code in fill_transaction_from_previous_form() to there, added the sort_form_transaction_records() utility, and applied the two utilities in the transaction_store() view in the accounting application. 2020-07-29 00:02:34 +08:00
ec51884414 Revised the fill_transaction_from_previous_form() utility in the accounting application. 2020-07-28 22:59:29 +08:00
4c3f3465d5 Added the fill_transaction_from_previous_form() utility to load the transaction data from the stored status, and applied it to the transaction_edit() view in the accounting application. 2020-07-28 22:48:42 +08:00
6e49443b88 Renamed the new_id() utility to new_pk() in the Mia core application. 2020-07-23 23:24:42 +08:00
aefb5cc091 Changed the use of the sn field with pk. 2020-07-23 23:20:10 +08:00
1dcbd37fbd Replaced the use of the sn field with pk, for compatibility in the future. 2020-07-23 23:15:33 +08:00
e04736b90d Renamed the new_sn() utility to new_id() in the Mia core application. 2020-07-23 23:04:18 +08:00
依瑪貓
79442085b6 Moved the get_cash_accounts(), get_ledger_accounts(), find_imbalanced(), and find_order_holes() utilities from accounting.views.reports to accounting.utils in the accounting application. 2020-07-23 09:57:29 +08:00
依瑪貓
9602ba56c7 Moved the Polulator from accounting.populate to accounting.utils in the accounting application. 2020-07-23 09:40:21 +08:00
8890e60fbb Added CashAccountConverter and LedgerAccountConverter and applied them in the URL patterns of the accounting application. 2020-07-23 08:33:53 +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
依瑪貓
076a68c028 Renamed "subject" to "account" in the accounting application. 2020-07-21 10:38:47 +08:00
依瑪貓
9cab1c2194 Added documentation to the accounting utilities. 2020-07-14 10:02:16 +08:00