gnucash stable: Multiple changes pushed

John Ralls jralls at code.gnucash.org
Sun Mar 23 19:28:27 EDT 2025


Updated	 via  https://github.com/Gnucash/gnucash/commit/ad92ae41 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/b5b2221e (commit)
	 via  https://github.com/Gnucash/gnucash/commit/cf369fb2 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/4e4dcf17 (commit)
	from  https://github.com/Gnucash/gnucash/commit/2f3aa62a (commit)



commit ad92ae41f2e04a0581359fed5587056c3be39fff
Merge: 2f3aa62a6b b5b2221e72
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Mar 23 16:28:02 2025 -0700

    Merge Sherlock's 'non-aligned-periods' into stable

commit b5b2221e72cb9c1509f8c4ca6ee238b4301f597e
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Mar 23 12:11:51 2025 -0700

    Test gnc-option-date variable fy start days.
    
    Leverages the FakePrefsBackend from the previous commit to change the
    fiscal year for testing.
    
    Makes now_t a defaulted parameter of gnc_relative_date_to_time64 so
    that we can inject different reference dates for testing.

commit cf369fb2704c60aa8b5460b504292b8f56e5ad4f
Author: John Ralls <jralls at ceridwen.us>
Date:   Sat Mar 22 15:41:49 2025 -0700

    Add and use a fake preferences backend to set the fiscal year.
    
    This restores the expected precondition for the quarter tests of the
    Accounting Period being the current calendar year, replacing the
    today-relative quarter begin and end dates.

commit 4e4dcf1758cd12a6684f5fe30fb300613150bd18
Author: Sherlock <119709043+agwekixj at users.noreply.github.com>
Date:   Sun Mar 2 21:40:51 2025 -0800

    Use the fiscal start day of the month for relative quarter reports
    
    Only the quarter's start month in reports is adjusted when Absolute is selected in the Start Date on the Accounting Period preferences. This branch adjusts both the quarter's start day and month when Absolute is selected or when Relative and Today, Start of this month, or Start of previous month are selected.



Summary of changes:
 bindings/guile/gnc-optiondb.i               |   4 +
 libgnucash/engine/gnc-option-date.cpp       |  89 ++++++++---
 libgnucash/engine/gnc-option-date.hpp       |   6 +-
 libgnucash/engine/test/gtest-gnc-option.cpp | 234 +++++++++++++++++++++++++++-
 4 files changed, 308 insertions(+), 25 deletions(-)



More information about the gnucash-patches mailing list