Commit Graph

20632 Commits

Author SHA1 Message Date
Christopher Lam
d8d3c669a6 Bug 795729 - Advanced Portfolio Report - Percentage rates not displaying leading zeros
Refine guile (format) string.
2019-02-13 22:23:44 +08:00
Christopher Lam
2349e785c4 Bug 773169 - General Ledger Report report name should be specified
Running trep-options-generator directly from transaction.scm seems to
set the report title properly. The previous code aimed to create a new
options object using transaction report's uuid and reportname, and I
do not anticipate any material change to the report output.
2019-02-13 22:23:44 +08:00
Christopher Lam
06941ca0e6 Bug 797074 - Reports with averages are displaying fractions
Convert amounts to decimal prior to adding to html-table.  Also adds
tests to make sure averages are displayed in 2 decimal places.
2019-02-13 22:23:44 +08:00
Christian Stimming
dac94ce038 Remove ktoblzcheck dependency.
Remove old (non-SEPA) online transaction code, because now in 2019
the banks will only offer SEPA transactions and no others. This
in turn means we don't need the old ktoblzcheck checking functions
at all, hence I remove this dependency completely.
2019-02-13 11:26:39 +01:00
John Ralls
140eb0b110 Log a warning in gnc_get_locale() instead of writing to stderr. 2019-02-12 12:58:42 -08:00
John Ralls
67f5dfb034 Bug 796946 - Mortgage and Loan Repayment Setup tool crashes when...
exiting "Loan Repayment Options" page.

Because libstdc++ on Windows doesn't support any C++ locales besides
"C" and throws an exception if you try.

To work around this use GetNumberFormatW (not GetCurrencyFormatW,
that includes the currency symbol) to create a formatted number string
with the right separators, grouping, and precision.
2019-02-12 12:53:13 -08:00
Michiel Brentjens
4c4acb7e92
Update gnc-tree-view-split-reg.c
gcc version 8.2.1 20181127 (GCC) gave a warning pointing at the problem.
2019-02-12 21:50:31 +01:00
John Ralls
bfadfd7d6d Fix erratic localization of dates on Windows.
Date format selection on Windows relies on Windows National Language
functions and those are unaffected by the POSIX setlocale(). We have
in the past relied upon gtk initialization to handle this but it has
not been reliable since the move to Gtk3. Note that this applies only
when the locale is set via a Unix-style environment variable (typically
LANG) or in the environment file; it's unnecessary and ignored when
using the localization settings in Region & Language.
2019-02-11 16:24:03 -08:00
John Ralls
8f88b7f2b0 Restore the global locale after Guile munges it.
There's no way to change the environment locale on Windows so calling
setlocale(LC_ALL, ""), as guile does in its init routine, reads the
user's Language and Region settings instead of the environment
variables. We save the discovered environment locale and call setlocale
with it again after Guile has initialized.
2019-02-10 15:45:29 -08:00
John Ralls
7d7da8e2c4 Bug 797067 - Date displayed incorrectly in register take two.
Revert using boost::locale to generate std::locales as boost::locale-
generated locales don't implement std::locale::facet and there was
a bug in the boost::locale ICU wrapper code that caused the wrong year
to be output for the last 3 days of December.

GCC's libstdc++ supports only the "C" locale on Windows and throws if
one attempts to create any other kind. For dates we work around this
by using wstrftime() to format according to locale and then convert
the UTF16 string to UTF8. wstrftime() interprets the time zone flags
%z, %Z, and %ZP differently so we process those first before calling
strftime. This will have the unfortunate effect of not localizing
timezone names but it's as close as we can get.
2019-02-08 11:56:32 -08:00
Geert Janssens
67dbfca0e7 Adapt our archlinux docker config to changes in the upstream DockerHub container definition
* archlinux renamed its container from base/archlinux to archlinux/base
* gettext is no longer installed by default
2019-02-07 15:41:11 +01:00
Christian Stimming
7c767604ff Copy obfuscate script from wiki to here, with minor improvements.
https://wiki.gnucash.org/wiki/ObfuscateScript
2019-02-04 09:32:51 +01:00
Geert Janssens
0da0f7ada5 Bug 797011 - GnuCash 3.4 Crashes When Printing Checks with Custom Format
Check freeing was called at the wrong time.
2019-02-01 15:31:28 +01:00
Carsten Rinke
d048caeda3 improved logging for HTML table tests 2019-01-31 18:34:43 +01:00
Carsten Rinke
40a0bfd979 Bug796827 - Report HTML - it is not possible to suppress the document title
includes update of test-report-html.scm (and CMakeLists.txt)
2019-01-31 18:34:43 +01:00
Carsten Rinke
7e86037418 Bug796826 - Report HTML - not possible to suppress the document header 2019-01-31 18:34:43 +01:00
Carsten Rinke
412d797eae Bug796829 - Report HTML - HTML table rows are prepended not as list elements
includes update of test-report-html.scm (and CMakeLists.txt)
2019-01-31 18:34:43 +01:00
Carsten Rinke
59c78c2668 Bug796831 - Report-HTML - append table column correctly 2019-01-31 18:34:43 +01:00
Carsten Rinke
af0d7bd9f5 test-report-html.scm reformatted after review PR#391 (major update) 2019-01-31 18:34:43 +01:00
Carsten Rinke
b0c5381cee test-report-html.scm reformatted (cosmetic) 2019-01-31 18:34:43 +01:00
Carsten Rinke
c59157763f Bug787401 - Test for the report system - HTML Tests 2019-01-31 18:34:43 +01:00
Geert Janssens
aab9bb59cd Merge branch 'Bug796965' of https://github.com/Bob-IT/gnucash into maint 2019-01-31 18:11:29 +01:00
Geert Janssens
b8356cf56e Merge branch 'bugfix/python_examples' of https://github.com/rgreid/gnucash into maint 2019-01-31 17:23:10 +01:00
Geert Janssens
a23f124db8 Merge branch 'maint-fr-update' of https://github.com/christopherlam/gnucash into maint 2019-01-31 17:20:14 +01:00
Mike Alexander
62a4e73f7f Don't use GNC-DENOM-SIGFIGS when converting prices
to gnc-numeric values.
2019-01-28 19:25:50 -05:00
Mike Alexander
5bd7875437 Revert the part of 923b01e2 which reverses currency quotes less than 1.
Now that GnuCash uses 64 bit numbers in numerics this is not necessary.
It can store a number as small as 1e-9 with 9 significant digits.
2019-01-28 19:25:34 -05:00
Mike Alexander
df19244792 Fix the comments on double_to_gnc_numeric. GNC_DENOM_AUTO is allowed.
GNC_DENOM_AUTO
2019-01-28 19:24:26 -05:00
Mike Alexander
2820af7166 Make test-backend-dbi-basic build and run with libdbi 8.
This may not be the correct fix, but it is plausible and it
makes the test build and run.
2019-01-28 19:23:35 -05:00
Alex Aycinena
7d0adfd0c6 remove unnecessary KVPs and frames related to US Income Tax name and type 2019-01-27 15:58:46 -08:00
Alex Aycinena
69cc8fe282 scroll txf view to put line for selected account in center of view; doesn't work for first selected account but does for all subsequent delections. Will fix in later commit when I figure out why. 2019-01-27 13:02:19 -08:00
Alex Aycinena
307eb99057 bug 518833 - partially solves by not allowing multiple account selection; rest of bug is dupicate of 554391 2019-01-27 12:45:59 -08:00
Christopher Lam
37ae30dbff [fr.po] fixes thanks to benjub 2019-01-26 16:59:55 +08:00
Christopher Lam
83463a6f3c [fr.po] further tip-of-the-day translations 2019-01-26 16:59:55 +08:00
Christopher Lam
a975cedfe2 [fr.po] update translations 2019-01-26 16:59:55 +08:00
John Ralls
84d1c3645d Use NULL, not '\0', to set a char* argument to NULL. 2019-01-25 12:52:14 -08:00
John Ralls
f9f714c78d gnc_pricedb_nth_price: Clarify code and cache results.
Use built-in glib functions to retrieve the list of per-currency price
lists, concatenate them into a single list, instead of doing it all in
hand-rolled loops.

Sorting is preformed by the calling GncTreeViewPrice so this removes
sorting from gnc_pricedb_nth_price.

There's no concurrency concern because gnc_pricedb_nth_price is a
GUI callback and so must run in the GUI thread.
2019-01-25 08:49:03 -08:00
Alex Aycinena
fc15364326 remove unnecesary 'home' level in path for US Income Tax book tax information 2019-01-24 18:36:13 -08:00
John Ralls
3a48672763 Complete reversion of e81bcf6 in gnc-pricedb.c. 2019-01-23 17:54:29 -08:00
Christian Stimming
9069bace15 Fix unused return value error from e4836f3c
Re-introducing the fgets() call in e4836f3c that has been removed in
bf55c30 triggers the "ignoring return value of fgets, declared with
attribute warn_unused_result" error. The even better way is to actually
use the return value and check it for non-NULL because only then
we did a successful fgets call where we can use its result.
2019-01-20 20:39:20 +01:00
Robert Fewell
fbabc147bf Save the Account page filter setting to the state file
Use the newly created functions to save and restore the account filter
settings to the saved 'Account Hierarchy' section of the state file.
2019-01-20 12:43:52 +00:00
Robert Fewell
274dd2f8bc Save the Account filter settings for a Budget Page
Use the newly created functions to save and restore the account filter
settings to the saved Budget section of the state file.
2019-01-20 12:43:52 +00:00
Robert Fewell
d4c19efc8d Create two functions to save/restore the account filter settings
These functions allow the saving and restoring of the GncTreeViewAccount
 filter settings to the state file. Currently they are only saved if the
 page is left open when Gnucash is closed.
2019-01-20 12:43:52 +00:00
Robert Fewell
fec5b603e2 Bug796965 - Change the default to show unused accounts
Currently when you create a new budget, unused accounts are not shown
so change the default to match the Accounts TreeView.
2019-01-20 12:43:52 +00:00
John Ralls
020bc5371f Bug 797046 - Tools / Price Database / Currencies UI not working...
since 3.4.
2019-01-19 14:31:10 -08:00
John Ralls
e31f4c3f95 Fix unlocalized date in status bar.
It seems that std::locales created by boost::locale::generator are
not entirely compatible: If used to create a new locale with a facet
for boost::date_time one ends up with the C locale and the facet.

For the time being avoid the problem by using boost::locale to format
dates and times. std::chrono gets calendar functions in C++20 so we
can switch date-time backends once we can adopt it.
2019-01-19 13:41:17 -08:00
Geert Janssens
72ef48cbf2 Merge branch 'bugs_icv' of https://github.com/ekinonnakapito/gnucash into maint 2019-01-19 17:47:30 +01:00
Geert Janssens
f7173c341a Suppress a few more gtk deprecation warnings
For GtkAction and GtkTable.
2019-01-19 16:51:50 +01:00
Alex Aycinena
08704127d1 bug #796498 - Incorrect starting balance in TXF Report calculations 2019-01-18 20:19:56 -08:00
Christian Stimming
48988ac59a Update German translation 2019-01-18 23:52:51 +01:00
Christian Stimming
6f34995901 Usability improvements for Bayes editor window
Remove the "Are you sure" question as it is simply annoying but does
not help. Fix some string wordings to be more understandable.
2019-01-18 23:52:51 +01:00