Commit Graph

17639 Commits

Author SHA1 Message Date
Geert Janssens
b4be76589d Travis - skip testing on trunk branch
This is an alias for master, so it would only duplicate that test run.
2017-01-13 15:14:32 +01:00
Geert Janssens
3c57c44078 Enable google test on travis
This enables a number of additional unit tests.
Unfortunately several of them fail on travis and need
some more attention.
2017-01-13 14:45:15 +01:00
Geert Janssens
a71d8417c6 Fix signedness of certain gmock based tests 2017-01-13 14:44:43 +01:00
John Ralls
1ce1aff014 Prevent leaking exceptions from gnc_dmy2timespec_neutral
And test out-of-range values in other functions for good measure.
2017-01-12 16:55:45 -08:00
John Ralls
3a794e75be Add note about setting GTEST cmake variables.
Because I keep forgetting them...
2017-01-12 16:54:11 -08:00
John Ralls
176bc89e22 Fix stray line from maint merge. 2016-12-18 12:29:43 -08:00
John Ralls
4979eb62a7 Merge branch 'maint' after release 2.6.15. 2016-12-18 12:14:00 -08:00
John Ralls
1ef17e6e16 Release 2.6.15 2016-12-17 11:11:56 -08:00
John Ralls
bbb5e56e30 Update AUTHORS and DOCUMENTORS. 2016-12-17 10:27:09 -08:00
John Ralls
21bd13b91a Update Danish and Serbian translations from the Translation Project. 2016-12-17 09:45:21 -08:00
Phil Davis
2cecc2934d README typo 2016-12-17 09:29:23 -08:00
John Ralls
38527d08f1 Bug 775912 - Tips of the Day shows content only once very 3 times
Remove extra line-feeds from CMake generation of tips_of_the_day.list. They're unneeded and mess up windows parsing the file.
2016-12-13 11:53:23 -08:00
John Ralls
3ed1c7616d Remove QIF importer error “Dates earlier than 1970 are not supported”.
Because they are. The parser can’t figure out years earlier than 1930,
but that’s not really a major concern.
2016-12-11 17:21:28 -08:00
John Ralls
54beffd936 Bug 685329 - Crashes on non-existent date
Log an error instead of crashing. The transaction will be imported with
today’s date.
2016-12-11 16:35:46 -08:00
John Ralls
78b41f7ac1 Bug 772369 - Replace use of guile's internal date/time functions
with our own implementation of gnc-date.
2016-12-11 15:23:55 -08:00
John Ralls
ad208810f0 Bug 773808 - Export Report Crash
It's possible for the GtkFileChooserDialog to return a NULL filename,
so defend against that.
2016-12-11 10:01:16 -08:00
John Ralls
ad1ba56105 Bug 772484 - Segfault on Transaction edit
Fix a couple of places where we can pass a NULL GDateTime* if the
database contains a bad date.
2016-12-10 15:08:03 -08:00
John Ralls
fcd817a6bf Bug 774237 - FTBFS under some timezones (eg. GMT-14)
Fix the neutral offset calculations so that the fixed UTC time doesn't
change the date in the timezones near the international date line. Divide
offset by 60 instead of 3600 so that the Chatham Islands (GMT-12:45 with DST)
use 9:59 instead of 10:59 like the rest of NZ (GMT-12).
2016-12-10 14:26:16 -08:00
John Ralls
fc3dc3e7a8 Bug 775385 - Confusing error message which includes the text "file file"
Remove the scheme from file URIs before displaying
error messages and change the one file error message that can show up in
database dialogs to say "file/URI foo" instead of "file foo".
2016-12-09 16:09:33 -08:00
John Ralls
7b7c780a36 Bug 775368 - "Average cost" price source problem
This series of changes modifies the Average Cost report function to
finding the average amount-weighted price of all transactions recording
a "buy" of the report commodity so that the correct amount is now
reported without the need of a capital gains split--though one is still
needed to get the Trial Balance report to balance.

Since book-wide averages are not what most users expect, it also changes
the default pricing option on all reports to "Nearest in Time", which is
what most confused users have selected after asking about it in the
mailing lists. This also fixes
Bug 340991 - Default price source for reports not good.
2016-12-09 10:34:02 -08:00
John Ralls
332bd3bb3e Change the default price-source from Average Cost to Nearest in Time.
Average cost is a counter-intuitive calculation for most users; Nearest in
Time is generally reported to produce the results that users expect.
2016-12-09 10:33:28 -08:00
John Ralls
98697a1e23 Calculate rates only for buy transactions in the report commodity for cost totals.
Reverse the direction of splits with negative amounts as they represent a
sale of the transaction commodity. Accumulate buys and sells of commodities
into separate comm-lists and use only the buy-side ones for the report-commodity
in the calculation.
2016-12-09 10:22:06 -08:00
Geert Janssens
feee7ca6a4 Add code to keep the chart dynamically resizable when exported 2016-12-09 12:33:37 +01:00
Geert Janssens
85e9c64b13 Drop DOCTYPE header altogether.
It makes the jqplot charts behave poorly. And looking at current
websites on the net, most don't specify this header any more.
2016-12-09 12:32:48 +01:00
John Ralls
d9dbc3de04 Single functions for gnc:make-exchange-alist and gnc:get-exchange-totals.
Extract helper functions and add a parameter, eliminating gnc:make-exchange-cost-alist
and gnc:get-exchange-cost-totals.

This makes it more clear the differences between the two algorithms and
makes it easier to correct the algorithm for the cost case.
2016-12-06 16:27:39 -08:00
John Ralls
0829d6dc03 Move checks for no split amount and trading accounts to get-match-commodity-splits.
They apply to all price retrievals.
2016-12-06 16:27:38 -08:00
John Ralls
5803c141c1 Clean up whitespace in commodity-utilities.scm. 2016-12-06 16:27:38 -08:00
John Ralls
1f30e2dacb Merge branch 'maint' 2016-12-06 16:26:25 -08:00
Ryan Tucker
57e7ba869d fix missing chmod +x in configure.ac 2016-12-06 15:30:38 -08:00
Robert Fewell
5c6383e426 Update the saved reports to 2.8 and old to 2.4 2016-12-06 10:38:25 +01:00
Robert Fewell
ac5fb71369 Missing comma in tm answers structure 2016-12-06 10:38:24 +01:00
Robert Fewell
ad07d2e33f Fix error when closing application
There are errors when closing the application to do with gnc_uri when
trying to create a filename from an empty book_id value to update the
page title. Added a test for empty book_id as well as it being null.
2016-12-06 10:38:23 +01:00
Robert Fewell
7f4b656815 Use new options-fancy-date to retrieve date format
Use the new function so we do not need to test for valid format
2016-12-06 10:38:22 +01:00
Robert Fewell
354694b744 Update the Fancy Date Format
When the format is set to unset, the kvp data will now be removed and
added a function to retrieve the 'Fancy Date Format' and test for it
being valid, if not retrieve the preference date format.
2016-12-06 10:38:20 +01:00
Robert Fewell
03a11451bd Add the ability to delete a path from options
There is a requirement to delete the "Fancy Date Format" book KVP data
when set to unset. This was not possible as is as it would delete all
the 'Business' options. This is still possible by passing a null list.
2016-12-06 10:38:19 +01:00
Robert Fewell
7d927cb830 Add missing liststore to preference list 2016-12-06 10:38:18 +01:00
Robert Fewell
1295e00b94 Change daily-reports.scm to use new plot size 2016-12-06 10:38:17 +01:00
Robert Fewell
66023fe08e Change price-scatter.scm to use new plot size
Change price-scatter.scm to use new html-scatter.scm for new plot size
2016-12-06 10:38:16 +01:00
Robert Fewell
70ed816449 Change net-linechart.scm to use the new plot size 2016-12-06 10:38:15 +01:00
Robert Fewell
e98b5632a0 Change net-barchart.scm to use new plot size 2016-12-06 10:38:14 +01:00
Robert Fewell
bd3ed1e59a Fix general-ledger.scm
An option had changed in the transaction report that this one uses.
2016-12-06 10:38:13 +01:00
Robert Fewell
d02245267f Change average-balance.scm to use new plot sizes 2016-12-06 10:38:13 +01:00
Robert Fewell
b060520859 Change account-piecharts and html-piechart
Change account-piecharts.scm to use the modified htm-piechart.scm that
now can use plot size percentages.
2016-12-06 10:38:12 +01:00
Robert Fewell
211b3ab10e Fix account-piechart.scm for guile 1.8.x 2016-12-06 10:38:11 +01:00
Robert Fewell
7f0c912f93 Budget Chart changes
There was no display option but the file indicated that there might be
so created one and added the plot size to it.
2016-12-06 10:38:09 +01:00
Robert Fewell
9e7f10d2c0 Update category-barchart to reflect changes
Update category-barchart.scm to use new pair for plot width and height
setting default to be both 100% of view. Also updated html-barchart.scm
and html-linechart.scm to use these new values.
2016-12-06 10:38:09 +01:00
Robert Fewell
1f8c413d3f Change plot-size-option to use a pair
This change allows the use of pair to specify plot sizes. They can be a
fixed pixel amount or a percentage.
2016-12-06 10:38:07 +01:00
John Ralls
f382695345 Bug 775567 - Importing QIF file from PayPal crashes GnuCash 2.6.14 on Windows XP service pack 3
Guile-1.8 doesn't know about BOM so check for one and strip it if it's there.
2016-12-04 12:36:07 -08:00
John Ralls
755c42a087 Prevent crash when there's an error loading a qif import file. 2016-12-04 12:36:07 -08:00
John Ralls
4e2b2049fc Stop saving all of the currencies in xml files.
Regression from making KVP private.
2016-12-03 12:39:12 -08:00