Commit Graph

22441 Commits

Author SHA1 Message Date
Geert Janssens
bbeb9a2b62 Drop all gnc-module dependencies and includes from compilation units that no longer use it
This also drops the python wrapper for gnc-module. As for the guile wrappers,
python should use other means of loading our shared libraries.

This commit required a few tweaks to the dependency chain as some units
inherited dependency information from gnc-module's public dependency
interface.
2020-04-24 22:16:24 +02:00
Geert Janssens
abf29aa196 Drop the gnc-module wrapper around the test-engine library
It's not adding anything
2020-04-24 21:29:20 +02:00
Geert Janssens
03d7ae8fd0 Convert gncmod-report into an ordinary library
An init function has been added to be called once before using the library.
2020-04-24 21:17:13 +02:00
Geert Janssens
8e40f400ad Convert gncmod-bi/customer-import into ordinary libraries
As with qif-import use gnucash plugin interface to initialize the code.
2020-04-24 20:14:27 +02:00
Geert Janssens
968e979e83 Convert gncmod-log-replay into an ordinary library
As with qif-import use gnucash plugin interface to initialize the code.
2020-04-24 18:31:40 +02:00
Geert Janssens
4b51c630f4 Convert gncmod-csv-import/export into ordinary libraries
As with qif-import use gnucash plugin interface to initialize the code.
2020-04-24 18:14:40 +02:00
Geert Janssens
468f34477a Convert gncmod-qif-import into an ordinary library
All importers have a have a gnucash plugin interface so that will be used
to add the importers.
2020-04-24 17:47:50 +02:00
Geert Janssens
01a00afe23 Convert gncmod-register-gnome into an ordinary library
Setting up its cell types is now initiated from gnucash-bin.c/inner_main.
2020-04-24 17:06:12 +02:00
Geert Janssens
8a764f23e2 Convert gncmod-gnome-search into an ordinary library
Search initialization happens now in gnucash-bin.c/inner_main. That will also add
a hook to finalize the search library at shutdown.
2020-04-24 15:30:57 +02:00
Geert Janssens
debb5468f4 Convert gncmod-gnome-utils into an ordinary library
The gnc module did some inititalization stuff which is moved to a new
function gnc_gnome_utils_init that should be called once.
2020-04-24 15:04:00 +02:00
Geert Janssens
58c6993cfb Convert several gnc-modules to ordinary shared libraries
None of these gnc-modules have any particular construction or destruction
code except for loading the modules they depend on. These dependencies
are all loaded anyway in other ways so for these libraries the gnc-module
wrapper code brings no benefit.
2020-04-24 10:11:15 +02:00
Geert Janssens
0cfb40efeb CMake - use configure_file instead of file(COPY ) wherever possible
file(COPY ) will only trigger when the destination file doesn't exist yet.
It won't retrigger on source file changes.
configure_file on the other hand will. To avoid unwanted substitution
attempts this can be invoked with the COPYONLY keyword.
Disadvantage of configure_file is that it will only take one
input file where file(COPY ) can operate on a list of files.
As such the configure_file statement has to be wrapped in a foreach.

A few uses of file(COPY ) can't be replaced as they are setting
file permissions. And the one in make_dist has been kept as that
always operates on an empty directory, hence copying is guaranteed.

The former will monitor the file for updates and copy it again
the latter will only copy the file if it doesn't exist in the destination yet
2020-04-19 21:23:22 +02:00
Geert Janssens
261bff1250 Drop unused module file in xml backend 2020-04-19 21:23:22 +02:00
Geert Janssens
9d96097032 Convert gncmod-generic-import module into ordinary shared library gnc-generic-import 2020-04-19 21:23:22 +02:00
Geert Janssens
954c1a001d Convert gncmod-html module into ordinary shared library gnc-html
The module wasn't being used.
2020-04-19 21:23:22 +02:00
Geert Janssens
6cedd0d7a6 Drop stray inclusion of (gnucash gnc-module)
Scheme code is no longer using gnc-module functionality
2020-04-19 21:23:18 +02:00
John Ralls
a392190adf No gnucash/gettext scm module anymore, the translation defs are in core-utils. 2020-04-14 14:22:40 -07:00
John Ralls
2270b851ba Merge Jeff Law's 'lto-fix' into master. 2020-04-14 11:24:37 -07:00
Bill Nottingham
592c3ad562 Fix building with link-time-optimization.
Patch from Jeff Law (law@redhat.com):
Rename one instance of struct _iterate to struct _qofid_iterate to
avoid ODR problems with LTO
2020-04-14 10:13:48 -04:00
John Ralls
3ca8fa1229 Merge branch 'maint' 2020-04-13 11:27:14 -07:00
John Ralls
1365a19e2e Force WITH_PYTHON=YES for distcheck.
To ensure that it works from the tarball.
2020-04-12 15:51:05 -07:00
John Ralls
e1b0140357 Fix failed build of python tests and failed test in 3.10 tarball. 2020-04-12 13:43:00 -07:00
John Ralls
06033c19cd Fix typo. Really fixes 797674. 2020-04-12 13:40:49 -07:00
John Ralls
7d39ccc9d7 Release GnuCash 3.10 2020-04-11 14:30:22 -07:00
John Ralls
c91fb77fae Bug 797674 - 3.9: test-gnc-path-util failed on Debian amd64 2020-04-11 14:23:27 -07:00
John Ralls
6ac309a92f Update latest translation from the Translation project. 2020-04-11 09:31:59 -07:00
Christopher Lam
4524196ff1 [window-reconcile] when reconciling, warn splits recndate>statement_date 2020-04-11 13:16:04 +08:00
Christopher Lam
95fcbdd692 [window-reconcile] when inputing statement_date, warn if after today 2020-04-11 12:07:09 +08:00
Christopher Lam
77240dba43 [find-transactions] add search for reconciled date 2020-04-11 11:24:00 +08:00
John Ralls
3b0c91bb57 Show transaction value, not amount, for registers with subaccounts.
If the register has subaccounts in different currencies and a
transaction has splits in more than one, the transaction will
incorrectly appear to be unbalanced if we total amounts because
the balancing logic works on split values.
2020-04-10 15:48:41 -07:00
John Ralls
aac3ea6909 Bug 797676 - Register displays amount in transaction currency...
instead of register currency.
2020-04-10 15:48:41 -07:00
Christopher Lam
642885a186 Revert "Bug 797659 - Liabilities in budget report no longer calculate correctly"
This reverts commit 2329c1c508.

Reverted for snap release. Not tested thoroughly yet. Bug 797659 need
further betatesters.
2020-04-10 08:56:37 +08:00
Christopher Lam
9733b4c960 Revert "Bug 797640 - The Reconciliation Window starting balance calculator needs to ignore splits after statement date"
This reverts commit f182d9f912.

Reverted for snap release. Breaks reconciliation when data has future
reconciled_dates.
2020-04-10 08:56:37 +08:00
John Ralls
882fd22ca1 Merge Christoph Holtermann's 'python-app-utils' into maint. 2020-04-06 12:17:03 -07:00
John Ralls
fdfaca5575 Merge Christoph Holtermann's 'python-session-instance-constructor' into maint. 2020-04-06 12:05:21 -07:00
John Ralls
5adf54a5ec Make python console less noisy without --debug. 2020-04-06 11:28:49 -07:00
John Ralls
71eae1f223 Merge Christoph Holtermann's 'python-shell-access-outer-variables' into maint. 2020-04-06 11:15:04 -07:00
c-holtermann
e2c37359ef high level python wrappers for app-utils 2020-04-06 07:22:06 +02:00
c-holtermann
4dcdec664a remove whitespace in parentheses (PEP 8) 2020-04-06 07:03:40 +02:00
c-holtermann
ab843c0b7a include gnucash_core of python bindings in python swig app-utils 2020-04-06 07:03:40 +02:00
c-holtermann
43cebedd3d tests for session 2020-04-06 07:03:40 +02:00
c-holtermann
daff201ffb don't allow instance=None for wrapper objects 2020-04-06 07:03:03 +02:00
c-holtermann
0c42c94cd3 provide locals and globals of calling context to shell on shell init 2020-04-06 06:12:00 +02:00
John Ralls
2bdc936695 Merge Jean Laroche's '797006_subaccounts' into maint. 2020-04-05 15:58:03 -07:00
John Ralls
3b381f25c3 Merge Chris Mayo's iPython-fixes into maint. 2020-04-05 15:16:05 -07:00
John Ralls
640171c211 Merge Jean Laroche's '797318_MRO' into maint. 2020-04-05 14:38:46 -07:00
John Ralls
8ccc1579d9 Bug 797666 - libgnucash/engine/test/test-recurrence.c: In function 'check_valid': 'result' may be used uninitialized 2020-04-05 12:06:02 -07:00
jean
4a8350ece2 797318 - Amounts ending in zero displayed as fractions 2020-04-04 14:43:03 -07:00
Christopher Lam
7189337b02 [eguile-utilities] prevent crash in balsheet-eg.scm
bb986e474 use of (ice-9 match) was technically sound however exposes a
subtle bug; _ in the matching pattern is meant to match anything
however it exposes undefined behaviour when _ is already bound to
gnc:gettext. Solution for now is to omit the second _.
2020-04-05 00:35:15 +08:00
Christopher Lam
d596056786 [eguile] escape-html -> gnc:html-string-sanitize
forgot to substitute function which was removed in a previous commit
32692721. this shouldn't matter because debugging? is #f in
production.
2020-04-04 22:40:01 +08:00