gnucash stable: Multiple changes pushed
Christopher Lam
clam at code.gnucash.org
Sun Jun 23 23:10:03 EDT 2024
Updated via https://github.com/Gnucash/gnucash/commit/336e77ca (commit)
via https://github.com/Gnucash/gnucash/commit/a6463f98 (commit)
from https://github.com/Gnucash/gnucash/commit/43bda215 (commit)
commit 336e77ca3544dfc56a41770c2abcb959836bd9a6
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Mon Jun 24 11:08:40 2024 +0800
[html-utilities.scm] show acct full names in gnc:html-render-options-changed
diff --git a/gnucash/report/html-utilities.scm b/gnucash/report/html-utilities.scm
index 12ae13761c..904184a4bd 100644
--- a/gnucash/report/html-utilities.scm
+++ b/gnucash/report/html-utilities.scm
@@ -315,7 +315,7 @@
(qof-print-date (cdr d))
(disp (cdr d)))))
(try gnc-commodity-get-mnemonic)
- (try xaccAccountGetName)
+ (try gnc-account-get-full-name)
(try gnc-budget-get-name)
(format #f "~a" d)))
(let ((render-list '())
commit a6463f9814ef3d48303a17855119c29b5557ac25
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Sun Jun 23 22:29:07 2024 +0800
[utest-Account] add more balance limit tests
diff --git a/libgnucash/engine/test/utest-Account.cpp b/libgnucash/engine/test/utest-Account.cpp
index 6a64a362c4..53136f1851 100644
--- a/libgnucash/engine/test/utest-Account.cpp
+++ b/libgnucash/engine/test/utest-Account.cpp
@@ -1246,6 +1246,16 @@ test_gnc_account_kvp_setters_getters (Fixture *fixture, gconstpointer pData)
xaccAccountSetIncludeSubAccountBalances (account, false);
+ // try setting invalid numbers: these are ignored
+ xaccAccountSetHigherBalanceLimit (account, gnc_numeric_create (1, 0));
+ xaccAccountSetLowerBalanceLimit (account, gnc_numeric_create (0, 0));
+
+ g_assert_true (xaccAccountGetHigherBalanceLimit (account, &balance_limit) == true);
+ g_assert_cmpint (gnc_numeric_compare (h_balance, balance_limit), ==, 0);
+
+ g_assert_true (xaccAccountGetLowerBalanceLimit (account, &balance_limit) == true);
+ g_assert_cmpint (gnc_numeric_compare (l_balance, balance_limit), ==, 0);
+
xaccAccountClearHigherBalanceLimit (account);
xaccAccountClearLowerBalanceLimit (account);
Summary of changes:
gnucash/report/html-utilities.scm | 2 +-
libgnucash/engine/test/utest-Account.cpp | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list