Commit Graph

19884 Commits

Author SHA1 Message Date
John Ralls
9f1bfddc27 Revert "Remove abandoned C-language QIF implementation."
Because it included some extraneous changes.
This reverts commit edd439a05e.
2018-06-15 11:30:09 -07:00
John Ralls
edd439a05e Remove abandoned C-language QIF implementation. 2018-06-15 09:30:31 -07:00
John Ralls
554001604a Merge Chris Lam's 'maint-chartjs-part-1' into maint. 2018-06-14 10:52:42 -07:00
John Ralls
0efe32ea73 Merge Chris Lam's 'maint-test-net-charts' into maint. 2018-06-14 09:52:19 -07:00
Christopher Lam
754c047892 [net-charts] styling table for all charts 2018-06-14 12:53:33 +08:00
Christopher Lam
be1ebb9d32 [net-charts] use scheme rationals directly 2018-06-14 12:53:33 +08:00
Christopher Lam
66488bbb1a [net-charts] *reindent/whitespace* 2018-06-14 12:53:33 +08:00
Christopher Lam
ffd20b2e2f [net-charts] combine net-[bar|line]chart.scm into net-charts.scm
This commit combines both charts into one. This can improve ease of
maintenance.
2018-06-14 12:53:33 +08:00
Benjamin Gordon
8cae602e66 Add support for libsecret to cmake
gnucash has historically supported storing passwords for database
backends with libsecret when HAVE_LIBSECRET is defined. The code is
still present, but support for detecting libsecret's availablity was not
ported over when the build system was converted to cmake.  This change
restores the missing detection.
2018-06-13 21:13:21 -06:00
Christopher Lam
2e4e18e21e [test-net-charts] initial commit test-net-charts
This just tests that the report exists. It does not do any checking
for the data generated yet.
2018-06-14 11:11:04 +08:00
Christopher Lam
7de68cef88 [test-extras] split gnc:options->sxml into 2 functions
Creates (gnc:options->render) which outputs report as a string.
2018-06-14 11:11:04 +08:00
Christopher Lam
1fc5634c7a [html-text] [bugfix] img url was mistakenly disabled. 2018-06-13 21:38:26 +08:00
John Ralls
6c03d07e00 Merge Chris Lam's 'maint-test-invoice' into maint. 2018-06-12 16:28:28 -07:00
John Ralls
87f4791fae Merge Chris Lam's 'maint-fix-796537' into maint. 2018-06-12 16:21:26 -07:00
John Ralls
9c7fa77d3b Merge Bob Fewell's 'fixes6' into maint. 2018-06-12 16:12:48 -07:00
John Ralls
5d3ae6c672 Fix test-tokenizer failure due to not nulling the GError*. 2018-06-12 16:12:30 -07:00
John Ralls
ffe6044cd6 Bug 796248 - Editing Scheduled Transaction
An extra XaccTransBeginEdit, never committed, for transactions that
the backend tried to load when they were already there. That made
the register think that something else had it open.
2018-06-12 15:49:28 -07:00
John Ralls
c8861d4666 Bug 795276 - Invalid date on price stops file from being parsed.
Instead of reporting an error and declining to load the file (XML)
or failing to enter a value (SQL) when a bad date is found in the
database, use a 0 time stamp (1970-01-01 00:00:00 UTC). Adds a warning
in SQL backends; there was one already in XML.
2018-06-12 14:56:27 -07:00
John Ralls
9179505208 Bug 796484 - csv import: iostream error
Unfortunately it turns out that we can't use filestreams because
they can't take path arguments containing Unicode on Windows.
Replace the filestream code with g_file_get_contents(),  which
takes care of all of that Windows compatibility noise for us.
2018-06-12 11:48:03 -07:00
Christopher Lam
e4407dee9b [test-invoice] add gncOrder display and testing 2018-06-12 23:40:13 +08:00
Christopher Lam
aa4dfb0ead [test-invoice] also test fancy-invoice 2018-06-12 23:40:13 +08:00
Christopher Lam
bb37adc3ec [test-invoice] also test easy-invoice 2018-06-12 23:40:13 +08:00
Christopher Lam
81303b4193 [test-invoice] last test inv-8 is paid up
Note there is a debugging display which unexpectedly causes test
failure. Calling gncEntryGetDocValue for each entry, with any
combination of booleans, would cause the amounts to change slightly.
2018-06-12 23:40:13 +08:00
Christopher Lam
da1d1b9a47 [test-invoice] initial commit 2018-06-12 23:40:13 +08:00
Christopher Lam
7918c0317e [test-extras.scm] options->sxml to whitespace
Previously whitespace was encoded onto SXML, but it seems to make
travis complain, i.e. on my branch no errors, however, on main Gnucash
branch would occasionally strip whitespace. This change will parse
XHTML and strip whitespace, which means some tests need amending.
2018-06-12 23:40:13 +08:00
Christopher Lam
746219926a [test-extras.scm] upgrade options->sxml to parse   entities
The default xml->sxml parser handles only > < & '
" entities. We need to add handler for   as well.
2018-06-12 23:40:13 +08:00
Christopher Lam
b30f4d7c90 [easy-invoice.scm] fix html to be parsable by sxml
Without this change the HTML cannot be parsed by sxml.
2018-06-12 23:40:13 +08:00
Christopher Lam
af00712561 Bug 796537 - Transaction Report cannot sort by "num"
This is technically a bug in the TR regarding book split-action
property. The reworked TR did not retrieve book split-action properly
which means it was always assuming split-action was #f for sorting.

This commit redefines sortkey-list to accept split-action? as a
parameter to generate the correct sortkeys. Unfortunately it will make
it more complicated; I'm not sure how to simplify.
2018-06-12 22:44:08 +08:00
John Ralls
9e6760f7cb Bug 796527 - invalid currency on scheduled transactions
1. Don't even check for price/exchange rate on template transactions,
there's no point.

2. Extract function get_transaction_currency:
a. Check all split commodities are valid, abort transaction creation if
not.
b. If the template transaction's currency isn't used by any of the
splits set the new transaction's currency to the first-found currency if
there is one, otherwise to the first-found commodity.

3. Fix a minor typo in a comment.
2018-06-11 10:03:16 -07:00
goodvibes2
5f53e2926a Use HINTS instead of PATHS to tell cmake where to look for GTEST + GMOCK
files so it selects the paths in GTEST_ROOT + GMOCK_ROOT rather than the
system libraries.
2018-06-11 18:30:04 +10:00
Robert Fewell
64837820ed Bug 795831 - When read only threshold set, dates are silently changed
When you have specified a read only threshold, the date is silently
changed if it's beyond the threshold. There was already code to present
a dialog informing of this but was disabled so enable it.
2018-06-10 14:26:39 +01:00
Robert Fewell
2384af6068 Add a dialog to warn users that date is out of range
When the date is out of range present a dialog advising this and also
advise that date will be reset to this year.
2018-06-10 14:24:34 +01:00
Robert Fewell
a73f9123f9 Fix some indentation in datecell-gnome.c 2018-06-09 15:10:12 +01:00
Robert Fewell
1f14d0f629 In qof_scan_date returns valid date when day and month are 0
If you start typing a date in the register with the enable autoreadonly
option starting with a 0, gdate complains when trying to create a valid
date.
2018-06-09 15:04:27 +01:00
Robert Fewell
00e6ccdda0 Bug 796398 - Restrict accelerator keys to valid date range
Valid date range is 01/01/1400 - 31/12/9999 so only allow accelerator
keys in this range.
2018-06-09 15:01:30 +01:00
John Ralls
6f0a3c4345 Bug 795362 - Special variable "i" not parsed in function calls
Limit the range of the random value to 1..1000 to prevent overflows,
particularly in number-of-periods or number-of-years variables.

While we're at it, g_random_int and g_random_int_range return ints so
piping the result through gnc_double_to_numeric() doesn't make much
sense. That's removed, we just construct a gnc_numeric.
2018-06-08 16:44:31 -07:00
Geert Janssens
dc7135920b Minor build error message improvement 2018-06-08 14:27:58 +02:00
John Ralls
cdcb230a31 Don't look for backend libraries in old autotools subdirs.
Partly addresses Bug 794526
2018-06-07 17:38:04 -07:00
Potuz
e3e1464a01 Bug 794617 - Can't compile with -DWITH_GNUCASH=NO due to scm-gnome-utils
Pricedb.go doesn't need gnc-gnome-utils and we don't need WebKit or
gwenhywfar-gtk3 if we have no GUI.
2018-06-07 14:17:49 -07:00
John Ralls
690ef626a8 Merge Carsten Rinke's branch 'Bug787401-TestReport-Definition' into maint. 2018-06-07 11:55:52 -07:00
John Ralls
8cfa078bd7 Merge Chris Lam's 'maint-html-layout' into maint. 2018-06-07 10:48:28 -07:00
John Ralls
b431b648a9 Merge Chris Lam's branch 'maint-test-transaction-amendments' into maint. 2018-06-07 10:10:31 -07:00
Christopher Lam
b787baaa8f [test-transaction] modify test to be acceptable to MacOS
This modification will convert string to number (using a customized
function defined in same file) to obviate need to encode #pound sign
in scheme.
2018-06-07 19:12:48 +08:00
Christopher Lam
1641c42247 [html-anytag] generic html tag object
Generic tag HTML-object.
Also defines (gnc:make-html-div/markup) (gnc:make-html-span/markup)

any html object can be enclosed with (gnc:make-html-span obj)
or (gnc:make-html-span/markup "class" obj), (gnc:make-html-div obj)
or (gnc:make-html-div/markup "class" obj)
2018-06-07 15:03:33 +08:00
Christopher Lam
ccf3ebda16 [STYLESHEETS] modify stylesheet to accept document style-text
This commit will modify stylesheet-*.scm to pass the *document*
style-text as well as the *style-sheet* style-text to the <style> tag.
2018-06-07 11:19:33 +08:00
Christopher Lam
da0160add8 [test-cashflow-barchart] hide debugging messages
These tests pass. Don't need debugging output anymore.
2018-06-07 11:19:33 +08:00
Carsten Rinke
848e3da105 Bug787401 - Test Report System - Report Definition
include change proposals from responses to PR#360
2018-06-05 22:01:18 +02:00
Carsten Rinke
324cfeb3a4 Bug787401 - Test Report System - Report Definition 2018-06-04 23:28:37 +02:00
John Ralls
0b10b4b9ed Bug 796423 - Cannot Input Chinese, seems does not work with...
other IME too .

Also Bug 795253 - Have problems input Chinese.

Adds GTK_IM_MODULE_FILE to environment on Macs so that IME is enabled.
Removes toggling the GtkEntry's editability in
gnucash_sheet_key_press_event_internal; disabling it killed the preedit
and that broke IME.
2018-06-04 13:46:23 -07:00
Keve Müller
b4b16be30f Small XML related fixes removing ambiguity improving uniformity
acctchrt_common:
there is a gratituous "i"

acctchrt_full (ja):
the Retirement and Spouse's retirement accounts have two parents
(Investment as well as ROOT), removed ROOT.

uk-vat:
the root account was pasted a line too high 7y ago. all other files have
the header block continuous
2018-06-04 13:46:23 -07:00