Commit Graph

19660 Commits

Author SHA1 Message Date
John Ralls
01420adb99 Bug 772776 - VERY large queries (over 11000 fields in IN clause) slow...
down GnuCash

Replace with joins or subqueries. Affords a 20% speedup on Windows.
2018-04-14 10:18:01 -07:00
John Ralls
e90a662a20 Use subquery instead of instancevec GncSqlTransBackend::load_all. 2018-04-14 10:18:01 -07:00
John Ralls
b739661171 Remove functions marked G_UNUSED.
More noise reduction.
2018-04-14 10:18:01 -07:00
John Ralls
9b64357427 Remove LOAD_TRANSACTIONS_AS_NEEDED from SQL backend.
We're not ready for that and until we are it's just noise.
2018-04-14 10:18:01 -07:00
John Ralls
e4d0ad9dda Reduce use of gnc_sql_slots_load_for_instancevec. 2018-04-14 10:18:01 -07:00
Geert Janssens
a39ba1672a Merge branch 'unstable-tr-fix' of https://github.com/christopherlam/gnucash into unstable 2018-04-14 18:59:26 +02:00
Geert Janssens
dcfc1280bd Base invoice posted status on the presence of a posted transaction rather than a posted account
Bills and invoices that are posted and subsequently unposted again still store their
posted account internally as a convenience to the user (upon reposting the old
account will be offered by default) so it's not a reliable test for the posted state.
The posted transaction on the other hand is guaranteed to only exist when the invoice is
posted. This should fix a slew of small and perhaps larger side effects, such as
a posted bill still appearing as editable, critical warnings when creating new bills/invoices
and so on.
2018-04-14 18:46:26 +02:00
Geert Janssens
6093e5978f Bug 794767 - Dates default to 01/01/1970 2018-04-14 18:39:18 +02:00
Christopher Lam
8db114658b html-font: add default font family
Windows ships with GTK2 in which the default font styles are named
"Sans" "Sans Bold" "Sans Normal" etc. There is no "Sans" font in
Windows; I vote to add a default "Sans-Serif" font-family which is
valid CSS. This ensures exported reports are shown as intended.
2018-04-15 00:16:34 +08:00
Christopher Lam
1ee2c08306 GSTR: close br tag; add empty lines to empty-report-message
This will be useful for unit testing, and for displaying
gnc:render-options-changed.
2018-04-14 23:47:00 +08:00
Christopher Lam
b02e4a7c14 GSTR: bugfix individual tax on sales should be negated
The GST-on-sales relates to income, therefore should be negated.
2018-04-14 23:47:00 +08:00
Christopher Lam
4acc5a23f5 TR: instead of hand-crafting html-string, use html-table API
Using html-table API seems more robust than hand-crafting HTML.
2018-04-14 23:47:00 +08:00
Christopher Lam
2d9021ca42 TR: catch invalid regex
This commit prevents report crashing when either Account or
Transaction Matcher strings are invalid POSIX regular expressions and
called with make-regexp.
2018-04-14 23:47:00 +08:00
Christopher Lam
d273a3304e TR: convert Reconcile Status Filter to QofQuery
I presume QofQuery based in C is faster than scheme filtering. No
saved-reports incompatibility is expected.
2018-04-14 23:47:00 +08:00
Christopher Lam
73ffcaa81e TR: refactor add-subtotal-row
This commit refactors add-subtotal-row to use a named let. This avoids
set! calls, and is more idiomatic scheme.
2018-04-14 23:47:00 +08:00
Geert Janssens
3a44b368d4 Merge branch 'unstable' of https://github.com/Abschiedsstein/gnucash into unstable 2018-04-14 17:36:09 +02:00
Geert Janssens
3a46088ca8 Merge branch 'fixes2' of https://github.com/Bob-IT/gnucash into unstable 2018-04-14 17:23:21 +02:00
Geert Janssens
a8c17c2078 Bug 795155 - CSV import does not distinguish between deposit and withdrawal 2018-04-14 12:41:26 +02:00
Geert Janssens
d567ee1049 Bug 769686 - Notes not imported when using update and reconcile in import transactions from CSV 2018-04-14 12:41:26 +02:00
Geert Janssens
7321c995b4 csv-impport - Allow empty amount fields
Treat empty amount fields as 0. This is necessary for example in the case the
csv import file has both a deposit and a withdrawal column.

Note this issue was masked by the bug fixed in the previus commit.
2018-04-14 12:39:23 +02:00
Geert Janssens
10f8f6a750 Bug 795082 - CSV import crashes if a transaction's 'Account' field is empty and no default Account set 2018-04-14 11:27:06 +02:00
Geert Janssens
e2535abb95 Remove reference to GTEST_DISABLE, it no longer exists
The google test framework is a required dependency.
2018-04-14 08:17:34 +02:00
Robert Fewell
c9fd6832b8 Bug 795142 - Unable to enter account codes in business sheets
In Bills, Invoices and Expense vouchers you can not enter an account
code in an account field like you can on a normal register, enable this.
2018-04-14 03:57:39 +01:00
Robert Fewell
805094d570 Remove trailing spaces and replace tabs with spaces
Remove trailing spaces and replace tabs with spaces in the reconcile
source files.
2018-04-14 03:56:14 +01:00
Robert Fewell
dd28f4ed4f Remove the set transient parent setting for Reconcile window
The Reconcile option is already a window so it is not necessary to set
this value which allows the jump to transaction to work properly.
2018-04-14 03:23:57 +01:00
Robert Fewell
48db993932 Align the reconcile column titles to that of the values 2018-04-14 03:22:51 +01:00
Robert Fewell
9094f6e5a9 Bug 795101 - Scrollbar floats and covers toggle buttons
When the scrollbar appears for the reconcile windows it can float above
the reconcile toggle button which make it difficult to toggle. Move this
column to the start which has the advantage of aligning the amount
column above the Total value.
2018-04-14 03:18:49 +01:00
Robert Fewell
6114105115 Save the tab label width so we do not have to get it again 2018-04-14 00:09:34 +01:00
Robert Fewell
e81b2ccca3 Date Format dialog flashes up when file/properties used
When you select the File/Properties dialog, in the construction of that
a 'Date Format' dialog flashes up while the date component is moved to
the properties dialog. Can mainly be seen on Windows so remove the
visible setting in glade file.
2018-04-14 00:05:25 +01:00
John Ralls
4a97269e4b Correct a g_log_level in test_gnc_pricedb_lookup_day. 2018-04-12 15:17:01 -07:00
John Ralls
85cc574d50 Prevent throw in gnc-pricedb.
If a price lookup is given an invalid time64/timespec (i.e. INT64_MAX)
then just return NULL instead of trying to find the nearest price.
2018-04-12 15:17:01 -07:00
John Ralls
16ba1e39b1 Bug 795080 - Some dates reset to 01/01/1970
An odd corner case: BST apparently came off of DST at 23:00 26 Oct 2014,
so midnight that day was ambiguous about being DST or not; that causes
the local_date_time constructor to throw in spite of the tm.is_dst element
being 0 (meaning pick standard time).

Instead of just failing in that case, try constructing a local_date_time
three hours later then adjust it back three hours. If *that* doesn't work
then throw a std::invalid argument.
2018-04-12 15:17:01 -07:00
Geert Janssens
b5ac8591fc Merge branch 'fixes' of https://github.com/Bob-IT/gnucash into unstable 2018-04-10 19:11:13 +02:00
Geert Janssens
6810c2a689 Fix typo 2018-04-10 10:06:34 +02:00
John Ralls
c05aeb85ec Merge Bill Nottingham's exception type fix into unstable. 2018-04-09 15:12:56 -07:00
John Ralls
192a3c3d2b Set GNC_VCS at build time instead of when making the tarball.
Because the tarball is always made from a VCS repo.
2018-04-09 15:10:25 -07:00
John Ralls
ba3bf37d93 Merge DiMan's GNUCASH_MICRO_VERSION fix into unstable. 2018-04-09 12:22:05 -07:00
Robert Fewell
8bfbc7791e Bug 794953 - Ellipsize on short tab labels
Correct error on when to ellipsize tab labels. Also as this is used in
two places separate out this to new function so it is not duplicated.
2018-04-09 19:12:35 +01:00
Robert Fewell
facd26c0ef Bug 794994 - Display Alphavantage key in full
Set the entry to expand so all the space is used to display.
2018-04-09 19:11:50 +01:00
Robert Fewell
8975158ac6 If there are no prices in the db, critical errors are flagged
When dialog transfer is used between two commodities and there are no
prices in the db a critical error is logged. Test for price object
being NULL before retrieving the price for the error message.
2018-04-09 19:09:55 +01:00
Robert Fewell
5af11ced47 Invalid cast for parent of transfer dialog
Trying to cast from SplitRegister to GtkWidget.
2018-04-09 15:10:02 +01:00
John Ralls
7a0f0d57c8 Bug 782144 - git-master - Save Corrupts Data File / Not Open Data File
After much thrashing this turned out to be caused by a date string
with a 3-digit year and that caused an unexpected boost::bad_cast
exception from boost::posix_time::time_from_string().

To prevent that and anything like it, pre-parse the string with
regular expressions to classify them and split out the timezone
if there is one. If neither (perhaps eventually none) of the
regexes match throw std::invalid_argument. The C function will
catch this and return 0.
2018-04-08 17:37:39 -07:00
John Ralls
89a1cfd24a Add note about ALLOW_OLD_GETTEXT. 2018-04-08 14:11:28 -07:00
John Ralls
11ac05aedb Merge branch 'master' into unstable
Because I released 3.0 from the wrong branch
2018-04-08 11:25:18 -07:00
Henrik tom Wörden
34c464446a MAINT: removed reference to README.git
The reference was inappropriate as README.git no longer contains
information on how to build gnucash.
2018-04-07 12:21:51 +02:00
Henrik tom Wörden
a909f802de FIX: Corrected typos 2018-04-07 12:20:58 +02:00
John Ralls
e79079b217 Bug 793461 - Transaction matcher window blank when importing QFX
The MacOS part. MSWin is a different problem.
2018-04-06 15:57:05 -07:00
John Ralls
87b0ac06b8 Update README for 3.0. 2018-04-06 15:46:29 -07:00
John Ralls
91c18beac1 Add gettext and doxygen to dependencies. 2018-04-06 15:46:16 -07:00
John Ralls
36c771b156 Fix up indentation in README.dependencies so that it matches the subheaders. 2018-04-06 14:48:20 -07:00