Commit Graph

20544 Commits

Author SHA1 Message Date
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
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
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
John Ralls
793fb1a3ed Bug 797013 - Import Customers & Vendors: error in CMakeLists.txt...
- causes incomplete project in Xcode.
2019-01-05 06:52:13 -08:00
John Ralls
cec3f6031e Fix broken compile of test-gnc-date.c on Ubuntu 14.04. 2019-01-04 17:01:38 -08:00
John Ralls
9fa7b7f940 Implement a faster date-time serialization function.
Has the side effect of recording all date-times in XML files in UTC
instead of local time with a timezone.
2019-01-04 16:34:33 -08:00
John Ralls
137c920d06 Merge Chris Carson's 'dateFormat' into maint. 2019-01-04 15:50:39 -08:00
John Ralls
a65dd6cc25 Merge Chris Carson's 'refactor-Scrub-c' into maint. 2019-01-04 15:49:42 -08:00
John Ralls
7a13398e4e Fix typo. 2019-01-03 08:45:43 -08:00
John Ralls
5d8f68857a Bug 797002 - Program crashes when exporting tax data in txf format.
Don't shadow keywords!
2019-01-03 08:44:11 -08:00
Christopher D. Carson
2b69278650 Re-coded for cached locale.
Testing notes:  Based on the averages of 3 runs, the net
user CPU to save the XML file I use is:
10.2 seconds without this change
7.6 seconds with this change

In my environment the first call to the format routine
in question, the call that sets the cache value, is at
the end of the XML load.
2019-01-01 20:08:47 -06:00
Christopher D. Carson
0e37e059d5 Fix XML load CPU hotspot: Scrub.c xaccTransScrubPostedDate
The refactoring provides roughly 10% reduction in user CPU
use for XML file load by moving an expensive function
to within an if-clause where the result is used.  The diff looks
like a full re-write but only the if statements, indenting,
and commentary changed.
2019-01-01 19:41:16 -06:00
John Ralls
3a105f0728 Catch boost::locale character-conversion exceptions.
Partial cause of the crash reported in Bug 797002.
2019-01-01 13:12:39 -08:00
Christopher Lam
95bee405cf [test-transaction] fix a test which was hardcoded to 2018.
This test was hard-coded to pass in 2018. Fix.
2019-01-02 00:05:34 +08:00
Christopher Lam
cc3bb4ef20 [report-utilities] deprecate gnc:account-get-pos-trans-total-interval
this function is only used in trial-balance. move function locally and
deprecate exported function.
2019-01-02 00:01:18 +08:00
Christian Stimming
0f53b6c82f Speed-up of txn match dialog: Suspend GUI refresh during deletion of selected lines.
This gives a significant speed-up when selecting multiple lines for deletion.
Otherwise the full GUI refresh would be run for each single selected
line, which sucks if the accounts and register windows contain a lot
of txns. Better do that once after we are finished with all line deletions.
2019-01-01 13:28:22 +01:00
Christian Stimming
eb9e45bc20 Sorting speed-up: Cache the bool value of Transaction's is_closing property.
This value is queried on each comparison of split or txn sort function,
which means it is called quite a lot. Avoiding the KVP lookup of this
property gains a lot in terms of CPU cycles.
2018-12-31 14:50:36 +01:00
Christian Stimming
1eed3db5e7 Some (very minor) translation string improvements.
Fix superfluous space.
Unify case sensitivity in string that appears multiple times.
2018-12-30 22:23:04 +01:00
Christian Stimming
83ae800645 Update German translation. 2018-12-30 22:23:01 +01:00
John Ralls
efee68a315 Release GnuCash 3.4 2018-12-30 07:38:18 -08:00
John Ralls
ae3c2bff77 Update translations from the Translation Project.
Updated Languages: Chinese (Simplified), Farsi, Japanese, Ukrainian.
2018-12-30 07:38:18 -08:00
Christian
596d0336c6 Update German translation. 2018-12-29 22:26:30 +01:00
John Ralls
d3dd81632d Merge Chris Lam's 'scheme-progress' into maint. 2018-12-29 10:19:58 -08:00
Christopher Lam
af6103ba1d Bug 796994 - Unable to generate Tax Report because of pricedb error
Fix typo in fee589b28c
2018-12-30 00:58:13 +08:00
Christopher Lam
145779866c [report-system] deprecate (gnc:account-get-total-flow)
This function is only used in equity-statement.scm -- best move it
there and deprecate the exported function.
2018-12-29 23:58:22 +08:00