Christopher Lam
c8348fa4cf
[translog.cpp] use c++ for better cleanup
6 months ago
John Ralls
ebcd670ab5
Merge Bruce Schuck's 'addswissfundata' into stable.
7 months ago
John Ralls
dcb7a8c242
Fix GncDateTime tests on Windows.
7 months ago
John Ralls
6fab138647
Adjust tests to accommodate Win32 special cases.
7 months ago
Sherlock
048dfa1232
Bug 343711 - Splits to Imbalance-USD do not disappear when zero-valued.
...
To mitigate potential impact, the Imbalance split is only removed when the split transitions to zero value during the commit of the transaction and the split's memo and action have no value.
8 months ago
Bruce Schuck
bd440d9eff
Added Swiss Fund Data AG to single_quote_sources.
...
New F::Q source will be available in v1.67.
8 months ago
John Ralls
a773248939
Bug 799649 - Ensure that GnuCash does not crash when it converts a...
...
foreign-currency transaction into a trading account transaction.
Disable scrubbing while committing the new trading split, otherwise
the recursed scrub will delete it causing a crash when GnuCash tries
to populate it.
9 months ago
Christopher Lam
368b74c69c
[gnc-pricedb.cpp] plug leak from gnc_g_date_new_today
10 months ago
Christopher Lam
f3f917df38
[Transaction.cpp] use qof_instance kvp API for GDate
10 months ago
Christopher Lam
ab04715c91
[Transaction.cpp] use qof_instance kvp API for Time64, with bugfix
...
fixes bug whereby xaccTransRetDateDue returns 0 if the kvp time64
stored is 0.
10 months ago
Christopher Lam
985f591830
[Transaction.cpp] small modification to xaccTransSetNotes
10 months ago
Christopher Lam
7e740babdf
[Transaction.cpp] small modification to xaccTransSetReadOnly
...
if reason is "" then remove the kvp
10 months ago
Christopher Lam
23a2e091c7
[Transaction.cpp] use qof_instance kvp API for const char*
10 months ago
Christopher Lam
754a1eb42f
[utest-Account.cpp] use qof_instance kvp API for const char*
10 months ago
Christopher Lam
e48c293143
[Split.cpp] use qof_instance kvp API for GncGUID*
10 months ago
Christopher Lam
5fc64466a1
[Transaction.cpp] use qof_instance kvp API for GncGUID*
10 months ago
Christopher Lam
7e22685a1c
[Transaction.cpp] use qof_instance kvp API for int64_t
10 months ago
Christopher Lam
e28f314d43
[Split.cpp] use qof_instance kvp API for gnc_numeric
10 months ago
Christopher Lam
0cea3725a1
[Split.cpp] use qof_instance kvp API for const char*
10 months ago
Christopher Lam
ed4f72f3a7
[gnc-lot.cpp] use qof_instance kvp API for const char*
10 months ago
Christopher Lam
72869a393d
[gnc-commodity.cpp] use qof_instance kvp API for const char*
10 months ago
Christopher Lam
e7f05b9baa
[gnc-commodities.cpp] expose auto_quote_control kvp to test them
10 months ago
Christopher Lam
aa339b4674
[Transaction.cpp] use g_list_copy_deep
10 months ago
Christopher Lam
7f82098c11
[utest-Transaction.cpp] add test_xaccTransGetDateDue tests
...
including currently (arguably) buggy behaviour if kvp time64 is 0...
10 months ago
Christopher Lam
584bc61192
[utest-Transaction.cpp] test actual kvp slots
10 months ago
Christopher Lam
c5a6341ab2
[utest-Transaction] add trans->notes tests
10 months ago
Christopher Lam
4e2189db53
[utest-Transaction.cpp] xaccTransGetDocLink with NULL doclink is NOP
10 months ago
Bruce Schuck
1f4aade5d1
Modified gnc-commodity.cpp to match F::Q
...
Modules Bloomberg.pm, Tiaacref.pm, Troweprice.pm removed
10 months ago
Bruce Schuck
e761185d5c
Added new F::Q source to single_quote_sources.
...
China Merchants Bank - cmbchina
11 months ago
Bruce Schuck
0ca5d1d956
Fixed comment about failover methods/multiple sources
11 months ago
Bruce Schuck
a707f8ea89
Modified quote sources to match current F::Q
11 months ago
John Ralls
019fbb3f58
Bug 799490 - Error on start or opening a gnucash file: Can't parse the URL
...
g_filename_from_uri can't handle # in paths but gnc_uri_get_path can.
11 months ago
John Ralls
910130c500
Bug 799506 - reconcile bad date pops to 1969
...
Ensure that qof_scan_date always returns a valid year, month, and day
by converting the result of date scanning to a struct tm and
normalizing it.
11 months ago
John Ralls
ebc407766b
Bug 799580 - Swiss currency symbol is displayed as SFr. instead of CHF
...
The S is obsolete but Fr. is still widely used. This is the local
symbol so users who want CHF can set it in the security editor.
11 months ago
Bill Sommerfeld
0407466789
Drop the definition of __EXTENSIONS__ from three files and instead
...
move it to compiler options if on a platform that needs it.
11 months ago
John Ralls
889a4dde95
Mortgage assistant: Avoid crash when returning to the repayment page.
...
And as a side benefit don't leak signal handlers for the repGncFreq
changed signal.
The crash occured because gnc_frequency_setup_recurrence first calls
gnc_date_edit_set_gdate which emits a changed signal that, if it
wasn't the first call to loan_rep_prep would call
update_repayment_formula_cb and that would generate a new recurrences
list. But the still running gnc_frequency_setup_recurrence still had a
pointer to the old list and when it tried to manipulate it it would
crash.
This change disconnects the previous signal handler preventing the
list from being replaced.
12 months ago
John Ralls
10d519544b
Merge Bill Sommerfeld's 'gnc-date-fix' into stable.
12 months ago
John Ralls
3770cb8131
Wrap include of gtest.h and gmock.h with a warning-silencing pragma.
...
See https://github.com/google/googletest/issues/4701
The warnings cause the Arch Linux CI to fail because of -Werror.
12 months ago
Bill Sommerfeld
76254e050f
Fix build of test-gnc-date on systems without HAVE_STRUCT_TM_GMTOFF
12 months ago
John Ralls
6712a4a5fb
gnc_relative_date_to_time64: Have only if statemen for period TODAY.
1 year ago
John Ralls
b5b2221e72
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.
1 year ago
John Ralls
cf369fb270
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.
1 year ago
Sherlock
4e4dcf1758
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.
1 year ago
Robert Fewell
6f722be642
Bug 799562 - Import Map Editor Non-Bayesian crashes gnucash
...
Missing G_VALUE_INIT after recent change to function.
1 year ago
Christopher Lam
99506779e3
Bug 799565 - Reconcile date default doesn't update to reflect previous reconciliation.
...
A one-word path error in xaccAccountClearReconcilePostpone.
The commit 9172d1dd23 accidentally reverted in 90662d72a2 , reapply
1 year ago
John Ralls
90662d72a2
xaccAccountDeleteAllTransactions: Avoid UAF crashes
...
Chris Lam pointed out that the original algo would crash if a
transaction had more than one split in the account being deleted.
Deduplicate the transaction vector first to protect against that.
Also suspend qof events for a 4x speedup.
1 year ago
John Ralls
0e15e12ea9
Improve GncNumeric(std::string) to handle unicode spaces.
1 year ago
John Ralls
1fa4f71f59
Fix gnc-numeric test failure on macOS 15.4 beta.
...
Caused by Apple suddenly fixing ostreams to put the thousands
separator in numbers when it's set in the locale.
1 year ago
John Ralls
058e2a196b
Bug 799564 - Decimal point confusions when getting stock quotes from aex
...
Add parsing thousands-grouped numbers to GncNumeric(const std::string&).
1 year ago
John Ralls
9172d1dd23
Bug 799565 - Reconcile date default doesn't update to reflect…
...
previous reconciliation.
A one-word path error in xaccAccountClearReconcilePostpone.
1 year ago