Commit Graph

20566 Commits

Author SHA1 Message Date
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
Christian Stimming
b521658ce3 Online transfer: Do no longer force existence of local BIC code
The BIC code for SEPA transfer used to be mandantory, but turned optional
more recently and the local IBAN code is sufficient. Gnucash still
checked the local BIC code existence and forced the user to get it
from somewhere. This is no longer needed - local IBAN is enough.
2019-01-18 23:52:51 +01:00
Christian Stimming
47c35aeaf9 Online transfer and PIN/TAN entry: Entering of TAN must use normal visibility
The visibility of the entered content was set to FALSE (=invisible) always,
which was wrong for certain types of input as indicated by the GUI_INPUT_FLAGS.
This should now be honored and visibility set to TRUE (=visible) for
the correct flags.
2019-01-18 23:52:51 +01:00
Christian Stimming
417a012b78 Aqbanking import: Fix reconcile timestamps when importing balances.
Used to be start-of-day, but needs to be day-neutral.
2019-01-18 23:52:51 +01:00
Christian Stimming
75b6d14455 Speed-up of dealing with account_imap lists: Replace g_list_append with _prepend and subsequent _reverse.
This is glib's suggested way of dealing with GList in more optimized
way, as g_list_append will have to traverse the list until the end.
2019-01-18 23:52:51 +01:00
Alex Aycinena
c9bd68c658 Updated from version 41 to 42, although new codes not implemented yet because data not reliably available 2019-01-17 18:21:51 -08:00
Alex Aycinena
46b3e31acf Updated to include codes for version 42, although new codes not implemented yet because data not reliably available 2019-01-17 18:19:26 -08:00
Alex Aycinena
217289d037 Bug #796687, Tax entity name and type don't get saved. Change frame->set to frame->set_path to create missing frames. 2019-01-17 12:32:33 -08:00
Alex Aycinena
8f4f8a1dc4 Update US Income Tax information for 2018. Two forms haven't yet been published. If changes needed, will do in subsequent commit. 2019-01-17 12:15:51 -08:00
Rob Laan
d02c65e76a Fixes for bugs 797029 7970331 797030 in Import Customers & Vendors
797029 Import Customer & Vendors: blank name and company in import data row crashes GnuCash
797031 Import customer & Vendors: import can create customer and vendors without address data
797030 Import Customer & Vendors: several issues with the matching of data rows
2019-01-14 08:23:02 +01:00
Thomas Klausner
3ab5a2be52 Bug 797041 - enum confusion in qoflog. 2019-01-13 16:29:11 -08:00
Mike Alexander
e4836f3c58 Commit bf55c30 deleted the call to fgets that reads the file. 2019-01-12 01:39:33 -05:00
Geert Janssens
f3c8c040b1 Bug 796877 - test-stress-options fails 2019-01-09 17:29:48 +01:00
Rob Laan
e09d18590d Match BOM in bill/invoice import 2019-01-07 14:31:37 -08:00
John Ralls
b4fedff90e Provide a single static instance of C++ locale.
We can't use std::locale::global because all streams imbue it by
default and if it's not 'C' (aka std::locale::classic) then we
must imbue all the streams that we don't want localized, and that's
most of them.

Provides error checking for setting the C++ locale from the environment.
This is necessary both because the environment might have an invalid
locale, which would cause an unhandled exception crash.

On windows std::locale("") can't handle some Microsoft-style locale
strings (e.g. Spanish_Spain) so we use boost::locale's gen("") function
to set the locale--though even that can't handle a Microsoft-style
locale string with an appended charset (e.g. Spanish_Spain.1252) and
that's what glibc's setlocale(LC_ALL, NULL) emits.
2019-01-06 10:13:01 -08:00
John Ralls
cee97be8d4 Add GncDateTime::timestamp().
To provide a C++ implementation of gnc_date_timestamp and to avoid
using the expensive and localized GncDateTime::format().
2019-01-06 10:13:00 -08:00
Rob Reid
9be545f5ce Fixes for new 64-bit time setter/getters 2019-01-06 22:05:43 +08:00