Stefan Koch
fa74cbb37e
Make test-lots a google test file.
2 weeks ago
Stefan Koch
e610a59817
Add full coverage tests of qof-string-cache.
2 weeks ago
Stefan Koch
cd3acb334b
Add (mostly) full coverage tests of qofinstance.
2 weeks ago
Stefan Koch
f21150a401
Move all test-qof files to Google otest.
...
specifically: test-qofinstance, test-gnc-date, test-qof-string-cache, test-qofobject, test-qofbook.
The same test functionality is maintained.
2 weeks ago
Stefan Koch
839d28a9bf
Move the test-qof to be a c++ compatible.
...
1. Rename the files (test-gnc-date.c, test-qof.c, test-qofbook.c, test-qofobject.c,
test-qof-string-cache.c) to .cpp.
2. Make explicit type conversions where the c++ compiler is more strict in type checking.
3. Make the get_object_modules and get_book_list accessors in qofobject.cpp c++ and not c
functions. They are only used in these tests, and can be C++. Could have made them
external C in the test code to keep the non test code unchanged, but since both sides
are now c++ that did not make sense.
4. Updated the char* that use constant strings to char arrays since the functions are
declared non const.
2 weeks ago
Stefan Koch
d5833e053b
Remove unused CHECK_GAINS_STATUS macro.
2 weeks ago
Stefan Koch
de8b6da838
Remove unused split_type member of split_s
2 weeks ago
Robert Fewell
8f10b4f864
Couple of spelling errors in gnc-accounting-period
2 weeks ago
Robert Fewell
eb96f8e7f2
Fix fiscal year end use in gnc-period-select
...
When saving the 'fy_end' date in the GncPeriodSelect widget the year
was being saved as G_DATE_BAD_YEAR. In doing so, the month and day when
retrieved will be 0. If the year is set separately with g_date_set_year
and G_DATE_BAD_YEAR is used the following error is logged...
ERROR <GLib> g_date_set_year: assertion 'g_date_valid_year (y)' failed
So to fix this just copy the incoming 'fy_end' GDate.
2 weeks ago
Robert Fewell
a135c25758
Remove left over code in dialog-preferences.
...
Code for use of 'fy_end' was disabled so lets remove it to avoid any
confusion when fiscal year handling is added.
2 weeks ago
Robert Fewell
35822232ca
Bug 421610 - Include logical dates in View->Filter
...
Change the register filter option 'Today' radio button to be a period
select widget. This will give some predefined relative options that are
the same as in the Preference dialog.
2 weeks ago
Robert Fewell
a780cd1a11
Remove Doxygen comments from static functions in gnc_plugin_page_register_filter.cpp.
2 weeks ago
Robert Fewell
cdbd06b14f
Drop the gnc_ prefix for any static functions in gnc_plugin_page_register_filter.cpp
2 weeks ago
Robert Fewell
e7ae771096
Remove some missed trailing spaces from gnc_plugin_page_register_filter.c
2 weeks ago
Christopher Lam
13112ab809
rename gmock-qofbook.h and gmock-Split.h to .hpp
3 weeks ago
Christopher Lam
63917e0824
[qofbook.cpp] move _QofBook definition from qofbook.h to qofbook-p.hpp
...
to make it opaque
and change:
- qofbook.h to .hpp
- test-qofbook.c to test-qofbook.cpp
3 weeks ago
Christopher Lam
8b6d93eb87
[test-qofbook.c] use getters instead of accessing QofBook members
3 weeks ago
Christopher Lam
db6cac5b82
[qofbook.h] add further getters/setters for QofBook
3 weeks ago
John Ralls
f3c053fbee
Merge Peter Kim's 'bug-799767-rest-api-post-accounts' into stable.
3 weeks ago
John Ralls
7178a86859
Merge latest translations from Weblate.
4 weeks ago
Szia Tomi
3e7f364c61
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/hu.po: 91.4% (5199 of 5686 strings; 116 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/
4 weeks ago
이정희
0882f74726
Translation update by 이정희 <daemul72@gmail.com> using Weblate
...
po/glossary/ko.po: 100.0% (213 of 213 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/ko/
Translation update by 이정희 <daemul72@gmail.com> using Weblate
po/ko.po: 100.0% (5686 of 5686 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ko/
Translation update by 이정희 <daemul72@gmail.com> using Weblate
po/ko.po: 100.0% (5686 of 5686 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ko/
Translation update by 이정희 <daemul72@gmail.com> using Weblate
po/glossary/ko.po: 7.5% (16 of 213 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/ko/
Translation update by 이정희 <daemul72@gmail.com> using Weblate
po/glossary/ko.po: 5.6% (12 of 213 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/ko/
Translation update by 이정희 <daemul72@gmail.com> using Weblate
po/ko.po: 100.0% (5686 of 5686 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ko/
Translation update by 이정희 <daemul72@gmail.com> using Weblate
po/ko.po: 100.0% (5686 of 5686 strings; 0 fuzzy)
44 failing checks (0.7%)
Translation: GnuCash/Program (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ko/
Translation update by 이정희 <daemul72@gmail.com> using Weblate
po/glossary/ko.po: 4.2% (9 of 213 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/ko/
Co-authored-by: 이정희 <daemul72@gmail.com>
4 weeks ago
Szia Tomi
7faf818d0f
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
...
po/hu.po: 91.3% (5197 of 5686 strings; 116 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: 91.3% (5195 of 5686 strings; 116 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: 91.2% (5191 of 5686 strings; 118 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>
4 weeks ago
DGDS
b484b3fb76
Translation update by DGDS <dagrinddontstop@users.noreply.hosted.weblate.org> using Weblate
...
po/zh_CN.po: 97.3% (5534 of 5686 strings; 141 fuzzy)
59 failing checks (1.0%)
Translation: GnuCash/Program (Chinese (Simplified Han script))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/
Co-authored-by: DGDS <dagrinddontstop@users.noreply.hosted.weblate.org>
4 weeks ago
Milo Ivir
66122ebc5d
Translation update by Milo Ivir <mail@milotype.de> using Weblate
...
po/hr.po: 98.0% (5577 of 5686 strings; 1 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 98.0% (5577 of 5686 strings; 1 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 98.0% (5577 of 5686 strings; 1 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 98.0% (5574 of 5686 strings; 4 fuzzy)
2 failing checks (0.1%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/glossary/hr.po: 99.5% (212 of 213 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/hr/
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 98.0% (5574 of 5686 strings; 4 fuzzy)
4 failing checks (0.1%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 98.0% (5574 of 5686 strings; 4 fuzzy)
2 failing checks (0.1%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/glossary/hr.po: 99.5% (212 of 213 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/hr/
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 97.8% (5563 of 5686 strings; 14 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/
Co-authored-by: Milo Ivir <mail@milotype.de>
4 weeks ago
Christopher Lam
1975ca454a
[assistant-loan.cpp] don't use gtk_editable_get_chars
...
use gtk_entry_get_text where appropriate
also plugs a leak when setting ldd->ld.repAmount
4 weeks ago
Christopher Lam
4d90f19c73
[csv-imp] use ctre instead of boost::regex
1 month ago
Christopher Lam
908bfc0802
[core-utils] upgrade ctre in CMakeLists to public
...
so that it's available everywhere including tests
1 month ago
Christopher Lam
f36532131b
ensure boost::regex is compiled at startup
...
instead of per-call
1 month ago
peter
2d0a3850ae
Bug 799767 - POST /accounts route in rest-api example is broken
...
addAccount was rewritten to accept (name, currency, account_type_id,
parent_account_guid, description, code), validate each field, look up
the parent by GUID, and return gnucash_simple.accountToDict(account).
The route handler was updated to pull the form fields and call it with the
new signature.
README was updated to reflect these changes.
1 month ago
John Ralls
2911a0cce3
Bug 797384 - Gnucash doesn't handle commodity prices with big...
...
numerator/denominator properly
- Use GNC_HOW_DENOM_REDUCE | GNC_HOW_RND_ROUND to preserve precision while
avoiding overflows.
- Rearrange the function's tests to perform only one division or
multiplication instead of unconditionally dividing
- Rename the from_ and to_ variables to p(rice)1 and p2 to reduce
conflation with the input from and to.
1 month ago
Robert Fewell
88e5053784
Bug 799766 - Double line preference not respected in search register
...
After the changes to fix bug 799753, when the register default is to
show double lines the search results were only showing one line of the
transaction, a refresh of the search register would fix this.
This was down to the removal of a refresh from the register creation as
it is now done when the register is focused. In the find transaction
dialog a refresh was being done before the register creation which was
not reflected in the register when it was focused.
To fix this, do not do a refresh when creating the search register but
only when 'updating the search'.
1 month ago
galbarm
25e0f2144a
Account tree: make numeric columns selectable via GncCellRendererLabel
...
Implements the approach suggested by jralls in PR #2222 : instead of a
context menu action, introduce GncCellRendererLabel - a
GtkCellRendererText subclass that returns a read-only, selectable
GtkEntry when a cell is activated.
All numeric columns (Balance, Total, Cleared, Reconciled, Present,
Future Minimum, and their report/period variants) are affected because
they all go through gnc_tree_view_add_numeric_column.
Usage:
- Click once to select the row (unchanged behaviour)
- Click again on a numeric cell to activate it; the value appears in a
read-only entry field with the text pre-selected
- Ctrl+C copies the value to the clipboard; Escape or clicking away
dismisses the field without modifying the model
- Unicode bidi control characters (added by GnuCash for RTL display)
are stripped before showing the value so the copied text is clean
1 month ago
John Ralls
ec4a85a56c
Correct the Doxygen doc for qof_instance_get/set_kvp.
1 month ago
Christopher Lam
43b6b92ee2
[gnc-log-replay.cpp] fix incorrect guid dump
1 month ago
Christopher Lam
bbb80105ff
[gnc-aqbanking-templates.cpp] fix incorrect setter, free GList*
1 month ago
Christopher Lam
55856c63dd
[gnc-budget.cpp] null check arguments *before* accessing them
1 month ago
John Ralls
4490130eef
Update Mac testing to a new depenencies tarball
1 month ago
John Ralls
bf3accd85d
Add some Boost library requirements needed by libgnucash-guile.
...
So that if they're missing we don't have to wait for linker failures to find out.
1 month ago
Christopher Lam
df9380c2a8
Merge branch 'ctre-regex' into stable
1 month ago
Christopher Lam
384043ac41
[gnc-filepath-utils.cpp] use ctre instead of std::regex
1 month ago
Christopher Lam
0d21fdc9f7
[ctre.hpp] add single-header ctre v3.11.0
1 month ago
Christopher Lam
96dac7bb38
[gnc-filepath-utils.cpp] null check char* arguments
1 month ago
John Ralls
bf1264b561
Add ChartJS licenses.
2 months ago
John Ralls
f9e2fb9130
Merge Bruce Schuck's 'rm-aex' of https://github.com/bpschuck/gnucash into stable
2 months ago
Bruce Schuck
4ff491b565
Removed AEX from list of commodities.
...
euronext.com is now using JS based anti-webscraping.
2 months ago
John Ralls
b8181871dd
Merge Sherlock's 'bug-436105' into stable
2 months ago
Sherlock
99822a16c8
Bug 436105 - esc key not working as expected in register
...
This patch enables the use of the Escape key to cancel an edit of a field in a transaction or a split restoring the value the field held when the user navigated to the transaction or split.
2 months ago
Christopher Lam
992088754f
Merge branch 'always-offer-options-summary' into stable
2 months ago
John Ralls
b72a98ecdf
Merge Sherlock's 'remove-dead-IM_code' into stable.
2 months ago