Bug #700804: Add up/down buttons for ordering of transactions in register2.

This changes the ordering but only for txn with the same date
and same number.  The buttons are active only in cases where this is
possible, otherwise the buttons are inactive anyway.

- for reconciled splits, user will be asked
- book-closing txn are ignored as well as frozen splits
- After changing the sort order, update the UI buttons immediately as well

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23061 57a11ea4-9604-0410-9ed3-97b8803252fd
Redo r23043 Don't print "warning" output in comparison functions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23062 57a11ea4-9604-0410-9ed3-97b8803252fd
Revert "Redo r23043 Don't print "warning" output in comparison functions."

Some extra files got pulled in...

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23063 57a11ea4-9604-0410-9ed3-97b8803252fd
Really Redo r23043 Don't print "warning" output in comparison functions.

Without pulling in the extra junk.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23064 57a11ea4-9604-0410-9ed3-97b8803252fd
Remove the unused code for feature "shift txn forward", disabled already in r18450.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23065 57a11ea4-9604-0410-9ed3-97b8803252fd
Lookup business reports by id instead of by name

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23066 57a11ea4-9604-0410-9ed3-97b8803252fd
Report system legacy code cleanup

- Rename two functions that work with guids instead of names (legacy)
- Don't sort the a list of guids. This doesn't add value and slows down the report loading code
- Add/improve some comments
- Reorder record accessors for the report-template record

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23067 57a11ea4-9604-0410-9ed3-97b8803252fd
Report system: regroup legacy functions

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23068 57a11ea4-9604-0410-9ed3-97b8803252fd
Report system - emit warning when trying to restore named-based saved reports

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23069 57a11ea4-9604-0410-9ed3-97b8803252fd
Fix the crash that occurs when duplicating multiple invoices from Find results.
The biggest problem was that it was adding an invoice's entries to both the old
and the new invoice when duplicating the invoice.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23070 57a11ea4-9604-0410-9ed3-97b8803252fd
Make it possible to post multiple invoices from the find dialog.
GnuCash was crashing if you searched for all unposted invoices, selected two or
more of them, and posted them.  This was because the list of invoices to be posted
changed while it was being processed.  As part of fixing this the prompt for post date,
due date, etc. will only be given once, not once per invoice.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23071 57a11ea4-9604-0410-9ed3-97b8803252fd
Add back, and bring up to date, the debugging function qof_book_print_dirty.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23072 57a11ea4-9604-0410-9ed3-97b8803252fd
Bug #703305: Fix crash on entering a non-valid date.

For now, the date that couldn't get parsed is replaced by today. Improvements
to this behaviour are welcome, though :-)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23073 57a11ea4-9604-0410-9ed3-97b8803252fd
Bug #702899: Fix crash in scrubbing code

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23074 57a11ea4-9604-0410-9ed3-97b8803252fd
Delete report function: use less ambiguous variable name

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23075 57a11ea4-9604-0410-9ed3-97b8803252fd
Return success or failure when writing report templates to save file

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23076 57a11ea4-9604-0410-9ed3-97b8803252fd
Return guid of newly-created report template to calling function

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23077 57a11ea4-9604-0410-9ed3-97b8803252fd
Define 'custom-template' property on report instances (not used yet)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23078 57a11ea4-9604-0410-9ed3-97b8803252fd
New functions to check for custom templates
- whether a report template is a custom one
- whether a report is based on a custom report

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23079 57a11ea4-9604-0410-9ed3-97b8803252fd
New function to rename a saved report

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23080 57a11ea4-9604-0410-9ed3-97b8803252fd