Commit Graph
100 Commits
Author SHA1 Message Date
依瑪貓 9af204322a Added the management commands to README. 2021-02-03 11:20:33 +08:00
依瑪貓 112201ee8b Revised README. 2021-02-03 11:20:13 +08:00
依瑪貓 1cc9b1732b Replaced the Markdown README with its reStructuredText version. 2021-02-03 10:57:24 +08:00
依瑪貓 ea8af57fcb Removed the mirror script from .gitignore. It is handled with the deployment function of the IDE now. 2021-02-03 10:56:25 +08:00
依瑪貓 b4d9a250db Revised the documentation of the make_trans management command. 2021-02-03 10:05:07 +08:00
依瑪貓 7358b3ed9d Added the database initialization to README. 2020-09-09 09:17:11 +08:00
依瑪貓 267ac952fe Fixed the typo in README. 2020-09-07 10:12:23 +08:00
依瑪貓 a7571b8af0 Added the instruction to the base template in README. 2020-09-07 09:32:44 +08:00
依瑪貓 edf3d99c81 Fixed a typo in the method name in CssAndJavaScriptLibraries in the Mia core application. 2020-09-02 15:36:40 +08:00
依瑪貓 2b808b236a Removed an unused import in the Mia core application. 2020-09-02 15:36:03 +08:00
依瑪貓 910abb7d74 Revised the built-in CDN library URLs for long lines in the Mia core application. 2020-09-02 15:35:44 +08:00
依瑪貓 bc5f940e0a Revised the accounting_accounts and accounting_sample commands to call the createsuperuser command when there is no user yet, instead of throwing an error in the accounting application. 2020-09-02 09:58:02 +08:00
依瑪貓 cd30c9592f Revised the accounting sample. 2020-09-01 11:25:26 +08:00
依瑪貓 e0bf3e22ff Revised the accounting_sample command to call the accounting_accounts command if there is no account yet, instead of throwing an error in the accounting application. 2020-09-01 10:21:05 +08:00
依瑪貓 cb67f4e102 Removed the account initialization from the accounting_sample command in the accounting application. 2020-09-01 09:12:45 +08:00
依瑪貓 c6987304f4 Copies the style sheet for the report tables from the local style sheet to the accounting application. 2020-08-31 15:17:00 +08:00
依瑪貓 19a2609e11 Added documentation to the report style sheet in the accounting application. 2020-08-31 15:13:18 +08:00
依瑪貓 d8af81c7d4 Revised the templates of the transaction details to display the user by the model-specific way instead of the name column in the accounting application. 2020-08-31 15:05:11 +08:00
依瑪貓 777d3309e1 Revised the documentation of the summary helper JavaScript in the accounting application. 2020-08-31 11:05:55 +08:00
依瑪貓 1da6cf3208 Replaced the regular payments with the regular account settings in the summary helper, to remove the dependency on the local JavaScript codes in the accounting application. 2020-08-31 10:16:01 +08:00
依瑪貓 8c9d5c2a35 Applied the title_case filter to the account titles in the template of the account list in the accounting application. 2020-08-25 13:47:44 +08:00
依瑪貓 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
依瑪貓 567a610e90 Revised to allow amounts in decimal numbers in the accounting application. 2020-08-21 10:00:59 +08:00
依瑪貓 007fd7d73f Renamed the variable in the account_sample command in the accounting application. 2020-08-19 14:31:06 +08:00
依瑪貓 68964c5ed5 Moved the get_summary_categories() utility to TransactionFormView in the accounting application. 2020-08-19 14:13:30 +08:00
依瑪貓 274d8dfeec Reordered the methods in TransactionFormView in the accounting application. 2020-08-19 14:09:11 +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
依瑪貓 0e1a87184b Revised the documentation of the from_model method in TransactionForm in the accounting application. 2020-08-19 13:47:33 +08:00
依瑪貓 759e7262fb Added documentation to the from_post method of TransactionFrom in the accounting application. 2020-08-19 13:46:46 +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
依瑪貓 8770770b66 Applied the modified RedirectView from the Mia core application to the accounting application. 2020-08-19 10:04:27 +08:00
依瑪貓 54f6ad3d3b Added the modified RedirectView with current_app to the current namespace in the Mia core application. 2020-08-19 10:03:45 +08:00
依瑪貓 ea9d4601ef Added back the current user of the object in the fill_model_from_form method in TransactionFormView in the accounting application, since it did not call the parent method to set it. 2020-08-18 13:33:01 +08:00
依瑪貓 d1a64f86c3 Revised the code order in the dispatch and get_form methods in the Mia core application. 2020-08-18 10:33:22 +08:00
依瑪貓 60bcbde9b1 Removed the unnecessary initialization of the current user property in the transaction data model in the accounting application. 2020-08-18 10:10:17 +08:00
依瑪貓 31c1c7c35a Removed the unnecessary setting the current usr in the TransactionFormView and AccountFormView in the accounting application. 2020-08-18 10:02:53 +08:00
依瑪貓 321165a50f Added to set the current user of the data model if the model is our BaseModel in the fill_model_from_form() method in FormView in the Mia core application. 2020-08-18 10:01:45 +08:00
依瑪貓 a6fc865b3e Replaced the type hint of the object of FormView from Optional[BaseModel] to Optional[Model] in the Mia core application. 2020-08-18 09:59:46 +08:00
依瑪貓 71989f424c Replaced the _set_object() method, the _get_object() method, and the _object property with the object property in FormView, and applied the object in the get_success_url(). 2020-08-18 09:35:29 +08:00
依瑪貓 c72d550cd4 Applied the base model from the Mia core application to the models in the accounting application. 2020-08-18 09:27:58 +08:00
依瑪貓 216979dcf4 Added the abstract base model in the Mia core application. 2020-08-18 09:27:26 +08:00
依瑪貓 5e321ad420 Added to catch ProgrammingError when checking whether a user is in use in the Mia core application. 2020-08-17 09:29:03 +08:00
依瑪貓 51593d72e6 Revised the documentation of the dispatch method in FormView in the Mia core application. 2020-08-13 17:54:12 +08:00
依瑪貓 a61f705dda Split the the dispatch method in FormView into do_get() and do_post() methods in the Mia core application. 2020-08-13 17:53:15 +08:00
依瑪貓 3c655b8f87 Added my own base FormView, and replaced the current function-based user form views with a new UserFormView that based on my base FormView in the Mia core application. I do not know if I am doing the right thing. 2020-08-13 15:43:04 +08:00
依瑪貓 e06821194c Revised the code as suggested by PyCharm. 2020-08-13 10:17:52 +08:00
依瑪貓 5e8e8e815e Simplified the parent constructor calls in the data models and the forms. 2020-08-12 15:39:07 +08:00
依瑪貓 2ed7c52475 Fixed the typos in the transaction sort form in the accounting application. 2020-08-12 14:55:42 +08:00
依瑪貓 1303532f69 Fixed the url_period template tag to change on a copy of the request keyword arguments instead of the arguments of the request itself in the Mia core application. 2020-08-12 14:49:06 +08:00
依瑪貓 745d7bcdae Revised the documentation in the templates of the accounting application. 2020-08-12 14:27:58 +08:00
依瑪貓 c486818bcc Added check_relationship to the is_dirty() test for the transactions in the txn_store view of the accounting application. 2020-08-12 14:17:42 +08:00
依瑪貓 f6c1beb824 Revised the is_dirty method of the transaction data model in the accounting application. 2020-08-12 13:52:44 +08:00
依瑪貓 eb9e4e7fe4 Replaced the import of the utilities directly with importing the utility package, to prevent long list of utility import in the views of the accounting application. 2020-08-12 13:38:54 +08:00
依瑪貓 d190c35754 Fixed and replaced Record with RecordForm in the context of the dummy new record template in the txn_form view in the accounting application. 2020-08-12 13:32:33 +08:00
依瑪貓 05892b9655 Revised the txn_form view to constructs the new transaction form without having to bother the make_txn_form_from_model() utility, in order not to mess up with the is_bound form property, to replace the need for the should_validate template variable, and removed all the should_validate template variables from the transaction form templates in the accounting application. 2020-08-12 11:59:50 +08:00
依瑪貓 9973fc851c Revised not to log the user visits when DEBUG is on in the development environment in the Mia core application. 2020-08-11 11:27:46 +08:00
依瑪貓 96e1bd2374 Fixed the user visit logging to work with IP behind Apache in the Mia core application. 2020-08-11 11:25:04 +08:00
依瑪貓 8c7ffc9b76 Added to filter the empty accounts in the trial balance, income statement, and balance sheet in the accounting application. 2020-08-11 11:13:01 +08:00
依瑪貓 994d3086eb Added the account order to the account options in the transaction form in the accounting application. 2020-08-11 11:06:42 +08:00
依瑪貓 189751a353 Revised the meta information in the translation. 2020-08-11 10:14:45 +08:00
依瑪貓 4342f1e34e Revised the translation. 2020-08-07 10:40:57 +08:00
依瑪貓 8cc40e1f68 Simplified the code in the account_options view in the accounting application. 2020-08-07 10:36:14 +08:00
依瑪貓 4f02dd88da Moved getting the ReportUrl utility from the views to the report chooser template, to simplify the view in the accounting application. 2020-08-07 10:25:29 +08:00
依瑪貓 45ed53b085 Added the account list view in the accounting application. 2020-08-07 10:11:09 +08:00
依瑪貓 1a2bada988 Added AccountConverter and apply it to the URL patterns in the accounting application. 2020-08-07 10:10:33 +08:00
依瑪貓 3b522af41b Added the is_parent_and_in_use decorated @property to the Account data model in the accounting application. 2020-08-07 10:09:41 +08:00
依瑪貓 4eb2391fd8 Added force_escape to the current report title in the report chooser template in the accounting application. 2020-08-07 09:46:37 +08:00
依瑪貓 2805eb0774 Added the report_url template tag in the accounting application. 2020-08-07 09:42:22 +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
依瑪貓 4a63a01e11 Removed the now-unused l10n_messages hidden variable and the corresponding TODO from the transaction forms in the accounting application. 2020-08-06 16:02:18 +08:00
依瑪貓 ede94eb68e Added the should_validate template variable to the transaction forms to prevent initial errors with newly-created empty forms in the accounting application. 2020-08-06 15:48:26 +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
依瑪貓 4f8ed8dc85 Added the missing handlers for the PaginationException to the views in the accounting application. 2020-08-05 13:38:12 +08:00
依瑪貓 184e94e2c6 Revised the codes in the views with PEP8 and PyCharms inspection for the accounting application. 2020-08-05 13:35:09 +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
依瑪貓 4dd1d35cec Removed the status ID when constructing the return url in the Mia core application. 2020-08-05 10:26:39 +08:00
依瑪貓 474c74ebb0 Revised Pagination so that the status ID does not pass along with the pagination links in the Mia core application. 2020-08-05 10:17:46 +08:00
依瑪貓 97b9190b32 Fixed to deal with PaginationException. 2020-08-05 10:04:44 +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
依瑪貓 dd8b192913 Revised and simplified the code for the URL on txn_delete() in the accounting application. 2020-08-05 09:30:10 +08:00
依瑪貓 34fb682de1 Added an addition blank line before the account_options() view in the accounting application. 2020-08-05 09:20:13 +08:00
依瑪貓 8f90912146 Fixed to resort the order when the date is changed in a transaction form in the accounting application. 2020-08-04 14:02:52 +08:00
依瑪貓 3680d550c7 Added a movie to the accounting_sample command in the accounting application. 2020-08-04 09:56:02 +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
依瑪貓 12d4af06a0 Added TODO to the views to-do in the accounting application. 2020-08-04 09:18:28 +08:00
依瑪貓 79337272ec Revised the imports in the views of the accounting application. 2020-07-29 15:07:47 +08:00
依瑪貓 d6428a002e Renamed the parameter type to txn_type in the transaction views in the accounting application. 2020-07-29 15:06:23 +08:00
依瑪貓 63d83e0e4d Revised the transaction_store() view to validate the POSTed form in the accounting application. 2020-07-29 15:04:31 +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
依瑪貓 8285c69685 Fixed an error in the storing the status into the session in the Mia core application. 2020-07-28 09:38:58 +08:00
依瑪貓 0ff6076b36 Revised the imports in accounting.views and accounting.converters in the accounting application. 2020-07-23 14:26:05 +08:00
依瑪貓 6691e3db2b Moved the views back to accounting.views in the accounting application. 2020-07-23 14:17:05 +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