Commit Graph

21193 Commits

Author SHA1 Message Date
Christopher Lam
280b745927 [account-piecharts] upgraded 2019-06-04 06:57:47 +08:00
Christopher Lam
aa175e0a93 [average-balance] upgraded 2019-06-04 06:57:47 +08:00
Christopher Lam
0f6f55e145 [cashflow-barchart] upgraded 2019-06-04 06:57:47 +08:00
Christopher Lam
535ddf0d47 [category-barchart] upgraded 2019-06-04 06:57:47 +08:00
Christopher Lam
36d5dfe2f7 [net-charts] upgraded 2019-06-04 06:57:47 +08:00
Christopher Lam
24550714f3 [html-chart] add html-chart.scm to access ChartJS
This is very similar to (but not 100% drop-in replacement) jqplot.
2019-06-04 06:57:47 +08:00
John Ralls
9056b14d9e Merge Adrién Panella's 'budget'into maint. 2019-06-03 10:19:02 -07:00
John Ralls
c140563e10 Typedef GNCSearchOwnerPrivate only once. 2019-06-03 10:12:42 -07:00
Christopher Lam
847c531fdd [CHARTJS] add Chart.js v2.8.0
Released March 2019

This aims to replace jqplot which is unsupported.
2019-06-03 21:27:45 +08:00
Geert Janssens
727348eff3 Restructure shell detection code
It will now first check for an environment variable GNC_SHELL and use
that if it exists. Then hardcode a shell if cmake detects the old
mingw environment (not mingw64), and finally fall back to cmake's
built-in method of finding bash.
This requires a fix in gnucash-on-osx for the build on that platform
to continue to work: on that platform, we should set GNC_SHELL
before starting the build. A patch has been submitted to do that
automatically for the user.
2019-06-03 11:14:17 +02:00
John Ralls
170651602c Restore WEBKIT1 function call, removed by mistake. 2019-06-01 12:55:50 -07:00
John Ralls
3a91eedb45 Fix new gcc-8 warning about strncat.
gcc-8 wants us to use strcat for string constants.
2019-06-01 12:55:17 -07:00
Adrian Panella
69ea174cd1 Bug 689753- Budget Report: Neg Num Not Colored Red
Use consistent formating in budget/actual/difference
showing negative budgets in red (same as actual/dif)
2019-05-31 19:30:33 -05:00
Adrian Panella
f6d607d787 Bug 624176 - budget report - rollup-budget ignored
The report's logic needs to allways rollup budget ammounts
so remove the option from the UI so as not to confuse the
user (it wasn't used anyway)
2019-05-31 19:30:22 -05:00
Christopher Lam
885689b42d [options] bugfix don't override inbuilt list keyword
fixing a 17 year old bug.

previous version had defined (save-acc list count) and (save-item list
count) thereby overwriting the inbuilt 'list' keyword, and tried to use
the it later on with (list key)... best rewrite with neater code.
2019-05-31 23:31:54 +08:00
Christopher Lam
6bca71f03b [view-column] various modernisation fixes 2019-05-31 23:23:07 +08:00
Christopher Lam
528d4b52b8 [view-column] compact loops, eradicate set!
simple modernising loops
2019-05-31 23:22:44 +08:00
Geert Janssens
dfc3d27490 Bug 797104 - Translations not showing in receipt options
Mark thank you string as translatable as well.
2019-05-30 14:58:41 +02:00
Geert Janssens
51ffcae9b8 Merge branch 'Bug-787018' of https://github.com/EvansMike/gnucash into maint 2019-05-28 17:48:18 +02:00
Geert Janssens
4ffc4d046f GncEntry - Fix inverted comparison 2019-05-28 17:19:29 +02:00
Christopher Lam
5873980c0c replace guile strftime with gnc-print-time64
addendum to ed42f8ac

guile's strftime is/was buggy; cannot handle non-UTF8 locales. Use
gnc_print_time64 instead. see the following

http://lists.gnu.org/archive/html/bug-guile/2019-05/msg00003.html
2019-05-28 18:42:32 +08:00
John Ralls
957df9a32b Add a +0000 offset to ISO8601 timestamps in the XML backend.
Apparently GnuCash for Android hard-coded the offset spec into their
parser, so it can't import XML files without it.
2019-05-27 14:51:06 -07:00
John Ralls
f76226f912 Fix broken CSV Import tests. 2019-05-27 14:51:06 -07:00
Geert Janssens
e557b021d3 CsvImport - Fix mishandling of quoted empty fields 2019-05-27 22:42:10 +02:00
Christopher Lam
ed42f8acb6 Bug 797197 - Transaction report: Error message when sorting on month
guile's strftime is/was buggy; cannot handle non-UTF8 locales. Use
gnc_print_time64 instead. see the following

http://lists.gnu.org/archive/html/bug-guile/2019-05/msg00003.html
2019-05-27 21:20:29 +08:00
Geert Janssens
8447f42674 Bug 797126 - It is annoying to run cmake to get an updated mo file
Add missing dependency in order to make the po-gmo and po-gmo-build targets acually work.
2019-05-27 14:50:36 +02:00
Geert Janssens
712714cf94 Bug 797207 - Chart reports show blank when run from the build directory
jqplot files were not copied to the build environment
2019-05-27 14:50:36 +02:00
Christopher Lam
49334906ae [test-report-utilities] reactivate 'debugging tools' section
This commit reactivates test section, which was disabled to hide a
date-related test failure. See Bug 797139 for more details.
2019-05-27 20:46:06 +08:00
Geert Janssens
e9506ec4ff Fix travis failure
Probably got introduced when fixing a merge conflict
2019-05-27 12:25:02 +02:00
Geert Janssens
cc7ca438c0 Merge branch 'maint' 2019-05-27 11:58:18 +02:00
Adrian Panella
6888bb30a2 [budget report] Fix multiple currency budget rollup 2019-05-25 10:50:52 -05:00
Geert Janssens
be1484841c One more minor cmake cleanup 2019-05-25 12:11:53 +02:00
Geert Janssens
b7479e8fb0 Bump minimum cmake version to 3.5
This version is available for all supported platforms and distros
(CentOS can have a version via EPEL, which is required anyway)

Advantages:
- one cmake version for all platforms
- we can drop all conditions based on cmake version
2019-05-25 12:04:51 +02:00
Geert Janssens
29b842ba99 Fix ubuntu 14.04 build failure
srfi-64 is optional and hence should only be depended upon within
the have-srfi-64 condition.
Ubuntu 14.04 doesn't have srfi-64 yet.
2019-05-25 10:09:12 +02:00
Geert Janssens
d35eabd636 Prevent autocompilation of the guile test scripts
There were several issues:
- we store the compiled test*.go files in a tests subdirectory, but this is not
  on the GUILE_LOAD_COMPILED_PATH. Added this directory to the path.
- guile was looking for 'script.scm.go' while we create 'script.go'. This is due
  to how we invoke the scripts: guile -l path-to-script.scm -c (something)
  we can replace this with -l path-to-script (without extension) as -l won't add
  the extension. So I've rewrittin the test command to invoke (load-from-path).
- the test modules foo.scm, bar.scm and baz.scm should go in tests/gnucash
  as they are defined as modules (gnucash foo), (gnucash bar) and (gnucash baz)
  respectively.
- find html.scm/go on the load path instead of using a relative path.
2019-05-25 10:09:12 +02:00
John Ralls
06bc064379 Fix dependencies for Scheme tests requiring SRFI64.
So ninja check passes without having run ninja first.
2019-05-25 10:09:12 +02:00
John Ralls
cac307602f Build or link all Scheme test files into a directory "tests".
Instead of random locations only occasionally related to the
corresponding source.

Includes renaming libgnucash/engine/test/test-extras.scm and
gnucash/report/report-system/test/test-extras.scm to avoid a
naming conflict.
2019-05-25 10:09:07 +02:00
John Ralls
141e777893 Suppress installing Scheme test programs. 2019-05-25 10:07:42 +02:00
Christopher Lam
ae76a29453 [aging] bugfix avoid report-crash when no APAR account exists
need additional sanity checks.

in a book with no suitable AP/AR account, from 'Customers Overview'
spreadsheet, clicking 'Customer Listing' may call aging.scm renderer
with account = #f leading to report crash.
2019-05-25 15:30:54 +08:00
Christopher Lam
efe88f13a8 [balsheet-pnl] link pnl->transaction-report inherits common-currency 2019-05-25 15:30:54 +08:00
Geert Janssens
8adac3c384 Bug 773200 - Rename Sample & Custom Report Group
Technically the sample & custom group hasn't been changed yet,
in this commit the two relevant reports are moved to a new
'Multicolumn' submenu
2019-05-24 21:42:46 +02:00
Geert Janssens
da4d72f89b Bug 773199 - Rename and rebuild Welcome to GnuCash Report
- separate the multicolumn report into its own source file
- tweak it as suggested in the bug report
2019-05-24 21:41:07 +02:00
Geert Janssens
7cc9d5cd69 Reports cleanup - declare common guids in a common file to avoid the need for a use-modules call in other reports 2019-05-24 21:41:07 +02:00
Geert Janssens
2ac9e21378 Report fs cleanup - move utility reports to sample directory
And have them load by the same generic load mechanism
2019-05-24 21:41:04 +02:00
Geert Janssens
f2368700a8 Rename reports/data to reports/support and add README file 2019-05-24 21:35:18 +02:00
Geert Janssens
c3b9d38956 Report fs cleanup - move business report data files to a common reports data directory 2019-05-24 21:11:09 +02:00
Geert Janssens
e97bb62f8c Report fs cleanup - move business report tests to standard tests directory 2019-05-24 21:11:09 +02:00
Geert Janssens
4a721e1f58 Report fs cleanup - integrate business reports into the standard reports directory
The business features are no longer an optional plugin so
there's no reason any more to treat them specially.
2019-05-24 21:11:09 +02:00
Geert Janssens
8eaf87d35a Report fs cleanup - Allow generic loader to scan more than one directory
This will allow us to group our reports in subdirectories and still
easily load them all with one command.
For now it still only loads from a single standard reports directory.
It can easily be extended by adding extra subdirectories to
the report-dirs variable in reports.scm
2019-05-24 21:11:09 +02:00
Geert Janssens
6c5fc4da29 Report fs cleanup - Add a few convenience functions
These will provide easy access to some of the most important
scm related runtime directories
2019-05-24 21:11:09 +02:00