Commit Graph

26258 Commits

Author SHA1 Message Date
Christopher Lam
c20d717b33 [test-trial-balance] adjust tests to use pricedb-nearest 2022-08-17 09:25:58 +08:00
Christopher Lam
f71999bb8f [trial-balance] set default price-source to average-cost
to minimise complaints... see bug 798550
2022-08-17 07:36:50 +08:00
Christopher Lam
519818ce04 [import-main-matcher] sort matched transactions' accounts 2022-08-17 07:36:44 +08:00
John Ralls
15ce9be79a Update macOS dependency tarball instructions for the existence of Apple Silicon. 2022-08-14 16:00:19 -07:00
John Ralls
e9737375a2 Merge branch 'bug798262' into maint 2022-08-14 15:42:13 -07:00
John Ralls
087501d316 Bug 798262 - Scheduled transactions with blank amounts do not get created.
Handle template transactions that don't have any splits with empty credit
and debit strings and those having no set transaction account.

Set the concrete transaction commodity to the first found of:
The template transaction's commodity
The commodity of the first split with a credit or debit string
The commodity of the first split.
2022-08-14 15:31:46 -07:00
John Ralls
410db42df0 Test case where the template txn doesn't have a set currency. 2022-08-14 15:28:14 -07:00
Arve Eriksson
1e64f3bb04
Translation update by Arve Eriksson <031299870@telia.com> using Weblate
po/sv.po: 100.0% (5400 of 5400 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Swedish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sv/

Co-authored-by: Arve Eriksson <031299870@telia.com>
2022-08-12 22:09:12 +02:00
mocsa
180df505eb
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
po/hu.po: 58.4% (3156 of 5400 strings; 1308 fuzzy)
459 failing checks (8.5%)
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: 58.0% (3135 of 5400 strings; 1320 fuzzy)
465 failing checks (8.6%)
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: 57.8% (3126 of 5400 strings; 1322 fuzzy)
465 failing checks (8.6%)
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: 57.6% (3111 of 5400 strings; 1326 fuzzy)
466 failing checks (8.6%)
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: 57.6% (3111 of 5400 strings; 1326 fuzzy)
466 failing checks (8.6%)
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: 57.3% (3098 of 5400 strings; 1332 fuzzy)
466 failing checks (8.6%)
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: 57.3% (3097 of 5400 strings; 1333 fuzzy)
467 failing checks (8.6%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: mocsa <csaba@feltoltve.hu>
2022-08-12 22:09:12 +02:00
John Ralls
155922540d Bug 794584 - Register not updated when scheduled transactions created
Force the registers to refresh if there are automaticly created
transactions. That will mean two refreshes if the SLR dialog needs to
display and the user clicks OK, but the alternative is somehow tracking
whether to refresh if the user cancels the dialog. This is simpler and
an extra refresh call is harmless.
2022-08-12 13:05:17 -07:00
John Ralls
229f6f5e85 Fix gdate adjustments. 2022-08-12 12:58:58 -07:00
Geert Janssens
7d1b9474bb Use "help:" instead of "ghelp:" to display our documentation on linux
This comes with a few nice side effects:
* "help:" no longer needs the workaround to link directly to an anchor.
" "help:" requires the document's book id to be "index". We used to have
"index" for guide and "help" for manual. The forced alignment also
allows us to simplify the way MacOS invokes guide an manual.
2022-08-12 17:08:00 +02:00
Simon Arlott
4c1fc1d555 Bug 798262 - Add test case for basic scheduled transactions
Test these scheduled transactions:
* 2 splits with fixed amounts "123"
* 2 splits with fixed amounts "0"
* 2 splits with empty amounts ""

Verify that automatically created scheduled transactions exist.
2022-08-11 11:01:03 -07:00
Christopher Lam
41de4cefce Merge branch 'maint-sx-popup' 2022-08-09 18:15:30 +08:00
Christopher Lam
6ba912ee0d Merge branch 'maint' 2022-08-09 18:15:23 +08:00
mocsa
2d8bda80c3
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
po/hu.po: 57.2% (3092 of 5400 strings; 1338 fuzzy)
467 failing checks (8.6%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: mocsa <csaba@feltoltve.hu>
2022-08-09 00:21:31 +02:00
Christopher Lam
de7a63082b [gnc-sx-instance-model] leaks: free temporal_state
it's a simple struct containing GDate and int
2022-08-08 13:58:53 +08:00
Christopher Lam
ad27be333e [gnc-sx-instance-model] prepend GList loops instead of append 2022-08-08 13:58:53 +08:00
Christopher Lam
b94164e8ff [gnc-tree-view-price] prepend GList loops instead of append 2022-08-08 13:58:53 +08:00
Christopher Lam
b4d3d4952d [gnc-tree-model-split-reg] prepend GList loops instead of append 2022-08-08 13:58:51 +08:00
Christian Wehling
322a5998fb
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
po/de.po: 99.9% (5399 of 5400 strings; 1 fuzzy)
181 failing checks (3.3%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Christian Wehling <christian.wehling@web.de>
2022-08-07 03:22:50 +02:00
Enrique Ayesta Perojo
a5c2e4d197
Translation update by Enrique Ayesta Perojo <eayesta@gmail.com> using Weblate
po/eu.po: 27.5% (1485 of 5400 strings; 2524 fuzzy)
916 failing checks (16.9%)
Translation: GnuCash/Program (Basque)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/eu/

Co-authored-by: Enrique Ayesta Perojo <eayesta@gmail.com>
2022-08-07 03:22:50 +02:00
Christopher Lam
e822c12f8b Bug 798590 - Transaction report: wrong type argument in position 1
handle single-col subtotals
2022-08-07 09:22:01 +08:00
John Ralls
8b07ac88cd [options] Add "key" to the register-option documentation blocks. 2022-08-06 17:17:32 -07:00
John Ralls
e29ab5336f [options] Remove key and doc_string from gnc_register_query_option.
It's always used as an internal option with no UI component so it doesn't
use them.
2022-08-06 17:17:32 -07:00
John Ralls
6faaf3b427 [options] Provide a const char* value flavor for register_commodity
And register_currency_option
2022-08-06 17:17:32 -07:00
John Ralls
1ff844c195 [options] Fix implementation of gnc_register_owner_option
To take an owner-type parameter and to set the UIType accordingly.
2022-08-06 17:17:32 -07:00
John Ralls
aa0b0921f4 [options] Add a function to check if an option is internal.
Instead of relying on the legacy underscore-section-name hack.
2022-08-06 17:17:32 -07:00
John Ralls
da0eff2cac [options] Implement widget-changed callbacks.
Enables full functionality for complex-boolean and multichoice-callback
options.

Note that setter-function callback isn't used in any GnuCash code so it
is not implemented and is not present in the register-callback functions.
2022-08-06 17:17:26 -07:00
John Ralls
552aa438ff [options] Implement gnc_register_internal_option. 2022-08-06 17:13:28 -07:00
John Ralls
0e9ed8cf0a [options] Provide float variants to gnc_register_plot_size_option. 2022-08-06 17:13:28 -07:00
John Ralls
3d275a3715 [options] Improve Scheme API consistency 2022-08-06 17:13:16 -07:00
John Ralls
418bb7d0cc [options] Fix two deprecation messages. 2022-08-06 16:25:42 -07:00
John Ralls
0213787a2f [options] Enable registering an absolute date option. 2022-08-06 16:25:42 -07:00
John Ralls
cf2870b71a [options] Change RelativeDate and Multichoice index type to uint16_t.
From size_t because clang thinks that std::is_same_v<size_t, time64> is
true and we need to differentiate the handling of the two.
2022-08-06 16:25:42 -07:00
John Ralls
0b2d14ee72 Fix distribution for expressions target. 2022-08-06 16:25:42 -07:00
Christopher Lam
b94440b16a Bug 798588 - sx scrubbing was using incorrect free function
the GHashTable values are gnc_numeric*.
2022-08-06 16:25:42 -07:00
Christopher Lam
ea56d67797 [gnc-sx-instance-model.c] indent attributes properly 2022-08-06 16:25:42 -07:00
Christopher Lam
a98e4abbd4 [test-charts] add cash-flow to clear warning about missing report 2022-08-06 16:25:42 -07:00
Christopher Lam
bfa0fd1819 Bug 798588 - sx scrubbing was using incorrect free function
the GHashTable values are gnc_numeric*.
2022-08-06 14:39:57 +08:00
Christopher Lam
f0ac8d69b2 [gnc-sx-instance-model.c] indent attributes properly 2022-08-06 14:39:55 +08:00
Christopher Lam
e7e3ed8c2b [test-charts] add cash-flow to clear warning about missing report 2022-08-06 10:20:16 +08:00
Christopher Lam
0ef6967a36 Merge branch 'maint' 2022-08-03 20:38:41 +08:00
Christopher Lam
0b5a4cd298 Merge branch 'maint' 2022-08-03 20:38:08 +08:00
Pedro Albuquerque
2377f7be54
Translation update by Pedro Albuquerque <pmra@gmx.com> using Weblate
po/pt.po: 100.0% (5400 of 5400 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Portuguese)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt/

Co-authored-by: Pedro Albuquerque <pmra@gmx.com>
2022-08-02 18:47:13 +02:00
Laurent Bigonville
05bbe9fdee
Translation update by Laurent Bigonville <bigon@bigon.be> using Weblate
po/fr.po: 99.9% (5398 of 5400 strings; 2 fuzzy)
3 failing checks (0.1%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/

Co-authored-by: Laurent Bigonville <bigon@bigon.be>
2022-08-02 18:47:13 +02:00
Simon Arlott
90e49cbb50
Translation update by Simon Arlott <weblate.simon@arlott.org> using Weblate
po/en_NZ.po: 100.0% (5400 of 5400 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% (5400 of 5400 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% (5400 of 5400 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>
2022-08-02 18:47:12 +02:00
Christian Wehling
6b60ef4f83
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
po/de.po: 99.9% (5399 of 5400 strings; 1 fuzzy)
181 failing checks (3.3%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/glossary/de.po: 99.5% (215 of 216 strings; 1 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/de.po: 99.9% (5399 of 5400 strings; 1 fuzzy)
180 failing checks (3.3%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/glossary/de.po: 99.5% (215 of 216 strings; 1 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/de.po: 99.9% (5399 of 5400 strings; 1 fuzzy)
180 failing checks (3.3%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/de.po: 99.9% (5399 of 5400 strings; 1 fuzzy)
181 failing checks (3.3%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Translation update  by Christian Wehling <christian.wehling@web.de> using Weblate

po/de.po: 99.9% (5399 of 5400 strings; 1 fuzzy)
182 failing checks (3.3%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Christian Wehling <christian.wehling@web.de>
2022-08-02 18:47:11 +02:00
Christopher Lam
b70fe1381d Account tree: set menu sensitivities in only 1 function 2022-08-02 21:10:54 +08:00
Christopher Lam
1b845a86f3 use gtk_entry_get_text instead of gtk_editable_get_chars
the former returns a const char* which does not need to be freed.
2022-08-02 19:08:22 +08:00