Commit Graph

17924 Commits

Author SHA1 Message Date
John Ralls
0c9689432f regex_replace: construct std::string for third argument.
Because gcc-4.8 won't do so implicitly.
2016-05-20 11:17:01 -07:00
John Ralls
50cb9237dc Merge branch 'maint'
Includes converting the new regex code in gnc-backend-dbi to use
std::regex because GRegex uses enums in a way that C++ dislikes.
2016-05-20 10:48:07 -07: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
Mechtilde
9ba3e7a442 remove some fuzzy flags 2016-05-09 19:12:59 +02:00
Mechtilde
97a8892f01 add some translations 2016-05-09 19:12:58 +02:00
Per Johansson
5909ff366a FIxed remaining names. 2016-05-09 18:40:44 +02:00
Per Johansson
10d80426c2 Added Finnish account plan. 2016-05-09 18:40:37 +02:00
Robert Fewell
d7a77a3a5f Update Transaction unit test date internal
Update this test to use strftime so the format can be specified as ctime
was using a space in front of the month number. Also add a '\n' to the
end of msg2 as the PINFO in Transaction.c line 1940 has one.
2016-05-08 16:58:19 -07:00
Robert Fewell
fab69c29a8 Date format using strftime under windows.
strftime under windows does not support the %e or %P flags so change
them to %d and %p respectively.
2016-05-05 16:23:52 +01:00
Robert Fewell
e81494756e Gnucash on Windows will not start.
in the TimeZoneProvider function load_windows_classic_tz make_pair
should of used max_year as the first parameter.
2016-05-05 16:19:11 +01:00
Rob Gowin
c739f4fae4 CMake: Don't try to install COPYING file that does not exist. 2016-04-21 08:36:03 -05:00
Per Johansson
b2213d2673 Added new sv_AX and sv_FI account plans. 2016-04-16 10:32:32 +02:00
Geert Janssens
3299231f22 Improve quickfill performance on huge registers
The recursive quickfill code had several expensive
function calls that could be moved out of the recursion.
In addition using qof's string cache would result in
an expensive call to g_str_hash for each iteration, which
quickly degraded performance on huge accounts.
I have removed the use of qof's string cache from quickfill
which considerably improves performance of opening the
register for a huge account at the expense of slightly
more memory overhead.
For example I saw register load time reduce from 75 seconds
to 2 seconds, while using 20kb more memory.
2016-04-15 21:45:54 +02:00
John Ralls
2379b9715d Correct the interpretation of the void* passed to sqlite3_error_fn.
We can't cast a dbi_conn to a GncDbiSqlConnection, even without slicing
the pointers won't have the same value.
2016-04-07 15:43:03 -07:00
John Ralls
4fa68502ec Fix some new errors raised by clang 703.0.29. 2016-04-07 15:43:03 -07:00
John Ralls
dbf4eada94 Ensure that PRIi64 is defined in mingw. 2016-04-05 15:49:02 -07:00
Christian Stimming
dc4fce0aae Bug 764268 - MT940 import select account based on transaction info
When importing MT940 files, AqBanking will (sometimes?) put
all transactions under a single AccountInfo, even when there
are multiple accounts in the file. Luckily the correct account
information can be recovered from the transaction information.
This patch will try to use the account information in the
transaction before trying to use the saved account state.

Patch by Jethro Beekman.
2016-04-05 21:53:49 +02:00
Geert Janssens
ee40d5dce7 Fix counter format resetting in a private kvp compatible way 2016-03-30 15:37:49 +02:00
Geert Janssens
826ebf2d2b Fix critical warning introduced in f5a7aeca79
Critical warning happens only on master branch
2016-03-30 15:37:12 +02:00
John Ralls
ec768b160c Modify the changes from 139e3ea5 to accomodate private-KVP. 2016-03-28 00:19:04 -07:00
John Ralls
455508f92a Delete dialog-print-check2.c which somehow managed to survive the last merge. 2016-03-28 00:14:55 -07:00
John Ralls
d7112e9ffb Clean up more !g_strcmp0(foo, bar) == 0, which doesn't work. 2016-03-27 17:41:09 -07:00
John Ralls
fbec25529a Restore some code removed in 8877f86 which left a variable uninitialized. 2016-03-27 17:40:30 -07:00
John Ralls
5485c9de37 Merge branch 'maint' after 2.6.12 release. 2016-03-27 17:06:43 -07:00
John Ralls
df8fa03887 Mac Localization: Prefer the country to the language for fall-back locales.
On the theory that in countries where multiple languages are in use similar
date and number formats will apply regardless of language, and especially
that the default currency will be the same regardless of language.

Also ensure that the specified language is in the list passed to gettext;
the net effect of which is that the user will effectively get the requested
localization behavior.
2016-03-26 11:30:36 -07:00
John Ralls
a41a7e2b50 Extract some functions to make the Mac locale setup a bit more maintainable. 2016-03-26 11:30:36 -07:00
John Ralls
ed11f6d1d5 Release 2.6.12 2016-03-25 19:43:22 -07:00
John Ralls
6cf1700650 Update translations from the Translation Project. 2016-03-25 16:39:26 -07:00
Geert Janssens
f5a7aeca79 Bug 719904 - Decide payment type only based on the account type involved
This commit improves payment type deduction by first checking
whether an AR or AP account is found in the transaction.
If not, fall back to previous heuristic of positive action
means customer payment, negative action means vendor
action. The logic can still go wrong (no means to declare
an employee payment, and credit notes are interpreted as
opposite sign payments). Needs a follow up to fix that.
2016-03-25 18:09:27 +01:00
Geert Janssens
6fd35694e2 Factor out a convenience function to retrieve a (business) owner starting from a transaction 2016-03-25 17:39:20 +01:00
Geert Janssens
656a3a9b57 Provide option to print checks directly from the payment window 2016-03-25 17:12:46 +01:00
Geert Janssens
d5d58dacba Check printing: extract address from invoice/bill for payment transactions
If the transaction is marked as a (business feature) payment,
extract the address of the bill/invoice associated with the
payment, or the owner if there's no bill/invoice yet.
2016-03-25 14:43:15 +01:00