Commit Graph

21084 Commits

Author SHA1 Message Date
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
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
Mike Evans
75a919b283 Bug 751290 - Rethinking the invoice ledger view
Fix indent and add a note for translators.
2019-05-15 07:12:50 +01:00
Frank H. Ellenberger
a63adac4c5 Rise minimum required CMake version for Linux to 3.2
This will allow us to use modules like FindIntl.
https://lists.gnucash.org/logs/2019/05/14.html#T17:32:19
2019-05-15 00:18:25 +02:00
Frank H. Ellenberger
29f605bd1b Move I18N modules in one section of CMakelists.txt 2019-05-14 23:44:18 +02:00
Frank H. Ellenberger
7cb4c1d7b1 Cleanup of no longer used Gettext flags
We don't need HAVE_GETTEXT conditional code
2019-05-14 23:44:18 +02:00
John Ralls
fc567208f3 Bug 797233 - Balance Sheet, Chart of Accounts, and other reports...
crash when involving foreign currency stocks.

Scheme's inexact->exact function just converts the floating-point
representation of a number into an exact rational (documented in the
API Reference, Simple Generic Data Types, Numerical data types, Exact
and Inexact Numbers), which isn't what we want.

We want the number converted to exact directly from the string and to do
that we have gnc-fq-helper preface it with #e.
2019-05-14 13:34:07 -07:00
John Ralls
217418bb8c Merge Adrián Panella's 'numeric' into maint. 2019-05-14 10:09:16 -07:00
Adrian Panella
f905467a44 [numeric] Fix constructor from strings in range (0 ,1)
Fix error that caused strings in the form 0.nnn to be
converted to negative numerics.
2019-05-13 23:05:11 -05:00
Frank H. Ellenberger
6b0f3ce641 Unify optionally required Python version - PR #481 supplement 2019-05-14 04:24:26 +02:00
John Ralls
e6c50357bb Fix test error string to match actual error. 2019-05-13 15:19:19 -07:00
John Ralls
8738644af0 Merge David Palma's fix-division into maint. 2019-05-13 15:15:36 -07:00
Geert Janssens
d4c524a9ef Fix test dependency issue 2019-05-13 20:14:58 +02:00
Christopher Lam
7b1a262eea [balsheet-pnl] refinements to barchart
* barchart should inherit the period selected. this requires
  redefining the periodlist - we need the exact symbol to set the
  barchart's period option.

* balsheet: disable barchart if period is disabled - it makes no sense
  to create link to networth barchart for single-date balsheet

* reorder some options for better usability

* note this may affect saved-reports / saved-tabs but only those
  running bleeding edge maint. I do not intend to make any further
  options changes on this report.
2019-05-13 16:55:31 +08:00
Christopher Lam
67830a0e35 [report-gnome] compact functions
* inline single-use functions
* use srfi-1 list processing functions
* minimise set! calls
2019-05-13 16:55:20 +08:00
Christopher Lam
668b1f6b7b [report-gnome] fix whitespace 2019-05-13 16:55:20 +08:00
Robert Fewell
c38c4557a5 Bug 797051 - Change Overwrite price confirmation
Change when you cancel the overwrite price confirmation so that you
return back to the 'Price Editor' instead of closing it.
2019-05-12 11:58:26 +01:00
Robert Fewell
a560980617 Remove some obsolete code
Remove some code that was used in the old transaction import assistant
to do with embedding an account picker dialog in an assistant.
2019-05-12 11:58:26 +01:00
Robert Fewell
e76ebf4c60 Change the Placeholder warning in the Account picker
When an account is selected it is checked for being a placeholder and
if it is a warning dialog was created. This was pointed out as being
disruptive so this change controls the sensitivity of the OK button and
displays a warning in the account picker dialog.
2019-05-12 11:58:26 +01:00
Robert Fewell
ea0982eb33 Stop some errors when cancelling the QIF import
The imported_account_tree variable is only set when the 'start import'
button is pressed on assistant page 'QIF import' so only process the
undo from there.
2019-05-12 11:58:26 +01:00
Robert Fewell
35b3d6d187 Bug 668349 - Scroll to selected accounts in QIF import tree views 2019-05-12 11:58:26 +01:00
Robert Fewell
d7b40c788b Bug 754710 - Add column sorting to Qif import Match views 2019-05-12 11:58:26 +01:00
Robert Fewell
9504b7067d Bug 728873 - In Qif importer use the enter on account entry
Focus is already on the account entry so enable the use of the enter
key to proceed to the next page when you are finished changing the
account name for a qif file.
2019-05-12 11:58:26 +01:00
Robert Fewell
1dc99f1fa6 Going back from 'Qif files you have loaded' crashes
Once you have unloaded all files on the above page and go back Gnucash
will crash as it was using an invalid file, check for selected_file in
the ...import_account_prepare function.
2019-05-12 11:58:26 +01:00
Robert Fewell
29063fc9d2 With no files in the Qif importer it is possible to proceed
On the page 'Qif files you have loaded' it is possible to unload files
and if all files are unloaded it was still possible to proceed so
disable the next button if no files are in the list.
2019-05-12 11:58:26 +01:00
Robert Fewell
bb49a177cf Bug 583277 - Ask for confirmation for cancelling QIF import 2019-05-12 11:58:26 +01:00
Robert Fewell
bca3bd379e Bug 642824 - Check for Placeholder Accounts in Qif Import
Placeholder accounts do not allow transactions so when the account
picker dialog is presented, add an error dialog for placeholder
selection and a column to display that the account is a placeholder.
2019-05-12 11:58:26 +01:00
Robert Fewell
ac0eb00141 Bug 397927 - Save the window size/position for Qif Account picker dialog 2019-05-12 11:58:26 +01:00
Robert Fewell
b41cb2f5c2 Bug 797215 - Add sorting to QIF duplicates page 2019-05-12 11:58:26 +01:00
Robert Fewell
e353804d64 Rename some variables to be more notebook specific in previous assistant-qif-import.c change 2019-05-12 11:58:26 +01:00
Robert Fewell
bfbf2c1396 Bug 797204 - Qif import Tradable commodities page
This bug has two elements, the first is that when you have a large
number of tradable commodities you get an assistant page for each one
and if too many you loose site of the assistant buttons. To fix this a
notebook was added to the tradable commodities assistant page with the
individual commodities being added to notebook pages.

The second part was that when editing these an intrusive dialogue was
being raised that displayed the same information as the tooltip which
blocked input. These were removed and the assistant next button enabled
when all entries are valid.
2019-05-12 11:58:26 +01:00
Robert Fewell
b05506ca72 Reformat assistant-qif-import.c source file part4/4 2019-05-12 11:58:26 +01:00
Robert Fewell
75632dae57 Reformat assistant-qif-import.c source file part3/4 2019-05-12 11:58:26 +01:00
Robert Fewell
2e105c94e7 Reformat assistant-qif-import.c source file part2/4 2019-05-12 11:58:26 +01:00