Commit Graph

18032 Commits

Author SHA1 Message Date
John Ralls
c8402ad62e Merge CMake Distcheck from 'maint'.
Conflicts:
	CMakeLists.txt
	src/app-utils/CMakeLists.txt
	src/backend/sql/test/CMakeLists.txt
	src/backend/xml/test/CMakeLists.txt
	src/gnome-utils/CMakeLists.txt
	src/import-export/aqb/CMakeLists.txt
	src/import-export/csv-imp/CMakeLists.txt
	src/import-export/csv-imp/test/Makefile.am
	src/import-export/ofx/CMakeLists.txt
	src/import-export/qif-imp/CMakeLists.txt
	src/libqof/CMakeLists.txt
	src/register/ledger-core/CMakeLists.txt
	src/register/register-core/CMakeLists.txt
	src/register/register-gnome/CMakeLists.txt
	src/report/business-reports/CMakeLists.txt
	src/report/locale-specific/us/CMakeLists.txt
	src/report/report-gnome/CMakeLists.txt
	src/report/standard-reports/CMakeLists.txt
	src/report/stylesheets/CMakeLists.txt
2017-07-04 18:36:35 -07:00
Rob Gowin
e67f45003b No need for make dist and distcheck when checking autotools build in cmake 2017-07-03 16:15:17 -07:00
Rob Gowin
6b14dc5b59 Implement 'dist', 'distcheck' and 'uninstall' targets for CMake 2017-07-03 16:15:17 -07:00
Kuang-che Wu
7ba5a84609 Fix import-export compile on windows 2017-07-03 17:55:38 +02:00
John Ralls
b073f1d25c Merge branch 'maint' 2017-07-02 09:45:14 -07:00
John Ralls
319375fd15 Some more translations from the TP. 2017-07-02 09:25:17 -07:00
Geert Janssens
50deaa0d3c Merge branch 'fix-win-compile' of https://github.com/kcwu/gnucash 2017-07-02 12:28:48 +02:00
John Ralls
bb2ee92961 Re-release 2.6.17
This time with the version number in CMakeLists.txt updated too.
2017-07-01 17:10:09 -07:00
John Ralls
261a64e3eb Release 2.6.17 2017-07-01 11:20:17 -07:00
John Ralls
c046d2c5e4 Update translations from the translation project. 2017-06-30 15:16:50 -07:00
Mike Evans
b4520d6c92 Bug 784317 - typo in 'import customers or vendors from text file' dialog 2017-06-29 09:27:57 +01:00
John Ralls
118dd41759 Bug 782274 - Transactions produced by Transfer Funds or Process...
Payment dialogs sort to beginning of day and do not honor NUM field for
custom sorting.

Do a two-step, first retrieving a GDate from the date_edit then use
gdate_to_timespec to convert it to a time64: gdate_to_timespec calls
gnc_dmy2timespec_neutral while gnc_date_edit_get_date_ts gets a
begining-of-the-day time.
2017-06-25 15:45:56 -07:00
Kuang-che Wu
66aeb61008 Fix import-export compile on windows 2017-06-26 02:15:00 +08:00
John Ralls
99a732cb6a Bug 782897 - Stock Split Assistant crashes GnuCash if you enter a New...
Price and that already exists in the Price DB

Should have crashed regardless: The pricedb takes ownership of the
price object and unreffing it is going to cause trouble eventually.

tock Split Assistant crashes GnuCash if you enter a New Price and that
already exists in the Price DB
2017-06-24 18:06:42 -07:00
Geert Janssens
823b41d629 Fix commodity namespace tests
While new files will use CURRENCY to indicate a commodity is a currency,
older files (including our ancient test files) are still using
ISO4217. So we need to expect both values in the xml file tests.
This is different from file loading (which will automatically map
ISO4217 to CURRENCY) and file saving (which will from now on always
write CURRENCY).
2017-06-21 10:11:54 +02:00
Geert Janssens
f3eeda3a9e Stop writing commodity namespaces to xml files in gnucash 1.8 compatible way
Gnucash will still be able to read the old ISO4217 tags, but no longer write them
2017-06-20 22:36:58 +02:00
Geert Janssens
12d85ff647 Merge branch 'maint' 2017-06-20 22:35:57 +02:00
Geert Janssens
c80dad742e Bug 603379 - Prevent changing some Account Options if it has transactions - followup
Relax the account type change restrictions again. In the new implementation
account types can't be changed for an account with splits:
- if the change woud force a commodity change (to/from normal accounts from/to stock related accounts)
- for immutable accounts

At the time of this commit the following account types are considered immutable:
- Accounts Receivable
- Accounts Payable
- Trading accounts
2017-06-20 22:08:51 +02:00
John Ralls
7e8b66faac Fix Travis Failure
Merge put back the define of _(), removed in 582edc1. Ninja didn't complain.
2017-06-20 10:56:24 -07:00
John Ralls
4b73bb5c50 Merge branch 'maint' 2017-06-20 10:26:47 -07:00
Geert Janssens
4032d33b48 Properly define the template namespace rather than using a local string everywhere 2017-06-20 12:16:33 +02:00
Geert Janssens
cc3010d89b Bug 781634 followup - separate translatable commodity namespace strings from those uses in storage
There is now a separate GNC_COMMODITY_NS_ISO_GUI label to be used
everywhere the users needs to read 'Currency namespace'. It's currently
set to 'Currencies' and can be translated. It may change in to future
to better describe this namespace is restricted to ISO4217 defined
currencies as opposed to all the non-formal currencies in vogue today
(like bitcoin and friends).
2017-06-20 12:16:33 +02:00
John Ralls
b5b0f60396 Correctly store time64 0 in the SQL backend.
The SQL backend ignored time64 0 when saving dates. time64 is a perfectly
valid timestamp (1970-01-01 00:00:00) and should be stored.
2017-06-16 15:57:52 -07:00
John Ralls
5f8f9b9a84 Clamp time64 values passed to GDateTime functions to the valid range.
Fixes a bug reported on the mailing list wherein a date of 0000-00-00
in a MySql database would crash GnuCash. Such dates may come from a bad
conversion of 1970-01-01 or from a crash.
2017-06-16 15:31:49 -07:00
christopherlam
385ca0c324 Bug 776396 Further Fix
This commit will further improve the styling of the table element used for foreign 
currencies in any report with foreign currencies or stocks. Adds non-breaking space 
between foreign currency/stock and report currency.
2017-06-04 12:26:46 +08:00
John Ralls
881a39d2eb Bug 783095 - gnucash-2.6.16 segfaults on startup
Null tip_list after freeing it the first time to prevent double-free,
then don't iterate over it if contents is NULL. Don't even try to open
dialog if tip_count < 1. Protect from dereferencing a NULL tip_list in
gnc_new_tip_number.
2017-05-26 11:34:00 -07:00
Mike Evans
e43e30d039 Change from deprecated gncEntrySetDate to gncEntrySetDateGDate.
Again.
2017-05-21 15:49:30 +01:00
Mike Evans
9591c52bf5 Revert "Change from deprecated gncEntrySetDate to gncEntrySetDateGDate."
Oops, more work required.

This reverts commit 78565f7939.
2017-05-21 15:38:51 +01:00
Mike Evans
78565f7939 Change from deprecated gncEntrySetDate to gncEntrySetDateGDate.
Should gncEntrySetDateEntered() similarly be deprecated?
2017-05-21 15:23:25 +01:00
Mike Evans
3e9716626f Correct a typo. 2017-05-19 08:03:12 +01:00
Mike Evans
5df97ba2a5 Use correct column for entry date.
The date opened will be set to today if that column is blank.
2017-05-18 19:27:47 +01:00
Guy Taylor
34bab999a5 Fix coredump in Python when using "get_namespaces"
The Python API incorectly had GncCommodityTable.get_namespaces() defined
as a list of GncCommodityNamespace over the correct list of String. This
fixes the issue and adds a test for GncCommodityTable.get_namespaces()
and GncCommodityTable.get_namespaces_list().

Note: This is not a direct fix as I could not get SWIG to detect/convert
"GList *" to a "gchar *" to a Python str list.
2017-05-17 10:40:21 +02:00
Guy Taylor
3cd2a6554c Enable Python tests in Travis CI 2017-05-17 01:28:43 +01:00
Bert
178013bf9d Bug 776396 - Foreign currency reports, amounts are not aligned correctly
Bug 776396 - Foreign currency reports, amounts are not aligned correctly

This commit will improve the styling of the table element used
for foreign currencies in the Balance sheet report so they
end up aligned with the other currencies.
2017-05-13 15:46:07 +02:00
fell
efaeb99ff1 Add XSU to iso-4217-currencies
The future common currency of south america?
2017-05-06 23:47:11 +02:00
Geert Janssens
9087418f81 Drop ifdeffed out code block 2017-05-03 18:08:37 +02:00
Geert Janssens
c5ef629fdc Bug 781634 - Alert on missing account currency when opening account 2017-05-03 18:08:37 +02:00
Geert Janssens
e0af43d413 Properly handle import of reconcile state.
Gnucash exports this state localized it should expect a localized state on import.
2017-05-03 12:19:04 +02:00
Geert Janssens
3603ec1aa8 Document supported date formats in the saved csv settings 2017-05-03 09:44:36 +02:00
Geert Janssens
9af57849ba Use GncDate in csv importer
This removes all date specific functionality from the importer
2017-05-02 23:16:21 +02:00
Geert Janssens
7df29b572a Add copy constructor and assignment operator to GncDate 2017-05-02 23:09:36 +02:00
Geert Janssens
5070037314 Add comparison operators for GncDate
Note the operands are const GncDate& because the GncDate has no copy
constructor/assigment operator (any other definition would fail
when used with variables of type boost::optional<GncDate>)
2017-05-01 16:24:01 +02:00
John Ralls
582edc1b31 CMakeLists.txt: Remove Apple architecture settings.
Those should be passed in as part of CFLAGS/CXXFLAGS.
2017-04-29 17:53:10 -07:00
John Ralls
e79d9b5cba Updated ar.po from ashalash@msn.com
After removing duplicate translator email addresses and reference to the
Translation Project's Arabic team.
2017-04-29 17:53:10 -07:00
fell
2206f0a518 Fix wrong displayed position of the verbose flag in gnc-fq-dump 2017-04-29 01:27:55 +02:00
Geert Janssens
1a3595cbeb Convert gnc_dmy2timespec{,_end,_neutral} to use the equivalent GncDateTime constructor
This required a couple of tweaks to the tests because:
- the invalid date returned for impossible conversions is different between the old implementation and the cpp edition
- unhandled glib warnings caused the tests to abort
2017-04-28 18:41:04 +02:00
Geert Janssens
7a037932ae Align day end time as used in the GncDateTime constructor and gnc_dmy2timespec_end
The former was using 23:59:00 while existing code was using 23:59:59. To avoid
disruptions, stick with the latter in our cpp code as well.
2017-04-28 18:41:04 +02:00
Geert Janssens
586b89c6ca Fix John's remarks 2017-04-28 18:41:04 +02:00
Geert Janssens
610f6309a3 Fix double free abort in gtest-gnc-datetime.cpp
This double free happened after the introduction of a class variable (static member variable
to GndDate and the test compiling in gnc-datetime.cpp *and* at the same time linking to
gnc-qof. This apparently threw off internal memory management. Removing either of linking to
gnc-qof or compiling in the source file solved it.
Credits go to John Ralls for debugging this.
2017-04-28 18:41:04 +02:00
Geert Janssens
209f971589 Add constructor to create GncDate from string and predefined date format
Primary use case is for parsing dates from external sources (importers)
2017-04-28 18:41:04 +02:00