Commit Graph

21934 Commits

Author SHA1 Message Date
Christopher Lam
8618c25d50 Bug 797572 - part 2 - swap Debits/Credits, can show informal headers
Previously Credits was rendered before Debits. Change to formal
accounting convention. Can swap to informal headers if set by global
preference.
2020-01-15 19:04:46 +08:00
Christopher Lam
1dac9e1fc2 Bug 797572 - part 1 - don't accumulate Dr/Cr totals unless printed 2020-01-15 18:25:23 +08:00
Christopher Lam
c4ab772d4b Bug 797576 - xaccAccountOrder shouldn't sort account codes as base-36
Thanks to yegor for discovering it is unreliable for sorting. It has
been present since 50646f04
2020-01-15 18:25:16 +08:00
Christopher Lam
3db699786f [core-utils.i] declare prefs as ENUMs 2020-01-15 18:04:35 +08:00
Geert Janssens
08d685f4aa Define SET_ENUM in core-utils.i as well
Will be used to expose our settings related constants to guile
2020-01-15 09:29:27 +01:00
Christopher Lam
5ac7f1beaf Bug 797573 - Incorrect value of securities in the Asset Chart
Algorithms used xaccFooOrder to attempt strict ordering of Foo
objects. Unfortunately the internal definitions of xaccAccountOrder
does not guarantee a strict ordering of accounts.

Also remove unused split<? comparator.
2020-01-15 06:32:38 +08:00
Frank H. Ellenberger
df4b728dbd Minor adjustments of ch/kmu 2013 based on emails
Also drop the obsolete chkmu
2020-01-14 22:41:42 +01:00
Marco Blind
4510a52f79 L12N:de_CH: Kontenplan für KMU, gültig seit 2013, Teil 1 2020-01-14 22:02:04 +01:00
Frank H. Ellenberger
d61453d3cf L12N:sv_AX Add Windows' name "Swedish_Åland Islands"
Patch from Bug 725296, but in theory it had better fit in Bug 797569.
2020-01-14 21:21:48 +01:00
Geert Janssens
826c826cc1 Bug 797569 - Swedish account templates not accessible
If environment variable LANG is set to 'Swedish_Sweden' (to work around a gettext bug
affecting Swedish locales) the wrong unix locale was substituted previnting
gnucash from finding the associated account hierarchy templates.
2020-01-13 22:25:36 +01:00
Christopher Lam
ead5c94787 Bug 797548 - multicolumn income statement: some closing entries are not ignored when within reporting period
Remove closing-entries substring/regex filter.

We will rely on the closing flag created with the Tools>Close Book
tool. This means very *old* closing entries will need to be re-done
via Tools>Close Book using the same date as the old closing entries.
2020-01-12 22:04:47 +08:00
Christopher Lam
fd24b01689 [new-aging] reuse string 2020-01-12 21:19:42 +08:00
Christopher Lam
6aff6e15f0 [new-aging] reinstate sort-by choices
- offer choices for sorting owners in each APAR list
- may be useful for ordering customer aging debts
- this means we remove the default owner->name sorting
2020-01-12 21:19:12 +08:00
Christopher Lam
e3b926bdfa [new-owner-report] reuse string 2020-01-12 13:32:38 +08:00
Christopher Lam
0787b4e24f [new-owner-report] splits->desc will show 1 memo per line 2020-01-12 13:32:38 +08:00
Christopher Lam
d9b585c396 [category-barchart] simplify report definitions
instead of list-accessors, use (ice-9 match) to assign names to list
items. remove ugly 'tip-and-rev' hack.

also remove hidden option 'reverse-balance?' and pass it as an
argument to the renderer.
2020-01-12 13:32:24 +08:00
Christopher Lam
baba7f0deb [income-gst-statement] no need to reverse report amounts
this report handles reversal of income amounts and shouldn't
re-reverse according to originating split's account type.

also friendly-fn should be #f instead of (lambda (a) "") because the
former is handled specifically in trep-engine's add-subheading to
display a blank cell.
2020-01-11 21:52:15 +08:00
Robert Fewell
c8eb3b3738 Bug 797550 - Crash when changing register tab position
Check for a valid GNC_MAIN_WINDOW being passed to
gnc_main_window_update_tab_position before trying to update tabs
2020-01-09 14:59:53 +00:00
Robert Fewell
5bfef54d6d Change some spacing in source files account-quickfill.* 2020-01-09 14:49:25 +00:00
Robert Fewell
936e2bf371 Bug 797546 - Autocomplete not updated when account names changed
If an account name is changed, the autocomplete list store was updated
but the hash table was not so this change checks for the name change
and updates the hash table. Also fixed was changing the account from /
to a placeholder account which will show or hide the account.
2020-01-09 14:47:43 +00:00
Frank H. Ellenberger
3c6ad3ae82 L12N:hu Remove region code from account templates directory
There is no region specific file, but the language is also used in other
regions: https://hu.wikipedia.org/wiki/Magyar_nyelv
2020-01-07 13:47:50 +01:00
Christopher Lam
a3ebd93acd [new-owner-report] fix LHS and RHS description
INV/PMT txns both derive DESCRIPTION from invoice-posting / payment
txn's ASSET/LIABILITY splits->memos

This seems to produce consistent results in all circumstances.

If a payment txn is modified so that it is funded from >1
asset/liability split, it will concat unique transfer splits memos.

eg. payment transaction

Asset:USDBank -$100 memo "100 USD"
Asset:GBPBank -$100 memo "70 GBP"
A/Payable     +$200 memo "orig-memo"

The Payment Description will be "100 USD, 70 GBP"
2020-01-06 23:46:53 +08:00
Christopher Lam
741eb48016 [trep-engine] upgrade to include 'balance brought forward'
This fairly complex-looking change is actually simple.

default-calculated-cells is redefined so that the running-balance
column has a custom subheading renderer. The subheading renderer was
formerly used solely for the account->friendly-debit/credit-string
renderer, and is now upgraded to handle hard-coded symbols.

If the friendly-heading-fn is a symbol 'bal-bf, it'll print the
split->account->balance at begindate.

Other columns may also be upgraded for novel subheading renderers. No
forward/backward compatibility issues are expected at all. This change
looks complex because the begindate is not available to
make-split-table and has to be passed on as an argument to be
available for use, and the subheading-renderer will test whether to
display the friendly-fn-renderer at a later stage than previously.
2020-01-06 22:34:26 +08:00
Frank H. Ellenberger
0f4265d910 Unify menu separator to "->"
Other meanings of previous " -> " are now:
" -> " conversion
" .. " a range

Other fixes:
1. "File>Save" typo
2. Remove $ from sort order tooltips as it is
 a. not relevant,
 b. untranslatable for languages used in different regions.
2020-01-05 14:18:06 +01:00
John Ralls
589f1c451f Fix misspelling. 2020-01-04 18:12:29 -08:00
John Ralls
df92200c8e Restrict gnucash.pot comment collection to ones beginning with Translators.
On recommendation of the Translation Project's Benno Schulenberg.

Required re-annotating some comments. Also removed several comments
about leaving a line break to prevent inserting it into gnucash.pot.
That didn't actually work: they were inserted anyway.
2020-01-04 15:57:02 -08:00
John Ralls
c9998a8ad8 Merge Dave Dittman's missing whitespace into maint 2020-01-03 13:54:59 -08:00
John Ralls
b5fdcfcb5b Bug 797481 - crash on close of unsaved tabs by pressing [X]
Use g_object_weak_ref() to null GncItemEdit::sheet to prevent
a use-after-free crash.

Note that this is a band-aid fix. To fix correctly GncItemEdit and probably
most of the rest of the register must be rewritten with modern GObject
macros and resource management.
2020-01-03 13:18:39 -08:00
Ordtrogen
d688b6b15f L12N:sv_SE: Update account hierarchies according to BAS 2019 2020-01-03 17:06:15 +01:00
Frank H. Ellenberger
d409d009fb Amend PR #629: Menu separator in text is "->" [I18N] 2020-01-03 09:16:31 +01:00
John Ralls
b31f552822 Bug 797549 - Reconcile window shows S_tatement Date rather than...
Statement Date.

Obsolete insertion of _ for Gtk mnemonic when used in gnc-split-reg.c
line 609. That's now handled by the GtkBuilder file.
2020-01-02 16:35:18 -08:00
Jannick
68a24dc7d2 reports: bug fixes in translation strings
* gnucash/report/report-gnome/gnc-plugin-page-report.c:
- replace 'report' by 'report configuration' where appropriate (they are
  two different animals).
- correct the menu path to 'Reports > Saved Report Configuration'
2020-01-02 15:11:03 +01:00
Daniel Dittmann
31c0fed1dc test_gnc_setlocale: use trailing whitespaces 2020-01-02 14:02:04 +01:00
Frank H. Ellenberger
9e8886efb6 Merge PR #623 into maint 2020-01-02 13:16:22 +01:00
Daniel Dittmann
1c6f3fc957 create a more consistent aqbanking online_id
The online_id will generated based on bankcode and accountnumber. The
accountnumber may have leading zeros which shall be ignored to make the
creation reliable. In my case the accountnumber of the accountinfo has
no
leading zeros, but the accountnumber of the imported transactions has
leading
zeros. In the result the generated online_id was different and the
widget
to assign the transactions to a account appears always.
2020-01-02 13:15:25 +01:00
Frank H. Ellenberger
7acc2706c6 Merge PR #626 into maint 2020-01-02 12:21:03 +01:00
milotype
b384800d8d L12N:hr: update croatian translation with pot file 3.8
5409 translated messages.
2020-01-02 12:19:05 +01:00
Frank H. Ellenberger
bccd9c707e Merge branch 'pr627' into maint 2020-01-02 11:31:23 +01:00
Christopher Lam
3d05f78caf [new-owner-report] add double-header
also create a num-cols function which returns an appropriate number of
cols for various report sections.
2020-01-02 17:17:21 +07:00
Christopher Lam
0397aca144 [html-table][API] html-table can have multirow-col-headers
NEW API:

gnc:html-table-multirow-col-headers and
gnc:html-table-set-multirow-col-headers!

gnc:html-table col-headers have been augmented to support list of th
rows.

* BACKWARD COMPATIBILITY is offered. old use of single-row headers API
gnc:html-table-col-headers and gnc:html-table-set-col-headers! should
be unchanged; will get/set a single row of th elements.

* NEW functions gnc:html-table-multirow-col-headers and
gnc:html-table-set-multirow-col-headers! will get/set an arbitrary
number of rows of th elements.

* using old API gnc:html-table-col-headers on a table, whose multiple
row headers have been set, will lead to a warning and return the first
row only.
2020-01-02 17:17:21 +07:00
Christopher Lam
f3499686ba [new-owner-report] style monetary sale/tax cols with number-cell 2020-01-02 17:17:21 +07:00
Frank H. Ellenberger
795fe9aa95 L12N:pl: Merge a fresh template
3521 przetłumaczonych komunikatów, 1465 tłumaczeń budzi wątpliwości, 414
nie przetłumaczonych komunikatów.
2020-01-02 08:46:15 +01:00
Frank H. Ellenberger
d6b52112f4 L12N:pl: Recover translator credits from git history 2020-01-02 08:44:56 +01:00
Jannick
f94319910d po/de.po: amend translation about eguile reports
* po/de.po: here.
2020-01-02 01:23:02 +01:00
Jannick
c8e5813957 po/de.po: fix translation bug 2020-01-02 00:35:05 +01:00
Michał Ciołek
b93be1ca70 Polish translation improved (part2) 2020-01-01 19:06:23 +01:00
Michał Ciołek
ef7db1758c Polish translation improved 2019-12-31 13:31:10 +01:00
Daniel Dittmann
a574be635a gnucash/import-export/aqb/gnc-ab-utils.c: extract 'create_online_id' function 2019-12-30 15:02:44 +01:00
Daniel Dittmann
784b6c9448 Merge remote-tracking branch 'upstream/maint' into maint 2019-12-30 11:42:43 +00:00
Christian Stimming
e77db0671b German translation improved.
5401 translated.
2019-12-30 00:39:13 +01:00