Commit Graph

21117 Commits

Author SHA1 Message Date
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
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
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
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
Geert Janssens
72f5417c40 Report fs cleanup - put convenience report generators together in reports.scm
This required the report-register-hook related stuff to move somewhere else as
it was causing a circular dependency. I've moved it into report-system.scm
which should already be built by the time reports is used.

With this business-reports.scm is now only loading the business reports.
2019-05-24 21:11:09 +02:00
Geert Janssens
20eb1cc6cd Report fs cleanup - move business related anchor generating functions with the others 2019-05-24 21:11:09 +02:00
Geert Janssens
438cf3c2bd Report fs cleanup - move standard reports to new location
The end goal of this cleanup is to have all reports grouped in
subdirectories of the new 'reports' directory.
This first commit moves the standard reports
which mostly involves renaming several modules and targets.
2019-05-24 21:08:00 +02:00
John Ralls
2d4f771bed Merge Adrién Panella's 'budget' into maint. 2019-05-23 09:50:20 -07:00
Christopher Lam
311f7d26e6 [dialog-tax-table] implement renaming of Tax Table name
Adds a new button 'Rename' in dialog-tax-table.
2019-05-20 15:43:23 +08:00
Adrian Panella
f6df367f50 [budget] Remove unused code
Remove some priv attributes and code that were never used
2019-05-18 14:35:28 -05:00
Adrian Panella
51dda77057 Bug 577968 - Values are not stored by pressing <TAB> in budget page
Also fix duplicates: 760194
2019-05-18 14:35:28 -05:00
Adrian Panella
91aceaa71b Bug 781345 - Equity disregarded by budget totals 2019-05-18 14:35:28 -05:00
Adrian Panella
d16a236ece [Budget] Fix negative Numbers Not Colored Red 2019-05-18 14:35:11 -05:00
Adrian Panella
0319144ba6 Bug 788157 - Open Budget Menu Item Doesn't Select Default Budget 2019-05-17 23:12:19 -05:00
Adrian Panella
5bb54d073c [budget] Fix error in qof_book property path
The "Default budget" property had an erroneus path
and was not returning any value.
2019-05-17 23:12:19 -05:00
Adrian Panella
df1cc5902b Bug 676810 - Wrong accounting in multi-currency budget report
Adds multicurrency support in budget page
Convert currencies before summing up to parent and totals.
2019-05-17 23:12:11 -05:00
Adrian Panella
52895eabd1 Bug 679800 - Shortcut to allow population of all budgeting periods
Add functionality to change at once the budget for all
periods of selected accounts.
It can :
replace with a new value
unset the budget
add a value to current budget
multiply current budget with value

Solvese issue #679800 and a duplicates (#639404, #760634)
2019-05-17 23:11:48 -05:00
Christopher Lam
b26276cba4 Bug 797241 - Some reports skip transactions of the last day of the selected period
portfolio.scm and advanced-portfolio.scm were not taking into account
transactions dated on the report-date. expand query so that end-date
is 23:59:59 rather than somewhere mid-day.
2019-05-17 23:07:19 +08:00
Robert Fewell
416b79d304 Reformat source files gnc-accounting-period.*
Change tabs to white space and some other white space changes.
2019-05-17 11:01:24 +01:00
Robert Fewell
037f5ed5be Bug 797089 - Wrong time for accounting period end date
In the Preferences/Accounting Period, there is an option to specify
absolute dates but the end date was being set to start of day instead
of end of day, changed this.
2019-05-17 11:01:24 +01:00
Robert Fewell
5ad3cd0d60 Deleting TaxTable entries can crash application
Change the switch statement to include GNC_AMT_TYPE_VALUE to return a
value for row_text[1] and change default to set it to NULL
2019-05-17 11:01:24 +01:00
Robert Fewell
fade13f813 Setup some default sorting for the TaxTable entries 2019-05-17 11:01:24 +01:00
Robert Fewell
36574f08fb After editing the TaxTables the selection has moved 2019-05-17 11:01:24 +01:00
Christopher Lam
e3fb593edc Bug 797240 - Multicolumn report not showing each report name
reportname was not correctly applied as the chart-title
2019-05-17 11:11:30 +08:00
John Ralls
3ec00f5275 Merge branch 'maint' 2019-05-16 11:29:14 -07:00
Geert Janssens
539be984e5 Fix mnemonic behavior on business preferences page 2019-05-16 19:01:31 +02:00
Frank H. Ellenberger
aeb7e690b5 Use standard buttons and add more mnenoics to Aqbanking dialogs
Part of Bug 797232
2019-05-16 17:37:28 +02:00
Christopher Lam
f779b81719 [balsheet-pnl] unrealized-gain calculator bugfix
The unrealized-gain calculator was flawed.

The fixed function is copied from balance-sheet.scm and adapted to
balsheet-pnl.scm vars.

This fixed function matches unrealized-gains amounts from
balance-sheet.scm
2019-05-16 19:08:07 +08:00
Christopher Lam
0ecfc911ca [balsheet-pnl] chart: set report-currency to most used currency
This is a usability upgrade.

This balsheet-pnl report does *not* enforce a report currency; it can
print, process and multilevel-total monetary amounts in their original
currency.

But a linked chart needs one. By default it uses global
report_currency which may not match the book's most used currencies.

This commit will scan the accountlist, retrieve the most common
currency used, and set it as the report-currency for the linked
chart.

The book-main-currency function *may* be upgraded to
report-utilities.scm in the future.

Case example:
* set gnc_default_report_currency to USD
* load book.gnucash with majority accounts in EUR, some in GBP
* run balsheet-pnl.scm - shows EUR and GBP amounts and mixed totals.
* click link to barchart - would not succeed because all amounts
  converted to USD0.00. this commit will ensure barchart's target
  currency is set to EUR thereby showing useful chart.
2019-05-16 19:05:53 +08:00