Commit Graph

16614 Commits

Author SHA1 Message Date
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
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
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
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
c0086e15e9 Partially revert commit B555f495 and solve problem more simply by instead resequencing prior statements. 2016-06-06 15:17:55 -07:00
Alex Aycinena
b555f49567 The gnc_gui_refresh_all statement in gnc_book_options_dialog_apply_cb causes the 'apply' and 'OK' buttons to be set to sensitive on the open Book Options dialog in some circumstances; this commit causes them to be reset to insensitive, as they should be. 2016-06-04 14:41:28 -07:00
Geert Janssens
293b43dced Update README file regarding pull request policy 2016-05-31 13:09:44 +02:00
John Ralls
5d69ec7d87 Bug 766960 - gnucash-make-guids fails to run due to hardcoded paths. 2016-05-29 15:56:41 -07:00
Geert Janssens
a7a0dbcc4b Bug 765859 - The budget reports missing in Hungarian edition 2016-05-21 17:45:51 +02:00
Geert Janssens
a2ded744b3 Fix travis build 2016-05-21 15:54:55 +02:00
Geert Janssens
efbe26bc26 Bug 736352 - Expense Voucher adds tax automatically
Expense vouchers don't use tax tables, so prevent autocomplete
from setting one anyway.
2016-05-21 15:39:15 +02:00
Geert Janssens
5ef9b8121e Bug 766200 - Three-up printing does not position the third check properly
Handle drawing translations properly
- take empty checks into account on first page both when printing
  one check only (bug 693342) and when printing multiple
  checks
- fix page level translations, should only be called once
- draw debug grid once for each page instead of for each check

To be mentioned in release notes:
A few bugs in the calculation of check positions while printing checks have been corrected. If you manually edited the check formats to compensate for these positioning errors in previous versions of gnucash, you may have to undo these changes. Please check this before printing your next check.
2016-05-21 15:04:19 +02:00
Geert Janssens
fa22986c9b Check printing: make logic easier to follow
- rework formula to calculate number of pages so it's easier to understand by a human
- add comments to clarify relations between position, position_max, first_page_count and so on
2016-05-21 14:23:20 +02:00
John Ralls
f7dfd65bf9 Fix adjust_sql_option_string test on Windows.
The linkage problem was caused by the symbol appearing in
libgncmod-backend-dbi.dll but not libgncmod-backend-dbi.dll.a.
Incoprorating gnc-backend-dbi.c as a source file to the test program
instead of linking its library resolved the issue.
2016-05-20 17:02:01 +00:00
John Ralls
592ad99dde Move adjust_sql_options_string declaration to gnc-backend-dbi-priv.h.
It shouldn't be public, it needs to be exported only to the test file.
2016-05-20 10:00:57 -07:00
John Ralls
818fe73a05 Remove unnecessary g_strdup_printf.
SQL_OPTION_TO_REMOVE is substituted during preprocessing so it can be
inlined in the string initialization, no need for heap allocation or
runtime composition.
2016-05-20 10:00:57 -07:00
John Ralls
ef8f63759f Fix inconsistent and non-conforming whitespace and comments. 2016-05-20 10:00:57 -07:00
Mike Evans
0e17ebdc12 Bug 766688 - Minimal fraction of BYN should be 1/100 2016-05-20 13:13:04 +01:00
John Ralls
806525f6ce Fix bad library name from c1ad6154. 2016-05-19 10:08:21 -07:00
John Ralls
b20e05d078 Bug 764871 - Crash starting gnu cash
GString doesn't like being g_freed, so use gchar and g_strdup_printf
instead. Change all of the GStrings in the file just to be consistent.
2016-05-19 10:05:34 -07:00
John Ralls
c1ad6154ab Don't try to compile test_adjust_sql_options on windows, it won't link.
Also fix the CMake build by linking gnc-backend-dbi for test-backend-dbi.
2016-05-14 20:33:28 +00:00
colinl
3b17b44ef7 Improved adjust_sql_options_string, added tests 2016-05-12 11:40:09 +02:00
colinl
99554bc7c1 Tidied up adjust_sql_options 2016-05-12 11:40:02 +02:00
colinl
709ed8b1d3 adjust_sql_options working but needs tidy up and remove diagnostics 2016-05-12 11:39:55 +02:00
victor811
043ca5d399 Update Russian translation 2016-05-11 12:30:17 +02:00
victor811
7bee0be574 Update Russian translation 2016-05-11 12:30:16 +02:00
John Ralls
f679bf70e8 Bug 766028 - crash on manual addition of price entry in Price Editor
gnc_pricedb_remove_price invalidates db->commodity_hash so removing the
old price needs to be done before it's retrieved.
2016-05-10 13:32:12 -07:00
Mechtilde
eaa68cff8c correct some more shortcuts 2016-05-09 19:13:06 +02:00
Mechtilde
30e46e4e5d correct some shortcuts 2016-05-09 19:13:05 +02:00
Mechtilde
9ddea15c7f correct typos 2016-05-09 19:13:04 +02:00
Mechtilde
d5fa61d14e remove some fuzzy flags and add some translations 2016-05-09 19:13:03 +02:00
Mechtilde
5671408bab some corrections 2016-05-09 19:13:01 +02:00