Commit Graph

749 Commits

Author SHA1 Message Date
a03c701a31 Fixed the model query so that the brought-forward balance in the ledger will not be None in the accounting application. 2020-07-18 11:24:33 +08:00
ed0c29f360 Replaced the SQL query in the cash account with the Django model query in the accounting application. 2020-07-18 10:32:15 +08:00
c21f079321 Fixed the date of the brought-forward record in the accounting application. 2020-07-18 08:46:30 +08:00
85b8515a0a Simplified the query to get the brought-forward balance in the ledger in the accounting transaction. 2020-07-18 08:45:41 +08:00
dae002387f Fixed the report URL parameter used in the ledger summary in the accounting application. 2020-07-18 08:20:43 +08:00
393535b6bd Revised the accounting_amount filter to return "-" on 0 in the accounting application. 2020-07-18 08:17:19 +08:00
cb0d42ddd8 Simplified the query in the ledger summary in the accounting application. 2020-07-18 08:15:54 +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
a15a359ca7 Revised the view of the ledger summary and replaced the raw SQL query with the Django model query in the accounting transaction. 2020-07-18 07:46:01 +08:00
ff9146c8b1 Revised the view of the ledger and replaced the raw SQL query with the Django model query in the accounting transaction. 2020-07-18 00:08:53 +08:00
39428d1d35 Fixed the ledger when there is no brought-forward records in the accounting application. 2020-07-17 23:34:00 +08:00
4c821a73ea Added the accounting journal in the accounting application. 2020-07-17 23:27:49 +08:00
0525197993 Renamed the variable in the url_period template tag in the Mia core application. 2020-07-17 23:06:10 +08:00
856bcd47ff Revised the url_period template tag so that it works with or without the subject code in the mia_core application. 2020-07-17 23:05:23 +08:00
f33a1631fa Revised the comments in the view of the accounting application. 2020-07-17 07:18:58 +08:00
7f7e2c7100 Revised the code in the views of the accounting application. 2020-07-17 00:19:41 +08:00
5855c1dd2b Added the balance value to the total record in the cash account summary and ledger summary in the accounting application. 2020-07-17 00:17:18 +08:00
44a778f4f5 Fixed the subject URL in the ledger summary in the accounting application. 2020-07-17 00:15:32 +08:00
3156bc97c0 Revised the cash account summary in the accounting application. 2020-07-17 00:13:52 +08:00
70c3f01368 Added the ledger summary in the accounting application. 2020-07-17 00:12:30 +08:00
d9ccefa27c Revised the template of the cash summary in the accounting transaction. 2020-07-16 23:59:07 +08:00
c189c78f4c Removed an excess blank line in the template of the cash summary in the accounting application. 2020-07-16 23:51:49 +08:00
229e01a3d9 Revised the template of the cash summary for long lines in the accounting application. 2020-07-16 23:50:32 +08:00
d47010e51a Fixed the cash summary to indicate the current subject in the subject selection in the accounting application. 2020-07-16 23:48:34 +08:00
a9c7a8328e Fixed the documentation of the templates of the cash account and ledger in the accounting application. 2020-07-16 23:45:43 +08:00
4fec46413f Simplified the code in the cash_summary() and ledger() views in the accounting application. 2020-07-16 23:40:35 +08:00
ba119c4ed0 Applied f-string to compose the SQL statements in the views of the accounting application. 2020-07-16 23:35:10 +08:00
1f80f8a4d6 Revised the codes in the views of the accounting application to avoid long lines. 2020-07-16 23:25:10 +08:00
fb37da4ac0 Fixed a typo in the cash account in the accounting application. 2020-07-16 23:19:23 +08:00
e2945045f3 Added the default parameter to the get_multi_lingual_attr() function to allow a different default lanugage for a data model. 2020-07-16 23:18:16 +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
42e444b8c8 Revised the code for PEP8. 2020-07-16 22:25:33 +08:00
5b9ac93ee5 Revised the import of django.utils.timezone.localdate. 2020-07-16 22:22:35 +08:00
27f762a1c0 Removed unused imports 2020-07-16 22:19:05 +08:00
847f8dc402 Added the ledger in the accounting application. 2020-07-16 22:12:59 +08:00
9c053148d4 Revised the subject selector in the template of the cash account in the accounting application. 2020-07-16 20:55:08 +08:00
861b1eeda2 Revised the template of the cash account for readibility in the accounting application 2020-07-16 20:47:40 +08:00
b589539af3 Fixed the cash account report to indicate the current subject in the subject selection in the accounting application. 2020-07-16 20:44:25 +08:00
5c976226ff Revised the documentation of the templates in the accounting application. 2020-07-16 07:47:41 +08:00
df2c324ce0 Added _find_imbalanced() and _find_order_holes() methods as shortcuts to tag the accounting records with problems. 2020-07-16 07:45:16 +08:00
983c2a5533 Added the cash summary report in the accounting application. 2020-07-16 00:28:50 +08:00
77da7862c6 Removed an unnecessary if-condition in the template of the cash account. 2020-07-15 19:07:22 +08:00
14ed892534 Revised the cash account view in the accounting application. 2020-07-14 22:16:13 +08:00
c65d778a1b Revised Period in the Mia core application. 2020-07-14 22:15:04 +08:00
94884e72b8 Added and applied the current() method to Language in the Mia core application. 2020-07-14 22:14:39 +08:00
ef4c8ea2ae Renamed the get_default() method to default() in Language in the Mia core application. 2020-07-14 22:12:17 +08:00
e895de3abc Changed Period to use the current language instead of expecting the language passed by the caller. 2020-07-14 22:10:27 +08:00
fa034b9a6a Added the get_multi_language_attr() function to the Mia core application, to deal with the multi-lingual attributes, and applied it in the data models. 2020-07-14 22:01:32 +08:00
a8d18ddd1e Removed the debugging content from the cash account in the accounting application. 2020-07-14 21:28:28 +08:00