Commit Graph

76 Commits

Author SHA1 Message Date
依瑪貓
567a610e90 Revised to allow amounts in decimal numbers in the accounting application. 2020-08-21 10:00:59 +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
e697227658 Removed the manually-set database table names from the data models in the accounting application. 2020-08-18 23:25:49 +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
依瑪貓
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
b3e18d547d Replaced the get_absolute_url() method in the account data model with the get_success_url() method in the account form model, and added the current application to the arguments to enable multiple instances of the application in the accounting application. 2020-08-17 22:27:54 +08:00
64769440a7 Replaced the get_absolute_url() method in the transaction data model with the get_success_url() method in the transaction form model, and added the current application to the arguments to enable multiple instances of the application in the accounting application. 2020-08-17 22:23:30 +08:00
c3fc2a5093 Renamed the templates of the transactions in the accounting application. 2020-08-17 20:51:47 +08:00
0d38cdd403 Replaced the function-based txn_form and txn_store view with the class-based TransactionFormView in the accounting application. 2020-08-16 13:27:31 +08:00
f82c4afbfe Replaced the function-based account_form and account_store views with the class-based AccountFormView in the accounting application. 2020-08-14 00:36:29 +08:00
5a91e85c8e Added the get_absolute_url() method to the account data model in the accounting application. 2020-08-13 22:15:54 +08:00
d4e7458117 Added type hints to the accounting application. 2020-08-13 07:25:35 +08:00
785087fc8c Revised the delete method of the transaction data model so that the reorder will not pass the save() method and induce complex reorder in the accounting application. 2020-08-12 22:41:28 +08:00
2986d6d231 Simplified the super method calls in the data models in the accounting application. 2020-08-12 22:29:03 +08:00
3f250d9958 Moved the transaction saving logic from the txn_store view to the Transaction data model, and applied the standardized control flow to the txn_store view in the accounting application. 2020-08-12 22:26:54 +08:00
依瑪貓
5e8e8e815e Simplified the parent constructor calls in the data models and the forms. 2020-08-12 15:39:07 +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
8d33429fef Fixed the logic in the save() method of the Account data model so that the current_user will not override the created_by and updated_by when the current_user was not supplied in the accounting application. 2020-08-09 18:21:34 +08:00
88e3637663 Revised the save() method so that it works both with the current user from the its parameter or from the parameter from the constructor. 2020-08-09 16:59:12 +08:00
bbd3d0e470 Revised and simplify the data model definition. 2020-08-09 16:34:47 +08:00
00ee0cc3bb dded the account_store() view in the accounting application. 2020-08-09 16:22:51 +08:00
836151d9d5 Replaced the function-based txn_delete() view with the class-based TransactionDeleteView view in the accounting application. 2020-08-09 13:19:20 +08:00
008def227d Removed unused imports from the models of the accounting application. 2020-08-08 17:10:48 +08:00
908fbedf0d Renamed the URL transactions.show to transactions.detail, teh templates show.html to detail.html, and the view txn_show() to txn_detail, to follow the naming convention of Django in the accounting application. 2020-08-08 15:43:21 +08:00
734cd2320b Added the view of the account details in the accounting applications. 2020-08-08 15:18:39 +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
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
f970974e71 Added the transaction sorting in the accounting application. 2020-08-06 23:51:20 +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
18161c3fb2 Changed the cumulative_balance property in RecordSummary from a decorated @property to a simple property in the accounting application. 2020-08-03 20:01:36 +08:00
cbac2ba61e Added the account_options() view to return the account options in the accounting application. 2020-08-03 00:02:51 +08:00
b652d090d3 Added the mount, debit_amount, and credit_amount properties to replace the run-time balance, total, debit, and credit properties in the Account data model in the accounting application. 2020-08-02 19:42:48 +08:00
2b9034cfe8 Moved the hard-coded account code 3351 and 3353 to constants in the Account data model in the accounting application. 2020-08-02 18:20:36 +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
377b25f669 Changed the decorated @property balance to a real property in the Record data model in the accounting application, for simplicity. 2020-08-02 18:00:06 +08:00
f3e2280041 Revised the debit_amount and credit_amount pseudo property in the Record data model in the accounting application. 2020-08-02 17:57:16 +08:00
a78cbb2ad8 Revised the records property of the record data model so that the returned records are sorted by their types and their orders in the accounting application. 2020-08-02 14:08:38 +08:00
478d0ca035 Removed unnecessary @property decorations from the transaction data model in the accounting application. 2020-08-02 10:39:07 +08:00
c4ffe5da34 Reordered the members in the transaction data model in the accounting application. 2020-08-02 10:35:35 +08:00
688e350017 Adapted dirtyfields in the data models. 2020-08-02 09:53:26 +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
95ffeff8cb Removed the default value of the accounting record order in the accounting application. 2020-07-28 00:33:02 +08:00
99fb99b160 Added the view and the templates for the forms of the transactions in the accounting application. 2020-07-27 22:36:28 +08:00
dc4d301891 Added the records property to Transaction to manage the records temporarily instead of record_set that requires the records to be saved first in the accounting application. 2020-07-24 19:42:48 +08:00
43d51a5519 Revised the code in the transaction model in the accounting application. 2020-07-23 22:33:33 +08:00
2db3899dea Added the transaction views in the accounting application. 2020-07-23 22:02:26 +08:00
ebb7c06f91 Applied the set_multi_lingual_attr() utility function to the titles of the accounts and the names of the countries. 2020-07-21 21:23:54 +08:00
5a48e07ef6 Moved the order from the data models to the reports in the accounting application. 2020-07-21 19:38:01 +08:00