Renamed the "isOriginalEntry", "is-original-entry", "is_original_entry", and "isOriginalEntry()" methods and properties of journal entries to "isNeedOffset", "is-need-offset", "is_need_offset", and "isNeedOffset()", to be clear and understandable.
This commit is contained in:
@ -549,7 +549,7 @@ class JournalEntryEditor {
|
||||
this.entry = entry;
|
||||
this.#side = entry.side;
|
||||
this.entryType = this.#side.entryType;
|
||||
this.isNeedOffset = entry.isOriginalEntry();
|
||||
this.isNeedOffset = entry.isNeedOffset();
|
||||
if (originalEntryId === "") {
|
||||
this.#originalEntryContainer.classList.add("d-none");
|
||||
this.#originalEntryControl.classList.remove("accounting-not-empty");
|
||||
|
@ -893,8 +893,8 @@ class JournalEntrySubForm {
|
||||
*
|
||||
* @return {boolean} true if the entry is an original entry, or false otherwise
|
||||
*/
|
||||
isOriginalEntry() {
|
||||
return "isOriginalEntry" in this.element.dataset;
|
||||
isNeedOffset() {
|
||||
return "isNeedOffset" in this.element.dataset;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user