Commit Graph

67 Commits

Author SHA1 Message Date
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
依瑪貓
bbfe9e7892 Changed the URL of the accounts in the balance sheet so that the net income in the current period links to the income statement in the accounting application. 2020-07-21 13:38:18 +08:00
依瑪貓
6f47c08c80 Added a unique constraint to the account code in the accounting application. 2020-07-21 10:59:48 +08:00
依瑪貓
bace7bb93b Renamed "subject" to "account" in the models of the accounting application. 2020-07-21 10:43:05 +08:00
依瑪貓
076a68c028 Renamed "subject" to "account" in the accounting application. 2020-07-21 10:38:47 +08:00
753e69d4e9 Renamed the credit_amount attribute to credit and debit_summary to debit in RecordSummary in the accounting application. 2020-07-18 07:52:16 +08:00
70c3f01368 Added the ledger summary in the accounting application. 2020-07-17 00:12:30 +08:00
418dcd9803 Renamed the get_multi_language_attr() method to get_multi_lingual_attr(), and renamed the multi-lingual model fields from _zhtw to _zh_hant, and _zhcn to _zh_hans. 2020-07-16 23:13:15 +08:00
a58f6d6d11 Moved the core custom template filters and tags to the template tag library in the Mia core application. 2020-07-16 23:03:37 +08:00
27f762a1c0 Removed unused imports 2020-07-16 22:19:05 +08:00