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.
This commit is contained in:
@ -150,7 +150,7 @@ class AccountSelector {
|
||||
* @return {string[]} the account codes that are used in the form
|
||||
*/
|
||||
#getCodesUsedInForm() {
|
||||
const inUse = TransactionForm.getAccountCodesUsed(this.#entryType);
|
||||
const inUse = this.#entryEditor.getTransactionForm().getAccountCodesUsed(this.#entryType);
|
||||
if (this.#entryEditor.getAccountCode() !== null) {
|
||||
inUse.push(this.#entryEditor.getAccountCode());
|
||||
}
|
||||
|
Reference in New Issue
Block a user