Revised the JavaScript journal entry line item editor to only override the description with the description of the original line item when there is no existing description.
This commit is contained in:
parent
50cea90d1b
commit
988757d30e
@ -277,11 +277,15 @@ class JournalEntryLineItemEditor {
|
||||
this.originalLineItemText = originalLineItem.text;
|
||||
this.#originalLineItemText.innerText = originalLineItem.text;
|
||||
this.#setEnableDescriptionAccount(false);
|
||||
if (this.description === null) {
|
||||
if (originalLineItem.description === "") {
|
||||
this.#descriptionControl.classList.remove("accounting-not-empty");
|
||||
} else {
|
||||
this.#descriptionControl.classList.add("accounting-not-empty");
|
||||
}
|
||||
this.description = originalLineItem.description === ""? null: originalLineItem.description;
|
||||
this.#descriptionText.innerText = originalLineItem.description;
|
||||
}
|
||||
this.#setEnableAccount(false);
|
||||
this.#accountControl.classList.add("accounting-not-empty");
|
||||
this.account = originalLineItem.account.copy();
|
||||
|
Loading…
Reference in New Issue
Block a user