Commit Graph

21199 Commits

Author SHA1 Message Date
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
Adrian Panella
93bf1a0f23 Bug 646361 - Estimate budget option to have same amount in each budget period
If set, all periods get the same budget, from the average
of the reference period.
2019-05-15 21:53:35 -05: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