Commit Graph

21430 Commits

Author SHA1 Message Date
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
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
Robert Fewell
aa5601b432 Reformat assistant-qif-import.c source file part1/4 2019-05-12 11:58:26 +01:00
David Palma
aab89065da
Bug 796949 - Fix division and rounding of zero.
Fix division of 128-bit integers so that the remainder inherits the dividend's sign.
Fix rounding for truncated zero.
2019-05-11 23:23:59 +01:00
Christopher Lam
94c5fe9f1d [balsheet-pnl] fix stress-options failure
retained-earnings-fn will return a list of monetary (for different
currencies) or a monetary (all currencies converted). either must be
negated. handle separate paths separately.
2019-05-10 22:35:31 +08:00
Christopher Lam
e983d07cb1 [balsheet-pnl] Initial commit 2019-05-10 22:08:26 +08:00
Christopher Lam
101f840255 [taxtxf] compact get-acct-tax-info 2019-05-10 20:02:16 +08:00