Commit Graph

20860 Commits

Author SHA1 Message Date
Sicelo
07fbb46398
Update SZL section header
Clarify the reason for changing the symbol
2019-02-17 08:10:55 +02:00
Christopher Lam
817c3f4d6a Merge branch 'christopherlam-maint-bugfixes' into maint 2019-02-17 11:58:45 +08:00
Mike Alexander
d4af5244d0 Bug 797106: Do a better job of converting decimal prices to rationals.
Use the Scheme rationalize method to convert the decimal numbers
from Finance::Quote to ratinal numbers.  This avoids rediculous
precision like 8515625000000001/3906250000000000 for 2.18.
2019-02-17 11:58:15 +08:00
Michiel Brentjens
c6ac5e2c09 Update gnc-tree-view-split-reg.c
gcc version 8.2.1 20181127 (GCC) gave a warning pointing at the problem.
2019-02-17 11:58:15 +08:00
Christopher Lam
a4789fcac5 bugfix: fix crasher when loading saved-report with unknown choices.
If a saved-report with e.g. relative date, multichoice option is
unknown, the report would crash, and the Report-Options would
segfault. This commit fixes both: report-date defaults to 'today',
multichoice-options defaults to default-value.

Following this commit, if a report loads a saved-report or .gcm from a
future version, a gnc:warn will be emitted and the report will not
crash; it will use relative-date today. Multichoice will remain the
default value. Report Options will not segfault.

The user will be notified via a gnc:gui-warn dialog
2019-02-17 11:25:06 +08:00
Christopher Lam
a731c9ed9a [gnome-utils] add gnc:gui-warn/error/msg global functions
gnc:gui-[warn|error|msg] are new global functions.

By default they mirror gnc:warn/error/msg. However then gnome is
available, they will display appropriate warn/error/info dialog in
addition to outputting to console.
2019-02-17 11:24:57 +08:00
Mike Alexander
95aed30320 Bug 797106: Do a better job of converting decimal prices to rationals.
Use the Scheme rationalize method to convert the decimal numbers
from Finance::Quote to ratinal numbers.  This avoids rediculous
precision like 8515625000000001/3906250000000000 for 2.18.
2019-02-16 19:38:37 -05:00
Sicelo
86be3b9247
Update iso-4217-currencies.xml 2019-02-16 18:08:45 +02:00
Sicelo
96577ff922
Update iso-4217-currencies.xml
Fixing the 'local-symbol' property for the SZL currency from "L" to "E." See Bug 797105.
2019-02-16 01:10:09 +02:00
Laurent Bigonville
72296f910f data/accounts/fr_*: Add usage precisions for the common account template 2019-02-15 17:52:44 +01:00
Laurent Bigonville
36e93e39c7 data/accounts/fr_BE: s/chèque/courant 2019-02-15 17:43:57 +01:00
Laurent Bigonville
9f804bf844 Add accounts templates for French Belgium (fr_BE)
This is ATM a complete copy of the templates from fr_FR
2019-02-15 17:43:57 +01:00
Laurent Bigonville
accaf13f1f data/accounts/fr_{CH,FR}acctchrt_common.gnucash-xea: Add missing comma 2019-02-15 17:43:57 +01:00
Laurent Bigonville
8776580dcf data/accounts/fr_{CH,FR}/acctchrt_spouseretire.gnucash-xea: Add missing words 2019-02-15 17:43:57 +01:00
Geert Janssens
f22e30ba9e Merge branch 'maint' of https://github.com/brentjens/gnucash into maint 2019-02-13 18:47:06 +01:00
milotype
cf3f266494
Initial release of README-hr.win32-bin.txt
ignore prior file
2019-02-13 16:01:54 +01:00
milotype
0be768225e
Initial release of croatian accounts files
Ignore prior files in hr_HR folder. Actually, ignore the whole "hr_HR" folder.
2019-02-13 15:54:36 +01:00
milotype
3c52c5015a
Initial release of hr.po (croatian translation)
ignore prior file
2019-02-13 15:45:56 +01:00
milotype
4b333a2a1c
Initial release of the croatian glossary files
ignore prior file
2019-02-13 15:44:34 +01:00
Christopher Lam
65bfeaf5de [date-utilities] bugfix: date-intervals produces good month deltas
Instead of recursing the date, we calculate the next month using an
index-based multiplier, and apply modulo/remainder as appropriate to
determine the next month/year.

Then we attempt to create new mktime, and if the resulting mktime's
month is not as expected, reduce the mday by 1 until resulting month
is correct. This fixes monthly intervals for end-of-month days.

Test via monthly/quarterly deltas, and also includes leapyear
calculation.
2019-02-13 22:23:44 +08:00
Christopher Lam
74d4be19dc [transaction] bugfix: date-grouping must allow indenting
Indenting checkbox was erroneously disabled when: sortkey = date,
date-subtotal = not 'none.

This commit will allow indenting option in the above case.
2019-02-13 22:23:44 +08:00
Christopher Lam
8f2776dabd [transaction] bugfix: subtotal-table + subtotals-only = hide table
It is intuitive that if the user wishes to show the subtotal-table,
and hide the transactions, then both the main (hidden) transactions
and subtotals must be hidden as well.

https://gnucash.uservoice.com/forums/101223-feature-request/suggestions/36565759-add-a-transaction-report-option-to-show-subtotal
2019-02-13 22:23:44 +08:00
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
milotype
08c131510b
Initial release of README-hr.win32-bin.txt
Croatian translation of the "README.win32-bin.txt" file

Note:
In the bottom of the english file, there is the following sentence: "This is the GnuCash 2.2.x README file for Windows binary packages."

Maybe it would be better to simply drop this sentence, as it points to an "old" GnuCash version. Or at least drop the information about the version. At present GnuCash is version 3.4.
2019-02-05 00:15:12 +01:00
milotype
0609d277aa
Initial release of croatian accounts files 2019-02-04 22:45:52 +01:00
milotype
6624d3ff4d
Initial release of hr.po (croatian translation) 2019-02-04 22:42:22 +01:00
milotype
29ad4e177d
Initial release of the croatian glossary files 2019-02-04 22:38:12 +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