Commit Graph

19660 Commits

Author SHA1 Message Date
Christopher Lam
551e98435d remove begindate in qofquery
This was producing a date corresponding to 01-01-1970. make-zdate was
being used in aging.scm as a hack to search all splits prior to
end-date. fix the date query logic to set begin-date match to #f.
2018-03-05 11:12:13 +08:00
fell
580ce72da7 Merge branch 'maint' into unstable 2018-03-05 03:40:48 +01:00
Di Mang
fc5bdfa10b Revision and expansion of accounts for the Russian language.
In addition, replacing of commodity: USD => RUB.

Cherrypicked from unstable and adjusted to main
2018-03-05 03:05:43 +01:00
Di Mang
a72e0bdd5e Add spacing between border and text in dialog "New Accounts Hierarchy Setup".
There is no spacing between the text and the frame in the dialog
"New File" > "New Accounts Hierarchy Setup". In some cases - when
changing the window size - the text appears next to the frame.
It does not look very clean. As a solution, I have defined here a small spacing: 5px.
2018-03-04 14:09:24 +01:00
Christopher Lam
51e2511223 Bug 765846 - Expense Over Time for subaccounts: An error occurred while running the report
fix crash if acc-depth too low
2018-03-04 19:21:52 +08:00
Christian Stimming
18f0d053b0 Fix auto-selection of splits in reconcile
Really use all splits of any given day. Up to now usually the splits
of the given date were not or not all included, as the time comparison
didn't correctly ignore any given time-of-day of the splits. Instead,
all possible time-of-days should be included.
2018-03-04 00:19:38 +01:00
Di Mang
335082480d Revision and expansion of accounts for the Russian language.
In addition, replacing of commodity: USD => RUB.
2018-03-03 22:08:39 +01:00
Christopher Lam
2d983c6703 bugfix gnc_ui_new_account_window
parent -> parent_acct
fixes bug introduced in c76efd656e
2018-03-03 00:26:49 +08:00
Geert Janssens
e4884cdf09 Merge branch 'maint' into unstable
Ignoring changes in obsolete test-flat-bayes.c (was removed before on unstable)
2018-03-01 19:59:34 +01:00
Geert Janssens
cf73c93bdf Bug 792008 - gnucash 2.6.19 fails to build
Replace g_assert_true with g_assert for now
2018-03-01 19:58:07 +01:00
Geert Janssens
13e6880b34 Bug 745941 - Review of po Headers / make pot 2018-03-01 18:31:49 +01:00
Geert Janssens
a64e40dac3 Properly detect git in case of linked worktree 2018-03-01 18:21:38 +01:00
Christopher Lam
546b54c976 TR: Show "Grand Total" only if it has been generated. 2018-03-01 21:23:55 +08:00
Christopher Lam
cb18d3ca42 test-TR: Add dual-column testing 2018-03-01 20:55:17 +08:00
Christopher Lam
4f98391a27 test-TR: unit tests
initial attempt
2018-03-01 20:55:17 +08:00
Christopher Lam
5176850083 TR ENH: Add "Subtotal Summary Grid"
The subtotal summary-grid will tabulate subtotals - prime-sortkey
vertically, sec-sortkey horizontally. This will be useful, for
example, with prime-sortkey = accounts, sec-sortkey = date,
sec-subtotal = monthly... will produce a monthly time series
spreadsheet.

Introduces grid datastructure.

This is a simple list, each element is a vector
(vector row col data).

In the Transaction Report, row and col are defined
as a pair (cons sortvalue subtotal-heading), whereas:
- sortvalue = string/number used to sort the grid headers,
- subtotal-heading = string used as grid header row/col
- data = the gnc-monetary collector.
2018-03-01 20:55:17 +08:00
Geert Janssens
dd0553af6a Merge branch 'scheme-progress-1' of https://github.com/christopherlam/gnucash into unstable 2018-03-01 13:01:29 +01:00
Christopher Lam
8fef1adcc4 date-utilities: bugfix weekly render
This was introduced by 48bdab3.
2018-03-01 12:14:53 +08:00
John Ralls
93f892072c Bug 793947 - Impossible to render printable invoice
gncInvoiceGetID returs a char*, so ~a is indeed the correct code.
Odd that the scheme sprintf used %d to format it.
2018-02-28 19:45:49 -07:00
Christopher Lam
7054cc83bc Bug 793898 - 2.7.4: Incorrect copyright statement in gnucash/report/standard-reports/sx-summary.scm
no copyright claim was intended
2018-03-01 06:40:16 +08:00
Christopher Lam
872aa6b740 TR: change multichoice values from list to symbols
Context: https://wiki.gnucash.org/logs/2018/02/24.html#T05:43:50

Summary: I had formerly set some multichoice values to be a list.
However I think options.scm cannot handle list values. They must be
scheme symbols. It wasn't clear to me during TR refactoring and
development.

The root cause is in options.scm multichoice handling, whereby it's
trying to compare the option value with (eq?); in scheme (eq? (list
"A") (list "A")) is always #f.

06ad55cae9/libgnucash/app-utils/options.scm (L911)
is the relevant old code.
2018-03-01 06:40:16 +08:00
Christopher Lam
90fb712c7f TR: make no-report-data message consistent with initial no-account 2018-03-01 06:40:16 +08:00
Christopher Lam
840e1f8b02 TR: simplify no-account-after-filtering stage 2018-03-01 06:40:16 +08:00
Niels
7ef8e6d489 Fix fall through in Account.cpp
Found with -Wimplicit-fallthrough, but older versions of GCC don't support it. So it will take some effort to add it to the build config.

I think it did not result in a reproducible bug.
2018-02-28 22:23:15 +00:00
Christopher Lam
d8d552ee8a options.scm: tidy (gnc:render-options-changed)
This small change introduces \n into the HTML render.
2018-03-01 05:30:48 +08:00
Geert Janssens
7da9a3ba58 Merge branch 'reg-item' of https://github.com/Bob-IT/gnucash into unstable 2018-02-28 18:16:10 +01:00
Robert Fewell
8353b5693e With register obscured the sheet kept being redrawn
When the register is obscured by another window, the sheet would get
lot of draw events. This was tracked down to getting the foreground
colour for the item-edit widget for the state GTK_STATE_FLAG_NORMAL.
Changed this to use the value obtained from gtk_widget_get_state_flags.
2018-02-28 16:33:54 +00:00
Geert Janssens
ad1664604f Cleanup namespace usage for boost::locale
In a previous commit I wrongly believed xgettext might not find
our strings if we used the fully namespaced boost::locale::translate or
aliased bl::translate instead of just translate. However that's
wrong, so I have changed the code to always use bl::translate.
2018-02-28 16:50:20 +01:00
Geert Janssens
b71c346ef5 Fix typo: should read 'older version of gettext' rather than 'older version of gnucash' 2018-02-28 16:48:49 +01:00
Geert Janssens
66abe02354 Merge branch 'master' of https://github.com/jeblad/gnucash into unstable 2018-02-28 16:10:00 +01:00
Geert Janssens
fbaa41ac47 Merge branch 'register-pref-update' of https://github.com/Bob-IT/gnucash into unstable 2018-02-28 15:44:59 +01:00
Geert Janssens
c186624160 Rework source directory structure for gschema, gtkbuilder and ui files
There is now a directory for each respective file type directly in the gnucash source directory
(This was already started for gschema files before).

In principle all files of each type should go into these global directories. The only
exception is if such a file belongs to an optional module. In that case the file
remains located inside that module's directory. Currently we have ui, glade and gschema file
exceptions in aqb and ofx importers.
2018-02-28 15:38:30 +01:00
Geert Janssens
f111e5958d Simplify POTFILES.in generation
As part of this also:
- Drop POTFILIES.ignore. Relevant lines have been moved to POTFILES.skip
- Remove skip lines for scm file links. With intltool out of the way these are never picked up any more.
2018-02-28 13:40:20 +01:00
Geert Janssens
c29b9c9cbf Remove autotools-only path exception to find reports
With it we can also remove the hack to find standard reports while running
from the build tree.
2018-02-28 12:08:37 +01:00
Geert Janssens
e7ec3a610d Drop no longer used intltool related variable 2018-02-27 23:00:30 +01:00
Geert Janssens
02c69a7933 Handle situation where gettext 0.19.6 is not available
By default we require gettext 0.19.6 as this is needed to generate a translated version of gnucash.desktop and gnucash.appdata.xml.
However this version is not available on some platforms (most notably our own ubuntu 14.04LTS travis instance).
By setting ALLOW_OLD_GETTEXT=ON, the build configuration falls back to generating untranslated versions of said files instead.
2018-02-27 22:38:27 +01:00
Geert Janssens
ba799feb2a Drop intltool in favour or using modern gettext
This requires at least gettext 0.19.6, and will break our ubuntu 14.04LTS test instance on Travis.
The next commit will work around this.
2018-02-27 22:30:06 +01:00
Geert Janssens
3462abe7ad Bug 793460 - gnucash/import-export/csv-imp/assistant-csv-trans-import.cpp:1941 is impossible to translate 2018-02-27 22:30:06 +01:00
Geert Janssens
72a48c0884 Improve config and app data migration to handle renaming of config<version>.user to config-user.scm on all platforms 2018-02-26 18:58:22 +01:00
John Ralls
06ad55cae9 Fix up some formatting problems and an extra bug in NEWS. 2018-02-24 20:02:43 -08:00
John Ralls
749beb197d Release GnuCash 2.7.5 2018-02-24 15:41:20 -08:00
John Ralls
eb5c33ecdb Distribute strings.scm! 2018-02-24 15:33:22 -08:00
John Ralls
f865aeeff6 Update Slovak and Spanish translations from the Translation Project. 2018-02-24 14:22:38 -08:00
John Ralls
d4476d06b4 Block events while creating scheduled transactions.
Events update the UI, which is slow, and if there are a lot of SXes
because it's an old file that can be significant.
2018-02-24 13:02:50 -08:00
Geert Janssens
10ab87d95c Make travis happy
On older stdlibc++ the default constructor of a stringstream is deleted.
2018-02-24 21:36:39 +01:00
Geert Janssens
61a21d12c6 Look for user editable config files in gnc_userconfig_dir instead of gnc_userdata_dir
At present these are
- log.conf
- config-user.scm (previously config.user-2.0)

Implement one-time migration of these files to the proper directory if they previously exist
Look for a log.conf file in gnc_userconfig_dir instead of gnc_userdata_dir

Note this commit also uses boost::locale::translate for the first time.
We may need to fine-tune our use, but in the current state strings marked
for translation using that function are already picked up for gnucash.pot.
2018-02-24 20:39:26 +01:00
Geert Janssens
beff795130 Stop searching for a config.auto file
It's no longer used in gnucash. The preferences are now handled via gsettings instead.
2018-02-24 20:39:26 +01:00
John Ralls
765c117aac Optimize GncDateTime string constructor.
Turns out the stream facet parser is really slow. Since we have a
well-constrained universe of input formats we don't really need that
overhead. This got a 33% improvement in loading a large SQLite database.
2018-02-24 11:12:13 -08:00
John Ralls
c10bb89547 Delete unused and redundant macro. 2018-02-24 11:12:13 -08:00
John Ralls
c76efd656e Transient-for for Edit/New Account dialog. 2018-02-24 11:12:13 -08:00