Christopher Lam
949c9c97c0
Bug 799300 - Nullpointer exception in gnc_quote_source_s
...
avoids constructing std::string with nullptr
2024-05-04 08:27:43 +08:00
Kaligula
d358998af7
Translation update by Kaligula <kaligula.dev@gmail.com> using Weblate
...
po/pl.po: 72.7% (4054 of 5571 strings; 1008 fuzzy)
275 failing checks (4.9%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/
Co-authored-by: Kaligula <kaligula.dev@gmail.com>
2024-05-02 23:07:28 +02:00
iceberg
ee28b639b3
Translation update by iceberg <usurprisedme@gmail.com> using Weblate
...
po/glossary/te.po: 4.2% (9 of 212 strings; 1 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Telugu)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/te/
Co-authored-by: iceberg <usurprisedme@gmail.com>
2024-05-02 23:07:27 +02:00
Christopher Lam
4c29f69d67
[engine.i] even faster gnc_get_match_commodity_splits
...
gnc_get_match_commodity_splits needs to scan the account splitlists to
find suitable splits upto end_date. Because splitlist is date-sorted,
use gnc_account_foreach_split_until_date to avoid scanning later
splits.
2024-05-02 22:21:31 +08:00
Christopher Lam
87dbbf25f8
[account.cpp] add gnc_account_foreach_until_date
...
- uses binary search to find first split after date
- for_each from earliest split to (but excluding) the above first split
2024-05-02 22:21:31 +08:00
Christopher Lam
2c6f15090a
[trep-engine] bugfix sorting/show-account-description was not working
...
also fix display code - omit " " if code is empty.
2024-05-02 13:09:01 +08:00
Szia Tomi
926250afab
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/hu.po: 77.2% (4303 of 5571 strings; 396 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 77.2% (4303 of 5571 strings; 396 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2024-05-02 03:07:16 +02:00
Christopher Lam
3f0dd57b6f
[test-commodity-utils.scm] don't test TZ-sensitive datetimes
2024-04-30 08:38:45 +08:00
Christopher Lam
8fb5a6afd6
Fix tests so that they don't fail unnecessarily
...
- test-begin/test-end names must be consistent
- remove empty test group in test-scm-engine
2024-04-29 22:06:45 +08:00
Christopher Lam
25c02b4822
[test-commodity-utils] some tests for get_match_commodity_splits
2024-04-29 21:33:36 +08:00
mocsa
c9c6534a7e
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
...
po/hu.po: 77.1% (4299 of 5571 strings; 399 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: mocsa <csaba@feltoltve.hu>
2024-04-28 13:07:12 +02:00
Christian Wehling
d481d67da0
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
...
po/de.po: 100.0% (5571 of 5571 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/
Co-authored-by: Christian Wehling <christian.wehling@web.de>
2024-04-28 13:07:10 +02:00
Christopher Lam
818c7dc797
[gnc-report.cpp] hide gnc_reports impl, expose gnc_reports_foreach
...
Instead of retrieving the GHashTable and iterating through the
key/values, expose gnc_reports_foreach which does the same job.
2024-04-27 19:21:24 +08:00
Bora Atıcı
d3e8712b30
Translation update by Bora Atıcı <boratici.acc@gmail.com> using Weblate
...
po/tr.po: 70.1% (3907 of 5571 strings; 1047 fuzzy)
304 failing checks (5.4%)
Translation: GnuCash/Program (Turkish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/tr/
Co-authored-by: Bora Atıcı <boratici.acc@gmail.com>
2024-04-23 20:07:35 +02:00
Christian Wehling
1139f751dc
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
...
po/de.po: 100.0% (5571 of 5571 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/
Co-authored-by: Christian Wehling <christian.wehling@web.de>
2024-04-23 20:07:34 +02:00
John Ralls
9c18bc889c
Don't use Googletest internal API for unused decls.
2024-04-22 18:05:10 -07:00
Bruce P Schuck
d01aad68fb
Update gnc-commodity.cpp
...
Fool.pm not working. Removed references to it from sources JSON structures.
2024-04-22 18:05:10 -07:00
Bruce Schuck
6696bf0a41
Updated QuoteSourceVec to match F::Q v1.59
2024-04-22 18:05:10 -07:00
Christopher Lam
5dab612d1b
Merge branch 'bug799258-cpp' into stable #1920
2024-04-22 19:34:19 +08:00
Christopher Lam
3dc0df7f38
[commodity-utilities.scm] routines upgraded to accept a #:hide-warnings? argument
...
... whose default is #f, therefore warnings are shown.
In gnc:case-exchange-time-fn the routines are called at the report
end-date once. Therefore all relevant splits are analysed for
warnings.
Subsequent calls (at various report dates) will omit warnings.
2024-04-22 19:34:02 +08:00
Christopher Lam
daadfcf426
[balsheet-pnl.scm] use enhanced gnc:case-exchange-time-fn
...
Because gnc:case-exchange-time-fn now handles multiple report dates
correctly.
2024-04-22 19:34:02 +08:00
Christopher Lam
0bd0f77742
Bug 799258 - Reports calculating net worth incorrectly after stock split
...
For average-cost and weighted-average: when the exchange-fn is
created, it would formerly consider the whole book foreign currency
conversions to calculate the date-specific conversions. This bug fix
will limit the book conversions to those earlier than the
date-specific conversions.
The book retrieval functions are expensive, therefore the analysis
splitlists are cached in the date-hash hash-table, which is scoped
within the exchange-fn lambda only, and is garbage collected when
exchange-fn is out of scope.
Also: amend relevant commodity-utilities.scm tests
The old weighted-average and average-cost tests were written to
document the (knowingly) incorrect exchanged amounts as originally
calculated pre-2024.
In 2024, the exchange-fn is fixed so that foreign currency
conversions at a particular report date would consider only
transactions up to the relevant report date.
The first AAPL transaction in this test book is on 09/08/2013: a
purchase of 600 AAPL at $36840 total @ $61.40 each.
Therefore the first test, on 20/02/2012 the AAPL->USD exchange rate
conversion should be zero, since there are no AAPL transactions
yet.
Subsequent AAPL test on 20/02/2014 shows the conversion of 1
AAPL to be 307/5 which matches $61.40.
etc.
2024-04-22 19:34:02 +08:00
Christopher Lam
a993e97204
[commodity-utilities.scm] use gnc_get_match_commodity_splits
2024-04-22 19:34:02 +08:00
Christopher Lam
68f60fef68
[engine.i] gnc_get_match_commodity_splits from scheme to c++
...
The scheme version is very inefficient: (1) it uses QofQuery to
retrieve all splits, and QofQuery is slow. (2) The whole splitlist
typically is thousands splits long needs to be converted from C to
guile via consing and reverse. (3) The scheme list is immediately
filtered to select "interesting" splits only.
This function performs all of the above using Account's efficient
methods, selecting only interesting splits into a GList. This list is
then converted to scheme via cons and reverse.
2024-04-22 19:34:02 +08:00
Christopher Lam
cb7196a393
[base-typemaps.i] add VECTOR_HELPER_INOUT for Split* and Account*
...
efficiently convert std::vector<Obj> to/from guile list of objects
2024-04-22 19:34:02 +08:00
Szia Tomi
80f82e9d47
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/hu.po: 77.1% (4299 of 5571 strings; 399 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2024-04-22 05:57:36 +02:00
mocsa
e9362a4c7c
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
...
po/hu.po: 77.1% (4299 of 5571 strings; 399 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
po/hu.po: 77.0% (4294 of 5571 strings; 399 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: mocsa <csaba@feltoltve.hu>
2024-04-22 05:57:36 +02:00
Christopher Lam
0f791c474a
[Account.cpp][api] gnc_account_foreach_split takes std::function<void(Split*)>
2024-04-22 07:49:40 +08:00
Szia Tomi
31e80a18a3
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/hu.po: 77.0% (4294 of 5571 strings; 399 fuzzy)
2 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2024-04-21 02:07:09 +02:00
Szia Tomi
28a33179ac
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/hu.po: 76.9% (4285 of 5571 strings; 407 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 76.2% (4246 of 5571 strings; 418 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2024-04-20 15:07:15 +02:00
Christopher Lam
871f669a19
[Account.cpp] explicitly destroy priv->splits
...
better than 35b6fb767d
2024-04-20 10:08:56 +08:00
Szia Tomi
53c6bc6dd8
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/hu.po: 75.6% (4215 of 5571 strings; 419 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2024-04-19 16:03:37 +02:00
Kaligula
30ab9bc964
Translation update by Kaligula <kaligula.dev@gmail.com> using Weblate
...
po/pl.po: 72.7% (4053 of 5571 strings; 1009 fuzzy)
275 failing checks (4.9%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/
Translation update by Kaligula <kaligula.dev@gmail.com> using Weblate
po/pl.po: 72.6% (4049 of 5571 strings; 1011 fuzzy)
276 failing checks (4.9%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/
Co-authored-by: Kaligula <kaligula.dev@gmail.com>
2024-04-19 16:03:37 +02:00
Christopher Lam
35b6fb767d
[Account.cpp] ensure priv->splits releases memory on shutdown
2024-04-19 18:55:05 +08:00
Kaligula
ae8e50e410
Translation update by Kaligula <kaligula.dev@gmail.com> using Weblate
...
po/pl.po: 72.1% (4021 of 5571 strings; 1034 fuzzy)
277 failing checks (4.9%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/
Translation update by Kaligula <kaligula.dev@gmail.com> using Weblate
po/pl.po: 71.7% (3995 of 5571 strings; 1060 fuzzy)
276 failing checks (4.9%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/
Co-authored-by: Kaligula <kaligula.dev@gmail.com>
2024-04-18 21:03:52 +02:00
Simon Arlott
743a5e84d4
Translation update by Simon Arlott <weblate.simon@arlott.org> using Weblate
...
po/en_NZ.po: 100.0% (5571 of 5571 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (English (New Zealand))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/en_NZ/
Translation update by Simon Arlott <weblate.simon@arlott.org> using Weblate
po/en_AU.po: 100.0% (5571 of 5571 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (English (Australia))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/en_AU/
Translation update by Simon Arlott <weblate.simon@arlott.org> using Weblate
po/en_GB.po: 100.0% (5571 of 5571 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (English (United Kingdom))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/en_GB/
Co-authored-by: Simon Arlott <weblate.simon@arlott.org>
2024-04-18 21:03:52 +02:00
Nathan Hadley
7682199220
Translation update by Nathan Hadley <nathanhadley.pigeon@gmail.com> using Weblate
...
po/it.po: 99.8% (5563 of 5571 strings; 8 fuzzy)
2 failing checks (0.1%)
Translation: GnuCash/Program (Italian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/it/
Co-authored-by: Nathan Hadley <nathanhadley.pigeon@gmail.com>
2024-04-17 23:03:46 +02:00
Andi Chandler
1bff25e44f
Translation update by Andi Chandler <andi@gowling.com> using Weblate
...
po/en_GB.po: 100.0% (5571 of 5571 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (English (United Kingdom))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/en_GB/
Co-authored-by: Andi Chandler <andi@gowling.com>
2024-04-17 23:03:45 +02:00
Szia Tomi
01840baad4
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/hu.po: 75.6% (4215 of 5571 strings; 419 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 75.6% (4215 of 5571 strings; 419 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 75.6% (4213 of 5571 strings; 421 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 75.6% (4213 of 5571 strings; 421 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2024-04-17 23:03:45 +02:00
mocsa
e173db0f99
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
...
po/hu.po: 75.6% (4212 of 5571 strings; 422 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: mocsa <csaba@feltoltve.hu>
2024-04-17 23:03:45 +02:00
Szia Tomi
98d35fd392
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/hu.po: 75.6% (4212 of 5571 strings; 422 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 75.5% (4209 of 5571 strings; 422 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 75.5% (4207 of 5571 strings; 423 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2024-04-17 23:03:45 +02:00
Christopher Lam
94368f4cb4
[Account.cpp] SplitsVec&, ensure xaccAccountGetSplitList is freed
2024-04-16 21:41:48 +08:00
Christopher Lam
3d173681cc
Merge branch 'account-splits-vector' into stable #1917
2024-04-16 07:30:27 +08:00
Christopher Lam
2b71219766
[Account.cpp] remove obsolete comment
2024-04-16 07:30:15 +08:00
John Ralls
6506e48542
Bug 799264 - option account selector fails to include appropriate...
...
hidden accounts
Changed the default for show hidden accounts to true so that reports
that select by account type include hidden options. This won't affect
cases where specific acconts are selected.
2024-04-15 14:00:43 -07:00
Christopher Lam
1b50c6261a
g_list_free xaccAccountGetSplitList
2024-04-16 00:09:52 +08:00
Christopher Lam
606da28d25
use xaccAccountGetSplitsSize
2024-04-16 00:09:52 +08:00
Christopher Lam
f70ee754fc
use xaccAccountGetSplits and gnc_account_find_split
2024-04-16 00:09:52 +08:00
Christopher Lam
3f7a5a8267
[Account.hpp][API] xaccAccountGetSplits and gnc_account_find_split
2024-04-16 00:09:52 +08:00
Christopher Lam
a54caaab61
[Account.cpp] GetBalanceAsOfDate gets std::function instead of bool
2024-04-15 23:21:16 +08:00