Commit Graph

17600 Commits

Author SHA1 Message Date
Rob Gowin
2c268ba09c Allow HTMLHELP_DIR to be specified on cmake command line 2016-07-14 21:05:32 -05:00
John Ralls
6e3fafedba Remove superflous use of std::stringstream. 2016-07-14 19:27:06 +00:00
John Ralls
01c21da323 Fix wrong PWARN calling signature. 2016-07-12 16:57:01 +00:00
Mike Evans
cc1b68a329 Bug 756416 - CSV data with Posted information will always have last invoice not posted.
When importing the last line of the CSV the gtk_tree_model_get() never happens
and the following compare uses the previous value of new_id, which is now = id,
so the last invoice is never posted.

Set new_id = Null before gtk_tree_model_get() to ensure processing the last line.
2016-07-12 15:08:09 +01:00
John Ralls
c11185e929 Use the right value to determine if the zone has a daylight time.
It's not Daylight offset.
Also catch the now much less likely exception.
2016-07-11 01:28:21 +00:00
John Ralls
43a7cd096e Merge branch 'maint' 2016-07-08 16:36:10 +00:00
John Ralls
6ad8ff3b4e Tweak version.cmake to work on Windows.
Cmake's execute_process doesn't use a shell unless you tell it to.
2016-07-08 16:35:39 +00:00
John Ralls
82d9b9d7cc Merge branch 'maint' 2016-07-05 10:18:47 -07:00
John Ralls
b64fe864e9 Make CMake use the same scm-revision program as Autotools.
So that the Win32 build script has the right file name to copy to code's download folder.
2016-07-05 09:56:11 -07:00
John Ralls
5db6419cb6 Merge branch 'maint' 2016-07-03 09:05:01 -07:00
John Ralls
a1b574af4f Clear the GDate before use.
If the transaction doesn't have the gdate-posted slot and the random
junk left on the stack where date lives happens to make a valid gdate
then timespec_to_gdate won't be called and a bogus date will be returned.
2016-07-03 08:56:52 -07:00
John Ralls
344de4eb37 Merge branch 'maint' 2016-07-03 08:53:04 -07:00
John Ralls
51e29e7836 Bug 137017 - date of transaction change with time zone change
First step: Change the timestamp to 11:00 UTC instead of midnight local,
adjusting by an hour or two if the local timezone is one near the
International Date Line to keep the date from flipping around.

Scrub all old entries to make current files correct.

Note: This effectively disposes of the distinction of close-book transactions
having a noon instead of midnight timestamp as a way to distinguish them
from regular transactions, but that distinction doesn't seem to be used;
xaccTransIsCloseBook() is used instead.
2016-07-02 16:12:56 -07:00
John Ralls
6a81738e96 Don't override optimization flags in CMakeLists.txt. 2016-07-02 16:12:56 -07:00
Geert Janssens
704bc8352d When default tax table is 'None', set a new invoice/bill entry as not taxabl by default as well.
This slightly changes the semantics of a 'None' default tax table
from 'taxable but no tax details given'
to 'not taxable'.
While not exactly the same the former is a highly unlikely
situation, where the latter is more common and hence makes
more sense. In the rare case a user does want to express
the old semantics this is still possible by explicitly
creating a tax table without any details.
Note this only influences newly entered entries. It has
no influence on existing ones.
2016-07-02 17:39:19 +02:00
John Ralls
cf735d7304 GCC-4.9 doesn't have the C++14 initializer list fix. 2016-07-01 15:02:47 -07:00
John Ralls
5547337e05 Enable Google Tests under CMake. 2016-07-01 15:01:11 -07:00
John Ralls
4be4404575 MinGW doesn't support stoi, use atoi instead. 2016-06-30 14:10:43 -07:00
John Ralls
9a8ed9323c Merge branch 'maint' 2016-06-28 16:22:53 -07:00
John Ralls
77988a72f5 Fix incomplete function name from 74fa556. 2016-06-28 15:27:01 -07:00
John Ralls
6fe4b8ff8e Reset release date to 28 June. 2016-06-27 21:40:24 -07:00
John Ralls
74fa556286 containsString wasn't introduced until OS X 10.10. 2016-06-27 21:38:35 -07:00
John Ralls
ddf84d0725 Release 2.6.13 2016-06-25 12:04:40 -07:00
John Ralls
9303d7dd0c Update translations from the translation project.
Updated: Dutch, Serbian
2016-06-24 15:47:42 -07:00
John Ralls
53b4526262 Remove automatch_store_transactions() from import-main-matcher.
There hasn't been a clist to iterate through since 2002, calling
gnc_import_TransInfo_refresh_destacc immediately after
gnc_import_TransInfo_set_destacc(...TRUE) is a no-op, and refresh_model_row
gets called immediately after run_account_picker_dialog_returns.

As a side benefit this might fix bug 757078.
2016-06-23 14:50:36 -07:00
John Ralls
72f630e8e3 Bug 760021 - File "Save As" to an existing file...overwrites without warning.
Save_may_clobber_data was looking at the wrong fullpath.
2016-06-23 09:41:51 -07:00
John Ralls
d3933f7c83 Bump CMake version to current. 2016-06-23 09:41:48 -07:00
John Ralls
8291c2991c Bug 761672 - Transfer made to placeholder account 2016-06-22 16:33:16 -07:00
John Ralls
9c71a6cc64 Bug 764248 - saved-reports-2.4-backup line endings unconventional 2016-06-22 16:25:55 -07:00
goodvibes2
2d68c81575 Update README to refer to wiki Submitting_Patches as per github
discussion re this file.
2016-06-22 22:00:36 +02:00
John Ralls
1b3f711287 Bug 748983 - Crash after opening money transfer dialog twice
Prevent re-entrance by checking that the static pointers, the second
freeing of which caused the crash. Set said pointers to NULL after
freeing them to make the dialog ready for the next invocation.
2016-06-22 12:47:26 -07:00
goodvibes2
5ed887715b Bug 637004 Optionally allow customer and vendor address info to display
Use an internal option to hold receivable/payable flag,
  remove trailing spaces.
2016-06-21 18:34:00 +02:00
goodvibes2
3e37be8144 Bug 637004 Optionally allow customer and vendor address info to display
in the Receivable Aging and Payable Aging reports so can be copied
  and pasted into a spreadsheet for use in mail merge.
2016-06-21 18:33:58 +02:00
John Ralls
71297be88e Fix Travis test failure in gnc_iso8601_to_timespec_gmt.
Can't reproduce failure on local systems, so this is a bit of a shot in the dark.
2016-06-20 16:11:13 -07:00
John Ralls
2375270eb7 Fix gnc_iso8601_to_timespec_gmt test failure.
Triggered by colon in the zone string.
2016-06-20 15:29:21 -07:00
John Ralls
a6da796c94 Bug 767824 - Some UTC timezones incorrectly recognized on Windows 7
Reset minutes-only timezones to +0000 (UTC) and adjust the time
according to the time zone error.
2016-06-20 13:06:26 -07:00
Alex Aycinena
3ded9f9b56 Book-Currency Feature step 5
Save a default gain/loss account in a book KVP and clean up some other book-currency items.

The changes made are:

	app-utils/gnc-ui-util.c & h - define new functions:
            gnc_book_get_book_currency_name,
            gnc_book_get_default_gain_loss_acct;
        reflect changed function names: qof_book_get_book_currency_name,
            gnc_valid_policy_name
	app-utils/options.scm - reflect changed function name: gnc-valid-policy-name
	app-utils/test/test-gnc-ui-util.c - include tests for gnc_book_get_default_gain_loss_acct;
        reflect changed function name: gnc_book_get_book_currency_name
	engine/policy-p.h - add policy name, description and hint to policy structure
	engine/policy.c & h - simplify gnc_get_valid_policy_list & define new functions:
            gnc_valid_policy, PolicyGetName, PolicyGetDescription,
            PolicyGetHint, xaccGetLIFOPolicy
	gnome-utils/dialog-options.c - conform to changes to gnc_get_valid_policy_list
        and use new function gnc_cost_policy_select_new
	gnome-utils/dialog-utils.c & h - define new function: gnc_cost_policy_select_new
	libqof/qof/qofbook.cpp & h - define new property: PROP_OPT_DEFAULT_GAINS_ACCOUNT_GUID
        and new function: qof_book_get_default_gain_loss_acct_guid
        changed function name: qof_book_get_book_currency_name
	libqof/qof/qofbookslots.h - define new option: OPTION_NAME_DEFAULT_GAINS_LOSS_ACCT_GUID
	libqof/qof/test/test-qofbook.c - reflect changed function names: qof_book_get_book_currency_name,
            gnc_valid_policy_name; add test for qof_book_get_default_gain_loss_acct_guid
2016-06-17 13:48:03 -07:00
John Ralls
2bbc1a193d Merge branch 'guid_header' 2016-06-09 15:29:45 -07:00
John Ralls
949ff816d6 Merge branch 'session-refactor' 2016-06-09 15:29:10 -07:00
John Ralls
ce190e3485 Some minor fixups to resolve clang warning and errors from session-refactor. 2016-06-09 15:28:39 -07:00
lmat
1c00937abe Clean up guid usage.
Now that there is a subclass of boost::uuids::uuid, that subclass can be
used for GncGUID implementation. This removes the need for the untidy
casts to/from bost::uuids::uuid, and simplifies the logic in many areas.
2016-06-09 15:07:54 -07:00
lmat
293a286693 Add C++ header for guid.cpp and tests. 2016-06-09 15:07:54 -07:00
lmat
74800e18f3 Remove unused, left over typedef 2016-06-09 15:04:54 -07:00
lmat
0ee7e61b48 Adding googletest cases for c++ qofsession struct 2016-06-09 14:51:21 -07:00
lmat
3063c87346 Replace C qofsession struct with c++ qofsession struct 2016-06-09 14:51:21 -07:00
lmat
557a5e2f2d Check the appropriate locations for gmock and gtest sources
Although we test libgtest_main, we don't test for libgmock_main. This
shouldn't be necessary since gmock was absorbed by gtest in upstream,
so I'm not planning on working hard to correct this problem robustly.
We'll just check for the source files in the other location where they
might be.
2016-06-09 14:51:21 -07:00
lmat
3390886051 Corrected "misleading" indentation
gcc 6.1.1 throws an error because with 8-space tabs, it looks like a
line is in an if statement when it isn't.
2016-06-09 14:51:21 -07:00
Alex Aycinena
9f3dc0c826 Merge maint. 2016-06-06 16:28:04 -07:00
Alex Aycinena
c0086e15e9 Partially revert commit B555f495 and solve problem more simply by instead resequencing prior statements. 2016-06-06 15:17:55 -07:00
Carsten Rinke
58b35eb7cd Bug763257 - add line charts to Income/Expense/Asset/Liability reports
Adapt net worth linecharts to work correctly with jqplot's date axis
2016-06-06 18:47:44 +02:00