Fixed a type error in the constructor of the JavaScript LineItemSubForm form.
This commit is contained in:
parent
562801692a
commit
8398d1e8bb
@ -878,7 +878,7 @@ class LineItemSubForm {
|
|||||||
this.debitCredit = element.dataset.debitCredit;
|
this.debitCredit = element.dataset.debitCredit;
|
||||||
this.lineItemIndex = parseInt(element.dataset.lineItemIndex);
|
this.lineItemIndex = parseInt(element.dataset.lineItemIndex);
|
||||||
this.isMatched = element.classList.contains("accounting-matched-line-item");
|
this.isMatched = element.classList.contains("accounting-matched-line-item");
|
||||||
const prefix = "accounting-currency-" + element.dataset.currencyIndex + "-" + this.debitCredit + "-" + this.lineItemIndex;
|
const prefix = "accounting-currency-" + element.dataset.currencyIndex + "-" + this.debitCredit + "-" + String(this.lineItemIndex);
|
||||||
this.#control = document.getElementById(prefix + "-control");
|
this.#control = document.getElementById(prefix + "-control");
|
||||||
this.#error = document.getElementById(prefix + "-error");
|
this.#error = document.getElementById(prefix + "-error");
|
||||||
this.#no = document.getElementById(prefix + "-no");
|
this.#no = document.getElementById(prefix + "-no");
|
||||||
|
Loading…
Reference in New Issue
Block a user