If the context menu key is used on the "Assign transfer account page"
the application will crash. This was down to the call back function
gnc_gen_trans_onPopupMenu_cb being defined with a second parameter of
GdkEvent but it should not have, removing this fixes the bug.
RHS partial-amount and amount are shown in separate cells.
also modify test-owner-report.scm to allow pass
the $2.00 is strictly a RHS amount but I'm not sure how to exclude it
using sxpath.
Update on this bug. Before doing the binreloc dance on various
paths check if the calculated dynamic prefix is still the same
as the compile time PREFIX. If so, just stick with the compile
time path names as this means the application wasn't relocated
anyway. Only if the dynamic prefix is different, try to
recalculate the requested paths relative to the dynamic
prefix.
Together with the configure time fix to detect /etc/opt is
outside of the /opt prefix, this eliminates the need for further
special case handling of the sysconfig directory so that
special case handling is removed.
The FHS standard rules for a /opt based prefix sets a sysconfig dir to
/etc/opt/... which is outside of /opt. This was however not detected
properly. It now is.
Amounts formerly linked to the 'transfer' split which is not reliably
determined. Link to the APAR split instead.
Note whereby a payment spans multiple invoices, it'll link to the
first APAR payment split.
Consider a list of APAR splits, from N accounts. For each account,
their splits needed to find unique valid owners.
Previous algorithm would loops splits several times (1) each split
finds its owner, and log invalid ones, and (2) delete owner
duplicates.
New algorithm will take the first split's owner, skip if invalid, then
process all owner-splits, the reloop with other-owners-splits. The
invalid-splits list is also managed within loops for better stack
handling.
Also use (ice-9 match) for conciseness.
This starts by setting the gnucash version number in the 'project' call.
This will result in a number of variables set by cmake. The remainder
of this commit is to reuse the auto-generated
PROJECT_NAME, PROJECT_VERSION, PROJECT_VERSION_MAJOR
PROJECT_VERSION_MINOR, PROJECT_VERSION_PATCH and PROJECT_VERSION_TWEAK
instead of all the various instances of PACKAGE, GNUCASH_MAJOR_VERSION
and so on.
One parameter is worth mentioning - GETTEXT_PACKAGE
GnuCash is not using this directly (any more) but it has to be set before
including gi18n-lib.h.
Turned out to be a bug introduced by our port to cmake.
The Windows special casing for Swedish account hierarchies
was never called at all.
This fix includes a fix for a const correctness compiler warning as well.
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.
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.
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.
- 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
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.
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.
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.
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"
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.
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.
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.