Commit Graph

19677 Commits

Author SHA1 Message Date
John Ralls
5e807a0e18 Merge branch 'maint' into unstable 2018-04-14 16:39:38 -07:00
John Ralls
8a3889d088 Merge Chirs Lam's Bug 795064 - Enable subtotal-only if... into unstable. 2018-04-14 16:31:16 -07:00
Christopher Lam
044583d72f Bug 795064 - Enable subtotal-only if either sortkeys are dates
This will allow 'show subtotals only' if sortkeys are date-types. This
allows, for example, prime-sortkey=date, yearly. sec-sortkey=date,
monthly.
2018-04-15 07:18:17 +08:00
John Ralls
40a266fc62 One more catch-by-value error. 2018-04-14 16:03:04 -07:00
John Ralls
518519654c Merge Bill Nottingham's 'gmock-trial' into unstable. 2018-04-14 15:52:26 -07:00
John Ralls
4ba77f7b09 Remove another gnc_pop_locale(). 2018-04-14 13:11:23 -07:00
John Ralls
a04fd573ef Bug 792105 - Startup takes several minutes
set/get_locale are apparently very expensive on Mingw64, and setting
the C locale for extracting a string is unnecessary.

Unfortunately the released version of libdbi still uses strtod so
setting the C locale *is* still necessary for retrieving floats
and doubles and for passing queries.

Thanks to Mkubat for the diagnosis.
2018-04-14 12:38:04 -07:00
Geert Janssens
4e3bf5a5cb Bug 118391 - Long currency names untranslated
Fix for Win32
2018-04-14 12:38:04 -07:00
John Ralls
f680823dbf Bug 795039 - Crash on startup using Technicolor Style sheet in report
The mingw-w64 toolchain bizarrely substitutes scm_to_locale_string()
for scm_to_utf8_string(). This results in latin1 (yeah, "locale" is
a lie) instead of utf8 which causes an assertion in
g_utf8_collate_key().

Perhaps equally bizarre, the compiler doesn't make the substitution
with scm_to_utf8_stringn(), so use that instead.
2018-04-14 10:18:01 -07:00
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
John Ralls
868489b1c4 Fix typo. 2018-04-10 09:52:02 -07:00
John Ralls
b1915a0b89 Bug 795049 - GnuCash 2.6.20-1 (Fedora Linux package) is unable to open...
MariaDB.
MariaDB (and probably MySQL) doesn't accept two queries in a single
command.
2018-04-10 09:34:06 -07:00
John Ralls
cdeee96074 Revert "Bug 795049 - GnuCash 2.6.20-1 (Fedora Linux package) is unable to open..."
This reverts commit aea33ca515 because
it doesn't fix the problem, just tests that the problem is only on
MySQL/MariaDB.
2018-04-10 09:30:58 -07:00
Geert Janssens
6810c2a689 Fix typo 2018-04-10 10:06:34 +02:00
John Ralls
9319858b96 Release 2.6.21 2018-04-09 15:30:36 -07:00
John Ralls
655803a1ca Remove reference to the deleted gnc-value-portfolio script from README. 2018-04-09 15:23:40 -07:00
John Ralls
c3f528b80c Bug 795068 - src/optional/python-bindings missing several files 2018-04-09 15:17:32 -07:00
John Ralls
c05aeb85ec Merge Bill Nottingham's exception type fix into unstable. 2018-04-09 15:12:56 -07:00