|
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 |
|
|
069cd9ca74
|
Revised the parameters of Period.
|
2020-07-14 07:43:47 +08:00 |
|
|
ea354ae101
|
Added ReportUrl to help building the report chooser in the accounting application.
|
2020-07-14 07:41:19 +08:00 |
|
|
6da65f00ba
|
Moved the period parser from the accounting application to the Mia core application.
|
2020-07-08 07:20:38 +08:00 |
|
|
e48460b9bb
|
Implemented the period parser.
|
2020-07-08 00:12:48 +08:00 |
|
|
d48d1b017a
|
Moved the pagination and the page number out of range error from the accounting application to the Mia core application.
|
2020-07-07 20:54:35 +08:00 |
|
依瑪貓
|
0243289946
|
Revised the code according to the PyCharm and PEP8 inspection.
|
2020-07-02 09:45:11 +08:00 |
|
|
fbce3ab9ef
|
Revised the documentation.
|
2020-07-02 00:50:27 +08:00 |
|
|
4537681bb5
|
Added the documentation to the invalid page number in Pagination.
|
2020-07-02 00:45:53 +08:00 |
|
|
3abce4498f
|
Revised the pagination to redirect to the URL without the page number if the specific page number is exactly the default page number. That is, the page number is totally unnecessary.
|
2020-07-02 00:42:34 +08:00 |
|
|
1ddfc96621
|
Revised to redirect on invalid page size and page number on pagination.
|
2020-07-01 23:39:32 +08:00 |
|
|
42fe685d53
|
Added a simple pagination filter and refined the cash report.
|
2020-06-30 23:49:21 +08:00 |
|
|
06b8d470fb
|
Added simple views for the accounting cash report.
|
2020-06-30 20:59:24 +08:00 |
|