依瑪貓 imacat
imacat pushed to main at imacat/mia-accounting 2023-03-14 08:34:49 +08:00
f2963af161 Renamed the AbstractUserUtils class to UserUtilityInterface, and added the can_view and can_edit functions to the UserUtilityInterface interface. There is no need to separately supply two additional can_view and can_edit callbacks.
aa34a5a1a2 Revised the documentation of the AbstractUserUtils class.
Compare 2 commits »
imacat pushed to main at imacat/mia-accounting 2023-03-14 01:18:42 +08:00
f3a6c4a820 Revised the documentation of the JavaScript summary editor.
imacat deleted branch offset from imacat/mia-accounting 2023-03-13 23:32:42 +08:00
imacat pushed to main at imacat/mia-accounting 2023-03-13 23:19:14 +08:00
58f8719bcf Revised so that when the account selector finds the codes from the form, the journal entry editor is used to find the form instead of messing-up with the TransactionForm class and its static method that was a shortcut to the private instance method of the same name.
imacat pushed to offset at imacat/mia-accounting 2023-03-13 23:10:48 +08:00
ee2d30a1fc TEMP: Offset
imacat created branch offset in imacat/mia-accounting 2023-03-13 23:10:48 +08:00
imacat deleted branch offset from imacat/mia-accounting 2023-03-13 23:07:03 +08:00
imacat pushed to offset at imacat/mia-accounting 2023-03-13 23:02:44 +08:00
3cca0f4388 TEMP: 2
ad110f5893 TEMP: 1
Compare 2 commits »
imacat pushed to main at imacat/mia-accounting 2023-03-13 23:01:34 +08:00
imacat pushed to main at imacat/mia-accounting 2023-03-13 22:57:34 +08:00
edb3b52fb5 Changed the currency property of the JavaScript DebitCreditSideSubForm class to private.
imacat pushed to main at imacat/mia-accounting 2023-03-13 22:53:40 +08:00
f8bd80e393 Fixed so that saving the journal entry from the journal entry editor triggers updating the total of the debit or credit side, which in turn triggers validating the balance if it is on a transfer form. This fixed the problem that deleting a journal entry updates total but not re-validating the balance.
imacat pushed to main at imacat/mia-accounting 2023-03-13 21:39:09 +08:00
9a8bb8af0a Fixed the indent in the template of the account selector.
imacat pushed to main at imacat/mia-accounting 2023-03-13 21:14:21 +08:00
5b7496c7a6 Removed trailing blank spaces from the JavaScript summary editor.
imacat pushed to main at imacat/mia-accounting 2023-03-13 21:08:54 +08:00
5370fffeda Removed the unused accounting-debit-account-code and accounting-credit-account-code HTML classes.
33179e925f Revised the account selector to find the account codes from the form through the TransactionForm class, but not finding the codes by itself.
7d971b43cd Added the missing documentation to the static initialize method of JavaScript TransactionForm class.
4c29da8407 Fixed the documentation of the entryType parameter in the constructor of the JavaScript DebitCreditSideSubForm sub-form.
Compare 4 commits »
imacat pushed to main at imacat/mia-accounting 2023-03-13 20:12:02 +08:00
aca533e38a Reordered the journal entry editor and put the summary first and the account later.
48fa3d7b8e Removed the unused static validateAccount method from the JavaScript journal entry editor.
21c9c41784 Moved the journal entry editor from the transaction-form.js to a new independent JavaScript file journal-entry-editor.js.
44b3c58fd0 Removed the prefix from the journal entry sub-form.
045ce065ce Removed the unused data-prefix attribute from the currency sub-forms of the transaction form.
Compare 15 commits »
imacat created branch offset in imacat/mia-accounting 2023-03-12 22:17:32 +08:00
imacat pushed to offset at imacat/mia-accounting 2023-03-12 22:17:32 +08:00
9be8c78919 TEMP: Offset
imacat pushed to main at imacat/mia-accounting 2023-03-12 22:16:31 +08:00
2b84f64554 Replaced the function-based JavaScript with the object-oriented AccountForm class for the currency form.
0a658a76e8 Replaced the function-based JavaScript with the object-oriented AccountForm class for the account form.
50dc79d865 Added the missing is-invalid class on errors to the currency field in the currency sub-forms of the transaction form.
Compare 3 commits »
imacat pushed to main at imacat/mia-accounting 2023-03-12 01:35:02 +08:00
8e5377a416 Replaced the payable account with the petty-cash account in the SummeryEditorTestCase test case.
4299fd6fbd Revised the code in the JavaScript initializeBaseAccountSelector function in the account form.
1d6a53f7cd Revised the account form so that the if-offset-needed option is only available for real accounts.
Compare 3 commits »
imacat pushed to main at imacat/mia-accounting 2023-03-11 20:37:07 +08:00
bb2993b0c0 Reordered the code in the "accounting.transaction.forms.journal_entry" module.