Commit Graph

21450 Commits

Author SHA1 Message Date
Matthew Forbis
c675b5b5e4 Fix incorrect signature error with Cmake >= 3.6 and Webkit1. 2019-09-13 10:52:28 -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
John Ralls
c23f3f05e3 Fix deprecated G_TYPE_INSTANCE_GET_PRIVATE and G_INLINE_FUNC
with the function/declaration that they substituted.
Note that this doesn't use the recommended new GObject creation macros
because the class names in libgnucash/engine don't follow the gnome
naming convention.
2019-09-12 15:25:42 -07:00
Geert Janssens
70eb7172d5 Drop special case for old cmake versions
We require 3.5 which is more recent than 3.3
2019-09-12 22:54:24 +02:00
Geert Janssens
82b3af9695 Change scheme file compile command invocation
This
* adds normal double quotes around the guild function call
* removes escaped quotes from paths
* add 'VERBATIM' keyword to let cmake perform its own escape logic on the commands

Verified to work on Windows and linux with both ninja and make.
2019-09-12 22:54:24 +02:00
Geert Janssens
84dede1ab7 Remove leaked work in progress file from POTFILES.in 2019-09-12 22:54:24 +02:00
Christopher Lam
23d0fa1324 [balsheet-pnl] bugfix last pnl period must not be decreased by 1 day
logic error to calculate last period date pair for col-header.

pnl report-dates are stored as a list of time64. consider a regular
profit&loss for "quarterly income & expense amounts for last
calendar year". dates are 1-jan to 31-dec. the report-dates are
'(1-jan 1-apr 1-jul 1-oct 31-dec). the inc/exp accounts balances are
queried for the above dates, and the delta change (sans closing
entries) constitutes the desired answer.

the col-header needs to report "1-jan to 31-mar", which it does by
retrieving 2 consecutive dates in the list (1-jan 1-apr), then
decrease second date by 1 day to obtain "1-jan to 31-mar" . however
this fails for the last period which would return '1-oct to 30-dec'.

this commit changes display for last period to return last report-date
so that the header is fixed to '1-oct to 31-dec'.

this is cosmetic for header dates only, calculations of periodic
income/expense amounts were never affected and included entries on the
last report-date (e.g. 31-dec as above).
2019-09-11 20:30:13 +08:00
Christopher Lam
7a36c229c5 [balsheet-pnl] speed up by pre-appending accounts
minor efficiency change. append-reverse is faster than append, and
storing the appended lists is rather convenient for this
report which uses them a lot.
2019-09-11 20:30:13 +08:00
Christopher Lam
70cb3a0b97 [utilities] compact sort-and-delete-duplicates
This is still readable IMHO. kons is the result constructor, and adds
item to result iff different from previous add.
2019-09-11 20:30:13 +08:00
Christopher Lam
ff8c5725cd [test-extras] rewrite strip-string to avoid repeat string-append
this is marginally more efficient, by keeping a list of (shared)
substrings, and only concatenating them when returning the stripped
string.
2019-09-11 20:30:13 +08:00
Christopher Lam
b05c57a948 [html-acct-table] compact functions 2019-09-11 20:30:13 +08:00
Frank H. Ellenberger
d3f86d2adf Merge branch 'PR579' into maint 2019-09-10 02:49:36 +02:00
Frank H. Ellenberger
a91b3ff453 PR #579: update Project-Id-Version of he.po
5358 translated messages.
2019-09-10 02:48:26 +02:00
Frank H. Ellenberger
fa4fc551af Remove obsolete "disambiguation prefix" translator comments
https://lists.gnucash.org/pipermail/gnucash-devel/2019-September/044199.html

Continuation of commit d30fe7a
2019-09-10 00:13:01 +02:00
John Ralls
e6e2258a74 Bug 797356 - ninja check fails with GCC-9 2019-09-09 14:44:10 -07:00
avma
4cd9f5a605
Update he.po to v3.7 2019-09-09 13:17:11 +03:00
Christian Stimming
b1d0dd7d58 [i18n] Update German translation
In particular, the single-character translations changed by
984d583e are now fixed again.

5301 translated, 38 fuzzy, 19 untranslated.
2019-09-08 22:14:02 +02:00
Christian Stimming
cce252713f [i18n] update (msgmerge) German translation 2019-09-08 21:59:26 +02:00
John Ralls
86f41542ff Fix a couple of typos in DOCUMENTERS. 2019-09-07 17:34:31 -07:00
John Ralls
84cfc5743b Release GnuCash 3.7 2019-09-07 16:38:10 -07:00
John Ralls
4392c92cc5 Update Ukrainian translation from the translation project. 2019-09-07 16:38:10 -07:00
Frank H. Ellenberger
92bae3fe3e [I18N] Bug 797349 - "A"ssociate header badly translated
A few more messages
2019-09-07 19:36:10 +02:00
Christopher Lam
a940434e5c [taxinvoice] comments were interfering with i18n. remove 2019-09-07 16:31:08 +08:00
Christopher Lam
656dddc166 [html-acct-table] compact formals definitions
use fewer conditionals, improve readability
2019-09-07 16:31:08 +08:00
Christopher Lam
228e5f47a8 Bug 796952 - Report formatting (justify) is broken
Remove the "minus 1" to amount-depth for some accounts with children
and display-amount is 'immediate-bal. This means amounts are now
strictly(*) indented according to account depth instead of a weird
formula if account-has-children and immediate-bal.

(*) when subtotal-mode isn't "canonically tabbed"
2019-09-07 15:51:25 +08:00
Christopher Lam
3764a053cf Revert "Bug 796952 - Report formatting (justify) is broken"
This reverts commit 35ed4cf2, restoring indenting for account
summary. The next commit will fix the indented amounts to land under
the 'Balance' header.

This fixes: Bug 797332 - Account Summary Report balance lacks
indentation
2019-09-07 15:50:46 +08:00
Geert Janssens
25cc330722 797171 - Allow multiple credit/debit columns to be selected
This required some tweaks in the core csv import code
- first don't unset other deposit/withdrawal columns when selecting a second one
- amounts have to be summed for all deposit/withdrawal colums
  I have added a new member function 'add' in addition to 'set' and 'reset'
  That function will only work for deposit or withdrawal columns
2019-09-06 16:54:25 +02:00
Frank H. Ellenberger
bbcf19ae6a [I18N] use msgctxt for Reconciled flags
Final step for [Bug 797349] "A"ssociate header badly translated
2019-09-06 05:59:55 +02:00
Frank H. Ellenberger
48e81d221d Unify "Placeholder" headers with previous commit
Only impact: removed obsolete translator comment
2019-09-06 00:39:51 +02:00
Frank H. Ellenberger
984d583e19 [I18N] Use context for samples and column headers
Before we used a colon separated prefix, but thas was error prone.
The downside: Our translators have to review serveral messages.
Tip: Use a tool like KDiff3 for merging.
2019-09-06 00:28:06 +02:00
Frank H. Ellenberger
549ba9f688 [I18N] Improve translator comments for Invoice Editing 2019-09-05 21:28:52 +02:00
Frank H. Ellenberger
1b22715a49 [I18N] Support of all *_() macros of glib/gi18n.h in ninja pot
C_() and NC_() were still missing
2019-09-05 21:28:21 +02:00
Geert Janssens
d30fe7a365 Fix extraction of translatable strings with context using Q_
Q_('ctxt|msg') expands to g_dpgettext(NULL, 'ctxt|msg',0) and should be
interpreted as a message with message context. According to
https://www.gnu.org/software/gettext/manual/gettext.html#Language-specific-options
this glib extension is supported using the 'g' suffix to the keyword spec.
This was missing in our xgettext invocation.
2019-09-05 17:28:58 +02:00
Frank H. Ellenberger
d35ebd15f2 Fix of PR #577
Move he.po into po
5358 translated messages.
2019-09-05 16:29:56 +02:00
Christopher Lam
9b52fa685f [html-acct-table] ensure an integer number of empty-cells
tbl-width is not necessarily an even number; tbl-width being odd would
result in a half-fraction when calculating number of
empty-cells. convert to the appropriate integer.

this is the proper fix for the bug fixed by d865b149.
2019-09-05 20:07:32 +08:00
Christopher Lam
b9af094f8b [reports] fix some uses of assoc-ref
assoc-ref (or better, assq-ref because we're comparing symbols) is
used to lookup from the 'car's of a list of pairs, and return the
found pair's 'cdr'. the previous use of 2-element lists demonstrate a
lack of understanding how to encode the list of pairs. rewrite using
proper pairs rather than 2-element lists, which means the assq-ref
does not need a subsequent 'car' to retrieve the desired symbol.
2019-09-05 20:07:28 +08:00
Frank H. Ellenberger
f389a2af05 [I18N] Add a translator comment about date formats 2019-09-05 04:19:58 +02:00
Frank H. Ellenberger
2c787d5b36 Merge branch 'PR_#577' into maint 2019-09-04 21:03:59 +02:00
Frank H. Ellenberger
b697611b50 [L12N] he.po: another 2 fixes on top of PR #577
5341 translated messages.
for GnuCash 3.6
2019-09-04 21:01:56 +02:00
Christopher Lam
af238ee470 [income-gst-statement] fix "tax payable" reuse existing string 2019-09-05 00:01:57 +08:00
Christopher Lam
e386a2a77d [report-utilities] deprecate gnc:acccounts-get-all-subaccounts
* this function has a typo in name
* all uses of accounts-get-all-subaccounts were followed by appending
the result to the original accounts list. we have already rewritten to
use the better function in previous commit. this is now obsolete.
* inline its last use, omit sorting. list is sorted anyway afterwards.
2019-09-05 00:01:57 +08:00
Christopher Lam
2ac8cb2f79 [reports] use more efficient gnc:accounts-and-all-descendants
All uses of gnc:acccounts-get-all-subaccounts were immediately
followed by appending the result to the original accounts list. Use
gnc:accounts-and-all-descendants instead which is more efficient.
2019-09-05 00:01:57 +08:00
Christopher Lam
d0d6a824f4 [reports] remove dead code - terse-period? always true 2019-09-05 00:01:57 +08:00
avma
c4ac716f65
he.po cleanups 2019-09-04 17:31:14 +03:00
John Ralls
78d4d60b9c Bug 797389 - Random Crashes while attaching a document.
Fixes the immediate cause, dereferencing the return value of
gnucash_style_get_cell_dimensions, which can be NULL, without
checking.
2019-09-03 16:18:31 -07:00
Frank H. Ellenberger
4950748406 de.po: recover a few translations from previous versions
5267 übersetzte Meldungen, 72 ungenaue Übersetzungen, 18 unübersetzte
Meldungen.
2019-09-03 23:24:01 +02:00
Frank H. Ellenberger
be51f778fb de.po: merge recent changes
5176 übersetzte Meldungen, 147 ungenaue Übersetzungen, 34 unübersetzte
Meldungen.
2019-09-03 20:17:26 +02:00