Commit Graph

19107 Commits

Author SHA1 Message Date
christopherlam
b6ec61fa45
add unittest for bugzilla 790526 2017-12-20 07:58:03 +08:00
christopherlam
76921b5e28 Fix -DWITH_SQL=OFF Build. 2017-12-19 15:40:33 -08:00
Robert Fewell
0186bc1c0c Change the relative path to a full one for rpath 2017-12-19 15:40:33 -08:00
John Ralls
7c57ad18cd Fix date offset error in datetime test. 2017-12-19 14:34:10 -08:00
John Ralls
baad2097a7 Add tests for GMT and GMT+7 timezones. 2017-12-18 10:15:05 -08:00
John Ralls
5af21dfad8 Fix timezone constructor crash when zone file has no transitions. 2017-12-18 09:48:17 -08:00
John Ralls
0026b10851 Merge branch 'maint' into unstable 2017-12-17 13:00:00 -08:00
John Ralls
c1b5e6c8df Release 2.6.19 2017-12-16 15:28:56 -08:00
John Ralls
70fe66c9fd Fix python tests when building from tarball. 2017-12-16 15:11:14 -08:00
John Ralls
5da9e2f4c9 Update Dutch and Serbian translations from the Translation project. 2017-12-16 11:28:24 -08:00
John Ralls
8efc0e7bdc Merge Rob Gowin's Partial Fix for Bug 787497 into maint. 2017-12-16 10:54:03 -08:00
John Ralls
51fab91ffe Add test-flat-bayes to autotools build. 2017-12-16 10:38:07 -08:00
John Ralls
4ce47b898d Add minimum version to feature and fix copy-paste error in test-flat-bayes.
As recommended by Geert Janssens.
2017-12-16 10:35:07 -08:00
John Ralls
e1d3385428 Handle mid-pacific timezones in date-sensitive tests. 2017-12-15 10:13:41 -08:00
John Ralls
ac0d335c4f Revert post-construction adjustment of ldt for DST.
It was incorrect.\nMake corresponding adjustment to far eastern offset in neutral time adjustment.
2017-12-15 10:12:01 -08:00
Robert Fewell
5aa84e13d6 Change the way the import settings are handled 2017-12-14 20:37:12 +00:00
John Ralls
a5134f91e1 Fix neutral time for consistent dates in mid-pacific time zones.
Echoes a change made some time ago in 2.6 where the time is adjusted from 10:59Z in time zones where that won't be the same date.
2017-12-12 21:02:11 -08:00
John Ralls
aeb2e65ff1 Fix posted-date scrub incrementing the day in central pacific timezones. 2017-12-12 21:02:11 -08:00
John Ralls
1c8c53a861 Remove (unused because of an error) parse-to-tm string timespec construction. 2017-12-12 21:02:11 -08:00
John Ralls
6db0820771 Fix offset handling in GncDateTime struct tm ctor, gnc_mktime, & gnc_timegm.
Tests now pass in all TZa from Honolulu to New Zealand.
2017-12-12 21:02:11 -08:00
Geert Janssens
de4d1e9859 Add infrastructure to handle preference schema migrations and use it to replace one preference
The preference schema migration collects all schema mutations that can occur
when upgrading to a newer gnucash version. The old gconf to gsettings conversion is
integrated in this system as well. Newer schema mutations will happen based on version
number upgrades though.

The preference that got replaced is "use-theme-colors". Based on discussion in bug 746163
(https://bugzilla.gnome.org/show_bug.cgi?id=746163) and gnucash-docs PR#105
(https://github.com/Gnucash/gnucash-docs/pull/105) this has been replaced with
"use-gnucash-color-theme" with inverted meaning. The old option is kept around for one or
two major release cycles to allow seamless conversion.
2017-12-11 21:56:23 +01:00
Robert Fewell
ba5ca5bd55 Remove surplus statement 2017-12-11 09:53:20 +00:00
John Ralls
9dc66c0b7d Fix the Mac install_name_dir to point at CMAKE_INSTALL_FULL_LIBDIR.
Instead of CMAKE_INSTALL_LIBDIR; it needs to be an absolute path.
2017-12-10 13:01:32 -08:00
John Ralls
c0659c8e2b Bug 791422 - gnucash 2.7 no longer opens sqlite3...
as it doesn't load proper backend.
The cause was that the libdbi-driver path in CMakeLists.txt was wrong
and GNC_DBD_DIR was being set unconditionally in etc/gnucash/environment
with an invalid path.
2017-12-10 12:51:24 -08:00
Robert Fewell
0534ba4f8b Update file with changes for transient dialog changes 2017-12-10 11:59:40 +00:00
Robert Fewell
8ee6783b4b Replace magic numbers used in std::get... with values from enum 2017-12-10 11:58:09 +00:00
Robert Fewell
43f1b2fde0 Merge branch 'prices-in' of /mygit/gnucash into prices-in 2017-12-10 10:24:07 +00:00
Robert Fewell
288563c25e Add a test for empty values
Some csv values are allowed to be empty based on options selected so
add a test for this otherwise all values are required.
2017-12-10 10:23:47 +00:00
Robert Fewell
16714a8c5b Replace date parse function with one from gnc_datetime 2017-12-10 10:23:47 +00:00
Robert Fewell
ee2f301789 Make changes for Gtk3 compatibility 2017-12-10 10:23:47 +00:00
Robert Fewell
1aa3601e01 Pot file changes for new files and settings rename 2017-12-10 10:23:47 +00:00
Robert Fewell
71bf7d01fd Rename gnc-csv-trans-settings.* to gnc-csv-import-settings.*
Change the name of the import settings files as they do not just deal
with transactions and all associated required changes.
2017-12-10 10:23:47 +00:00
Robert Fewell
644a0aa06f Reorder the create price procedure. 2017-12-10 10:23:46 +00:00
Robert Fewell
62bbe4f951 Add the ability to test from_commodity and to_currency being the same.
To cover all combinations we need to test across the combo's and also
the table entries when appropriate columns are set. Also need to force
a reparse if any of the options change.
2017-12-10 10:23:46 +00:00
Robert Fewell
aff1c0c5a6 Add a test for from_commodity not being the same as to_currency 2017-12-10 10:23:46 +00:00
Robert Fewell
61f860bcfc Various changes to comments in source files and displayed text. 2017-12-10 10:23:46 +00:00
Robert Fewell
1bb2d1dc38 Change the way commodity and currency combo's are shown.
Use commodity print name to show in the combo's and use a hidden field
to sort the list grouping by namespace. Also alter the way these
settings are saved.
2017-12-10 10:23:46 +00:00
Robert Fewell
caba8c4330 Minor changes and tidy up 2017-12-10 10:23:46 +00:00
Robert Fewell
3a3c2cba9c Change the settings file to save and load price settings.
Added a setting type to distinguish between TRANS and PRICE settings so
it can load a specific settings type and added the price save and load
options.
2017-12-10 10:23:46 +00:00
Robert Fewell
3c18b80634 Fix some errors in conversion of some function names
Some function names did not get converted to a price equivalent and
reorder some statements.
2017-12-10 10:23:46 +00:00
Robert Fewell
16845c3a20 Remove duplicated function 2017-12-10 10:23:46 +00:00
Robert Fewell
1e31db74d1 Made changes to preset column types to align with other changes
These changes are to align with the changes to column types and also the
 basic setup of the new commodity from and currency to combo's. More
 changes will follow to make the saving and loading work properly.
2017-12-10 10:23:46 +00:00
Robert Fewell
8f3e175fb2 Add option to specify Commodity from and Currency to for whole file
Added two combo's to allow user to specify a Commodity from and Currency
 to for the whole file. Also reduced the property types to four and
 aligned all the commodity and currency variables.
2017-12-10 10:23:46 +00:00
Robert Fewell
3279973329 Some text changes 2017-12-10 10:23:46 +00:00
Robert Fewell
f2c78102e0 Remove not required account update 2017-12-10 10:23:46 +00:00
Robert Fewell
3cfa9d05ba Add CSV Price importer assistant files
These file are largely based on the csv transaction importer.
They are just the start for subsequent changes.
2017-12-10 10:23:46 +00:00
Robert Fewell
404bc1e329 Rename function gnc_csv_price_col_type_strs to gnc_price_col_type_strs 2017-12-10 10:23:46 +00:00
Robert Fewell
bec1fbd1a0 Add price import files for the csv price importer
These files are largely based on the csv transaction importer and with
minimum of changes to settings files.
2017-12-10 10:23:46 +00:00
Robert Fewell
17d8d424a0 Add property files for the csv price importer
These files are largely based on the csv transaction importer
2017-12-10 10:23:46 +00:00
John Ralls
ec9f60d3fd Test more thoroughly gnc-timezone's parsing of the zoneinfo database.
Then fix the resulting problems.
2017-12-09 15:37:16 -08:00