Commit Graph

23511 Commits

Author SHA1 Message Date
Christopher Lam
e7a3ec5631 Merge branch 'maint-797989' into maint #807
* Introduce gnc:string-locale<? and gnc:string-locale>?
* Deprecates a few engine.scm functions
* Fix sorting to be locale-sensitive where possible
2020-11-02 09:08:53 +08:00
John Ralls
5ced417467 Bug 797994 - Account type-ahead search doesn't match accented...
characters.

Because of normalizing the account name but not the search pattern.
2020-11-01 16:37:17 -08:00
Christopher Lam
ccc653186c [dialog-tax-table.c] free GList after use 2020-11-01 21:03:19 +08:00
Christopher Lam
7e6cb470f1 Bug 797989 - Sorting columns by alphabet with non-ASCII characters
use gnc:string-locale for string sorting
2020-11-01 08:30:56 +08:00
Christopher Lam
8628ffa957 3/3 [engine.scm] deprecate scheme utility functions 2020-11-01 08:30:56 +08:00
Christopher Lam
6637d6d210 2/3 [taxtxf] inline single-use scheme function from engine.scm 2020-11-01 08:30:56 +08:00
Christopher Lam
a10c084022 1/3 [report-utilities][API] copy funcs engine.scm to report-utilities.scm
The following copied from similarly named functions in libgnucash

gnc:account-full-name<?
gnc:accounts-get-children-depth
2020-11-01 08:30:56 +08:00
Christopher Lam
25e4efc2b7 [core-utils.scm][API] gnc:string-locale<? gnc:string-locale>?
locale-sensitive string-sorting functions -- currently mirrors guile's
(ice-9 i18n) functions -- may be modified to call C code if guile code
is not reliable.
2020-11-01 08:30:56 +08:00
Christopher Lam
e9d1e694f2 Addendum to 0446dca54, fix currency bug 2020-11-01 08:30:20 +08:00
Christopher Lam
d87c469e17 Bug 797993 - Reverse balance option does not apply to an Account Report 2020-11-01 07:23:27 +08:00
Christopher Lam
9e70d7f45a [register.scm] some cleanups 2020-11-01 07:23:27 +08:00
Cristian Klein
fa16a29948 Add auto-clear to register page 2020-10-30 09:42:05 +01:00
Cristian Klein
e5378b2048 [auto-clear] Make test more future-proof with GoogleTest 2020-10-30 09:42:05 +01:00
Cristian Klein
982cf86deb [auto-clear] Fix test with googletest 1.8 2020-10-30 09:42:05 +01:00
Cristian Klein
9d4c0b05db [auto-clear] Improve #include style 2020-10-30 09:42:05 +01:00
Cristian Klein
1cf7defee8 [auto-clear] Address feedback 2020-10-30 09:42:05 +01:00
Cristian Klein
9bf550d38f [auto-clear] Include test for ambiguous cases 2020-10-30 09:42:05 +01:00
Cristian Klein
5cd777b673 [auto-clear] Fix test: Add xaccAccountBeginEdit / xaccAccountCommitEdit 2020-10-30 09:42:05 +01:00
Cristian Klein
2faecb2074 [auto-clear] Avoid testing ambigous auto-clear 2020-10-30 09:42:05 +01:00
Cristian Klein
a1806a2f94 [auto-clear] Fix model 2020-10-30 09:42:05 +01:00
Cristian Klein
51715e454c [auto-clear] Add tests 2020-10-30 09:42:05 +01:00
McLayn
cebe6022c8 fix CZK partname to nominative singular 2020-10-30 00:40:02 +01:00
Robert Fewell
5df7949a87 Fix GtkLabel error for autoclear status_label
Move setting up the callback that clears the status_label till after
setting up the status_label.
2020-10-29 12:03:16 +00:00
Christian Stimming
f3ba84921b Add tooltip in import matcher window for description and memo column. 2020-10-27 23:03:46 +01:00
Christian Stimming
6e3c98c2fb L10N🇩🇪 Minor improvements in German translation
Made strings in the import matcher more compact, which leaves more
space on the screen for the interesting content.
2020-10-27 23:02:35 +01:00
Frank H. Ellenberger
10032c17b5 L10N🇩🇪 Berichtige "Ausgleichskonto" zu "Anfangsbestand"
Fehler wegen Mißdeutung des Kontexts von 'balance'
2020-10-27 22:17:18 +01:00
John Ralls
1915dfb0cb Put Macs back on WebKit2. 2020-10-27 13:10:59 -07:00
Christopher Lam
a6c8a806f3 Bug 797982 - exchange rates' decimal places (bis)
Bug introduced in e7165507c. We need to normalize date for
pricedb-nearest to avoid getting next day price.
2020-10-27 11:06:45 +08:00
Frank H. Ellenberger
fedaa13396 CMake: Mute guile-2.2 again 2020-10-27 01:56:45 +01:00
John Ralls
946cbef95f HTML fonts: Parse additional values of font-weight from the pango font name. 2020-10-26 14:05:31 -07:00
John Ralls
4ddd28a5d9 Extract font-stretch when converting pango font names to CSS.
Also wrap font-family value in quotes and lower-case the fallback
generic sans-serif font-family for CSS conformance (though browsers
don't seem to care).
2020-10-26 12:04:23 -07:00
John Ralls
676cc337dc [macOS] Replace bogus font name from pango.
Pango on macOS reports ".AppleSystemUIFont" as the name for the
system-ui alias. This bogus name doesn't work so replace it with
the fallback Arial.
2020-10-26 11:52:31 -07:00
John Ralls
974342bbae [macOS] Fix Fontconfig unable to find conf.d. 2020-10-26 11:52:31 -07:00
Christopher Lam
92f2727862 Merge branch 'maint-797982' into maint #802 2020-10-26 23:57:39 +08:00
Christopher Lam
1a4f27f6b3 [html-utilities.scm] deprecate gnc:html-make-exchangerates
Because old exchange rates function used exchange-fn which converts 1
commodity into domestic currency; new exchange rates uses price-fn
which queries the gnc_numeric pricedb entry directly.
2020-10-26 23:56:33 +08:00
Christopher Lam
89c0baee9b Bug 797982 - exchange rates' decimal places
use gnc:html-make-rates-table instead of gnc:html-make-exchangerates
to show effective exchange rate or price used
2020-10-26 23:56:33 +08:00
Christopher Lam
4ff3355f02 [html-style-info.scm] price-renderer does not convert to decimal
so that it may obey global pref decimal vs fraction
2020-10-26 23:56:33 +08:00
Christopher Lam
e7165507c8 [commodity-utils.scm][api] gnc:html-make-rates-table with price-fn
better precision than gnc:html-make-exchangerates
2020-10-26 23:56:33 +08:00
Christopher Lam
e833c8e1aa [utest-gnc-pricedb.c] test: gnc_pricedb_get_[latest|nearest]_price 2020-10-26 23:56:33 +08:00
Christopher Lam
2ecdd70e24 [gnc-pricedb.c][api] pull out composite pricedb price retriever
* tries direct price retrieval from pricedb.
* if fails, tries intermediate currency.
2020-10-26 23:55:51 +08:00
Frank H. Ellenberger
b675e17e4e L10N🇩🇪 Fix typo of last commit 2020-10-25 07:48:23 +01:00
Frank H. Ellenberger
5671028ba3 L10N🇩🇪 Verbesserung translator-credits (von it.po) 2020-10-23 21:24:15 +02:00
Christopher Lam
4d63eb922f [gnc-pricedb.c] copy convert_amount to convert_price 2020-10-23 09:49:27 +08:00
Christopher Lam
26e7eada37 [gnc-pricedb.c] refactor amount converters, use common code 2020-10-23 09:49:27 +08:00
Christopher Lam
78c8b03c5e [window-autoclear.c] cleanup, optimize, prevent UI lag
abort:
1. if too many splits lead to >1,000,000 reachable amounts
2. if the end_balance is the same as cleared_balance

also:
- g_free lists properly
- move knapsack algorithm to gnc-ui-balances.c
- show newly cleared splits in a new register: "Cleared Transactions"
- remove unneeded #includes
2020-10-23 09:11:29 +08:00
Frank H. Ellenberger
4bebfed9e8 Merge branch 'it.po' into maint 2020-10-23 01:26:52 +02:00
Giuseppe Foti
efb9226e4a L10N🇮🇹 Updated Italian translation; 5528 translated messagges. 2020-10-23 00:59:36 +02:00
Robert Fewell
3c5066feb4 Change source files option-util.* for spaces and tabs 2020-10-22 14:30:46 +01:00
Robert Fewell
e588695502 Change source files dialog-options.* for spaces and tabs 2020-10-22 14:30:11 +01:00
Robert Fewell
f93f850f17 Bug 345924 - Conditionally change Options dialog cancel button
When the options dialog is loaded, the main buttons are a sensitive
'Cancel' button and insensitive 'OK' and 'Apply' buttons. When changes
are made the 'OK' and 'Apply' buttons become sensitive and when pressed
the 'OK' button will make changes and close dialog whereas the 'Apply'
button will make changes and the dialog will remain open but with these
buttons insensitive leaving just 'Cancel' sensitive.

This could be confusing so this commit changes conditionally the text
label of the 'Cancel' button between 'Cancel' and 'Close'.
2020-10-22 14:27:54 +01:00