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:
imacat committed 2023-03-18 22:11:44 +08:00
1 parent a643d9e811
commit 34f63c1cdf
9 files changed
+19 -19

No files matched your search

@@ -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");
+2 -2
View File
@@ -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;
}
/**