Commit Graph

21621 Commits

Author SHA1 Message Date
John Ralls
b8b33b9591 Revert "More conversions from pkg-config variables to imported targets."
This reverts commit 1a9fcfefad because
on MinGW cmake complains about the paths in pkgconfig files. This can
be addressed by using the MSYS2 cmake instead of the MINGW32 one, but
that requires some other changes... and there's also a path separator
bug in that version of FindPkgConfig.cmake.
2019-09-21 15:53:25 -07:00
Geert Janssens
980daeec83 Make swig wrapper generation just another build step
Until now it was only done when building from git, but there's no
real reason not to do it as a normal build step in all cases.
It may have been unreliable in the past. There's no evidence
it still is.
2019-09-21 22:50:51 +02:00
Christopher Lam
7cdb79ccf2 Merge branch 'maint' 2019-09-21 13:56:10 +08:00
Christopher Lam
496ca94a98 [reports] use new API gnc:collector+ and gnc:collector- 2019-09-21 13:50:38 +08:00
Christopher Lam
f72df3e1bc [report-utilities] gnc:account-get-balances-at-dates: use quicksort
stable-sort! is slower than quicksort.
2019-09-21 13:50:38 +08:00
Christopher Lam
7587c3b4e3 [API] gnc:collector+ and gnc:collector- for collector arithmetic
(gnc:collector+ ...) equivalent to (+ ...)
(gnc:collector- ...) equivalent to (- ...) and will also handle
single-argument sign negation.
2019-09-21 13:46:15 +08:00
Christopher Lam
0511ce723e [API] gnc:list-flatten flattens lists recursively
and is a schemey algorithm rather than a report algorithm, so, belongs
centrally.
2019-09-21 11:18:26 +08:00
Christopher Lam
7a662272b3 [invoice] render tax/tax number into 'our-details' section 2019-09-20 14:57:57 +08:00
Christopher Lam
2da5944596 [taxtxf-de_DE] fix invalid code
(unless book ...) is equivalent to (if (not book) ...) therefore this
snippet was incorrect.

previous commit ensures book always returns a non-#f object therefore
there's no need to handle #f anymore.
2019-09-20 14:57:57 +08:00
Christopher Lam
3208879e64 [app-utils] upgrade Tax/Tax Number option to all locales
Previously de_DE locale will add a *global* 'Tax/Tax Number'
option. This is immediately translated.

This change will upgrade it to be present in all locales, and can be
queried by any report.
2019-09-20 14:57:57 +08:00
Christopher Lam
49372e76be Ensure book returns current-book
fixes https://lists.gnucash.org/pipermail/gnucash-user/2019-September/086967.html

because occasionally account will be null or #f, causing error when
passed to gnc-account-get-book.
2019-09-20 14:57:53 +08:00
Christopher Lam
0ab0d23b00 Bug 797418 - In budget report, column with Actual Totals for Liabilities and Income are reversed
budget.scm had some cleanup whereby totals were accumulated but are
now re-retrieved. Forgot to reverse actuals for some account signs
reversals.
2019-09-20 11:12:37 +08:00
Christopher Lam
656d2718d8 [trial-balance] compact (collect-unrealized-gains)
use functional style
2019-09-19 21:53:09 +08:00
Christopher Lam
6b573de128 [trial-balance] use coll-plus and coll-minus for functional style 2019-09-19 21:53:09 +08:00
Christopher Lam
acf359a797 [trial-balance] upgrade coll-plus and coll-minus to report-wide fns 2019-09-19 21:53:09 +08:00
Christopher Lam
f88c54bb50 [trial-balance] use gnc:commodity-collector-get-negated 2019-09-19 21:49:13 +08:00
Christopher Lam
0c9c9c2594 [test-trial-balance] augment to test unrealized gains
these were already tested -- see previous tests *do* include
'unrealized losses'. augment by adding another couple foreign transfer
to change the unrealized gain/loss amount.
2019-09-19 21:45:07 +08:00
Geert Janssens
9214f2ed5b Merge branch 'maint' 2019-09-18 22:42:48 +02:00
Christopher Lam
16da1acf1d Merge branch 'typos1' of git://github.com/luzpaz/gnucash into luzpaz-typos1 2019-09-18 21:36:29 +08:00
Christopher Lam
5344cbc7ae [reports] delete unused exports code. 2019-09-18 21:35:53 +08:00
Christopher Lam
0f6ad8263b Remove deprecated functions 2019-09-18 21:20:05 +08:00
Christian Stimming
6ae7cdc8f2 [i18n] German translation update
Especially in the CSV import.
Total: 5308 translated, 28 fuzzy, 22 untranslated.
2019-09-17 22:31:27 +02:00
Christian Stimming
ccaaa14187 [aqbanking] Again use aqbanking version number for new function instead of cmake_symbol_check
This reverts commit adae341d, "Use cmake_symbol_check to test for
AB_Banking_RuntimeConfig_SetCharValue". We received multiple reports
that the cmake check fails and the behaviour unexpectedly does not use
the new function. As this is completely counter-intuitive as long as the
new-enough aqbanking version are there, we better just stick
to the aqbanking version numbers, especially because this function is used
only in exactly one place here.
2019-09-17 22:09:47 +02:00
Christian Stimming
67069ff6a6 [aqbanking] Fix non-const return argument in aqbanking6 that we must free ourselves. 2019-09-17 21:54:46 +02:00
Geert Janssens
594388b765 Drop support for gettext older than 0.19.6 2019-09-17 15:46:50 +02:00
Geert Janssens
797654133b Use newer cmake version checks 2019-09-17 15:46:50 +02:00
Geert Janssens
f1bab7af40 Set component type in appdata metadata
Required for flathub integration.
2019-09-17 11:54:34 +02:00
Christian Stimming
50e59077d7 [aqbanking] Keep transaction purpose conversion
With the newest (beta) aqbanking versions there is a renamed
version of the previous getter of the txn purpose available, which
had been switched to a different semantic in between.
2019-09-15 22:15:58 +02:00
John Ralls
6753b30b86 Convert GtkMacIntegration to package-style dependencies. 2019-09-15 12:27:43 -07:00
Christopher Lam
ecbc4864de [test-owner-report] add plain stylesheet
test-owner-report (or any other report test) requires a stylesheet to
render html properly. It was removed accidentally in 6d75be3b.
2019-09-15 12:59:51 +08:00
John Ralls
401dd3db64 Bug 797415 - cannot build without libsecret-1-dev 2019-09-14 16:17:26 -07:00
John Ralls
76979554a0 Ubuntu 18.04 requires explicit link to pthreads. 2019-09-14 11:49:12 -07:00
Christopher Lam
ec5b110936 [trial-balance] compact function
use functional instead of accumulator style to handle
adjusting/closing debit/credit amounts.
2019-09-14 16:20:00 +08:00
Christopher Lam
268e9670e2 [trial-balance] rewrite to omit account-get-pos-trans-total-interval
Reuse adjusting-splits and filter for positive values.

This function was buggy... see total-query is defined as the
output of qof-query-merge-in-place, or qof-query-destroy, both
returning #unspecified; this fails when passed to qof-query-run.
2019-09-14 15:35:47 +08:00
Christopher Lam
0ec82872b0 [trial-balance] speedup: retrieve closing/adjusting splits once
only 2 qof-query at the start, instead of 2 qof-query per account
2019-09-14 14:35:14 +08:00
Christopher Lam
6e12bf81a9 [trial-balance] *untabify/delete-trailing-whitespace/reindent*
global reindent
2019-09-14 14:24:00 +08:00
Christopher Lam
525bcd39ed [test-trial-balance] initial commit
this is not yet 100% coverage, but is adequate to test upcoming
changes to adjusting and closing balance calculators.
2019-09-14 14:23:38 +08:00
luz.paz
cfc7cef7d6 gnucash/gtkbuilder source typo found 2019-09-13 20:28:14 -04:00
luz.paz
f6c96f9fe8 Fix typos for gnucash/report
Found via `codespell -q 3 -D ~/Projects/codespell/codespell_lib/data/dictionary.txt -S *.po,./po,*.min.js,./ChangeLog*,./NEWS,./doc/README*,./AUTHORS,./libgnucash/tax/us/txf-de*,./data/accounts -L ans,cas,dragable,gae,iff,iif,mut,nd,numer,startd,stoll`
2019-09-13 20:26:59 -04:00
luz.paz
65bb60d621 Fix typos for gnuchash/ doc/ bindings/ and misc.
Typos found via `codespell -q 3 -D ~/Projects/codespell/codespell_lib/data/dictionary.txt -S *.po,./po,*.min.js,./ChangeLog*,./NEWS,./doc/README*,./AUTHORS,./libgnucash/tax/us/txf-de*,./data/accounts -L ans,cas,dragable,gae,iff,iif,mut,nd,numer,startd,stoll`
2019-09-13 20:26:03 -04:00
John Ralls
1a9fcfefad More conversions from pkg-config variables to imported targets.
Also converts ICU detection from pkgconfig to FindICU.
2019-09-13 17:05:35 -07:00
John Ralls
e4eedfe662 Remove test for GDK_MODIFIER_INTENT_MOD_SELECTION.
Added in 3.14, we require 3.18.
2019-09-13 17:05:35 -07:00
Geert Janssens
ffe7906e02 Fix missing dependencies for test-module-deprecation 2019-09-13 20:09:57 +02:00
Matthew Forbis
c675b5b5e4 Fix incorrect signature error with Cmake >= 3.6 and Webkit1. 2019-09-13 10:52:28 -07:00
John Ralls
fb09555fa1 Fix html-charts build failure when runing ninja check without running ninja. 2019-09-13 10:09:29 -07:00
John Ralls
e38cc91452 Merge branch 'maint'
Bumping the required cmake to 3.10 and removing GncPkgConfig.cmake as
no longer required.
2019-09-13 09:43:04 -07:00
Christopher Lam
355d28e721 [trial-balance] fix qof-query-destroy
qof-query-destroy inv-query never previously triggered. fix. also map
output is discarded, it's more readable to use for-each.
2019-09-13 23:38:16 +08:00
Christopher Lam
26a9ccc181 Bug 797408 - Find Transaction Window -> Search Criteria Section -> Add Search Criteria -> Section does not expand to new size to include a newly added Search Criteria 2019-09-13 18:54:46 +08:00
Christopher Lam
da655cfaa9 [balsheet-pnl] ensure txns on last report-date are processed
bugfix. after writing commit message to 23d0fa132, I had to verify the
strong statement regarding txns on last report-date, and found that I
was incorrect. ensure txns are previously accounted for.
2019-09-13 18:54:46 +08:00
John Ralls
41c58ec00a Convert Gtk3 and Webkit to imported targets.
This causes CMake to include their headers with -isystem instead of -I,
so the compiler doesn't generate warnings on them. ArchLinux was failing
to build because of such warnings.

Includes a function from cmake 3.6 to allow this to work on systems like
Ubuntu 14.04 that still provide only cmake 3.5.
2019-09-12 21:20:29 -07:00