gnucash stable: Bug 799699 - Inconsistent column headers in scheduled transaction editor
John Ralls
jralls at code.gnucash.org
Sun Dec 7 18:15:57 EST 2025
Updated via https://github.com/Gnucash/gnucash/commit/f5059f78 (commit)
from https://github.com/Gnucash/gnucash/commit/6dc106ff (commit)
commit f5059f78551a10bb51e71e600d3b42d9c2650463
Author: John Ralls <jralls at ceridwen.us>
Date: Sun Dec 7 15:13:49 2025 -0800
Bug 799699 - Inconsistent column headers in scheduled transaction editor
Template transactions can't have totals, the formulas are just strings.
Don't display the Tot Foo labels, they confuse users.
diff --git a/gnucash/register/ledger-core/split-register-model.c b/gnucash/register/ledger-core/split-register-model.c
index 1a456e8a38..34ed7d5a1f 100644
--- a/gnucash/register/ledger-core/split-register-model.c
+++ b/gnucash/register/ledger-core/split-register-model.c
@@ -437,6 +437,9 @@ gnc_split_register_get_tcredit_label (VirtualLocation virt_loc,
SplitRegister* reg = user_data;
SRInfo* info = gnc_split_register_get_info (reg);
+ if (reg->is_template)
+ return "";
+
if (info->tcredit_str)
return info->tcredit_str;
@@ -462,6 +465,9 @@ gnc_split_register_get_tdebit_label (VirtualLocation virt_loc,
SplitRegister* reg = user_data;
SRInfo* info = gnc_split_register_get_info (reg);
+ if (reg->is_template)
+ return "";
+
if (info->tdebit_str)
return info->tdebit_str;
@@ -483,6 +489,11 @@ static const char*
gnc_split_register_get_tshares_label (VirtualLocation virt_loc,
gpointer user_data)
{
+ SplitRegister* reg = user_data;
+
+ if (reg->is_template)
+ return "";
+
return _ ("Tot Shares");
}
@@ -490,6 +501,11 @@ static const char*
gnc_split_register_get_tbalance_label (VirtualLocation virt_loc,
gpointer user_data)
{
+ SplitRegister* reg = user_data;
+
+ if (reg->is_template)
+ return "";
+
return _ ("Balance");
}
Summary of changes:
gnucash/register/ledger-core/split-register-model.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
More information about the gnucash-changes
mailing list