Commit Graph

14383 Commits

Author SHA1 Message Date
Christian Stimming
f4c07c8278 Remember the printing setting after a Report print job
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21716 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-11 21:50:27 +00:00
Christian Stimming
8380d447d6 Make the report name for clicking "Print Invoice" a preference.
The implementation of a GtkComboBox in the preference is somewhat suboptimal
as the gconf key is the integer index in the combo box, but the needed key is
the (untranslated!) string of the report name. As a workaround, the list
of names exists twice, once in business-prefs.glade and once in gnc-plugin-business.c.
At least this works fine from the point of view of the user.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21715 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-11 20:59:48 +00:00
Geert Janssens
81884c2ed0 Rename parameter for clarity.
This one should have been committed before r21713
because that commit uses the changed parameter.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21714 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-11 20:39:34 +00:00
Geert Janssens
4adf872d74 Bug #649362 - Transfer Funds Window Exchange Rate and Decimal Points
Rounding in Bill/Invoices
This patch fixes the rounding by showing the actual value to convert. As
a result the exchange rate direction had to be swapped as well to avoid
lots of confusion.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21713 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-11 17:53:52 +00:00
Geert Janssens
89eaf45a7d Abort posting if not all required exchange rates are given.
Note that any exchange rate successfully entered before the posting is
aborted are still saved with the invoice.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21712 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-11 17:53:42 +00:00
John Ralls
f69313f874 [Testing] Adjust links for src/optional/python-bindings module
I was too clever by half, I guess.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21710 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-11 00:49:40 +00:00
John Ralls
52018902af Adjust POTFILES.in for r21684
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21709 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-11 00:49:28 +00:00
John Ralls
38653188d3 [Testing] Re-order subdirectories so that test-core is available to libqof.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21708 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-11 00:49:19 +00:00
John Ralls
42428bb0c0 [Testing] Fix duplicate LDADD in report/report-gnome/test/Makefile.am
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21707 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-11 00:49:09 +00:00
Christian Stimming
ac707427f8 Implement setting the date for duplicating multiple invoices.
Along the way, the "dialog date" dialog accepts a GDate argument instead of
a time_t because the user enters a date, not a date-and-time.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21706 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-10 21:10:17 +00:00
Christian Stimming
6a26cc3b85 Add setter function for invoice Opening Date using GDate.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21705 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-10 21:10:05 +00:00
Christian Stimming
bb3642e6cf Improve comments a bit: Add clarifications about which second of the day is returned.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21704 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-10 21:09:53 +00:00
Mike Evans
b4a094b506 Fix number alignment in table.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21703 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-10 13:25:18 +00:00
John Ralls
3df0b35b4f [Testing] Stifle error messages from QOF testing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21702 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-09 23:50:03 +00:00
John Ralls
c0a831f9be [Testing] Suppress verbose messages, expected warnings in backend/dbi checks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21701 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-09 23:49:50 +00:00
John Ralls
6a6d3049dc [Testing] Stifle the spew in app-utils checks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21700 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-09 23:49:41 +00:00
Mike Evans
765da84dc3 Add missing parameter credit-note? for "Display All Taxes" checkbutton.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21695 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-09 14:53:37 +00:00
Mike Evans
a110a75303 Fix table number alignment.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21694 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-09 12:31:39 +00:00
Geert Janssens
a9b81c2aea Avoid risk on a rare crash after r21680.
Some data files may only have filter[0] in which case filter[1] is NULL
and filter[2] invalid. A rare situation, but I have one test data file
consistently crashing on this.
I also took the opportunity to convert from strcmp to g_strcmp0.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21690 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-08 17:11:52 +00:00
Geert Janssens
0c945eb31d Add more conditional parts based on GTKCOMBO_BOX_TOOLTIPS_WORK
Without these parts gnucash would not build if the GTKCOMBO_BOX_TOOLTIPS_WORK
were set. It doesn't yet fix the core reason itself for the conditionals.
More work is needed to implement per-entry tooltips in comboboxes before
the old OptionMenu based code can be removed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21689 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-08 17:11:43 +00:00
Geert Janssens
4712503102 Replace deprecated GtkTooltips with new GtkTooltip interface.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21688 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-08 17:11:32 +00:00
Geert Janssens
7f40be5302 Fix some static warnings and errors as a result of Eclipse's static code
analysis.
As a result, some unused functions and function prototypes are removed.

It did expose one real bug in Transaction.c so far.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21687 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-08 17:11:21 +00:00
Geert Janssens
e0e113a6b9 ActivePerl only allows to download the most recent version. So change
the comments to be more liberal (at least 5.8).
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21686 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-08 17:11:06 +00:00
Geert Janssens
a41ed6e945 Bug #665202 - Improve python-finding code
Patch by Pacho Ramos

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21685 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-07 11:34:57 +00:00
Christian Stimming
98aeba26d4 Move dialog-dup-trans.c from ledger-core to gnome-utils.
Add gnc_dup_date_dialog() variant that can ask for a date without
the "num" field.

On pressing the Enter key, the widget closes but logs the following
warning:
 CRIT <Gtk> IA__gtk_widget_event: assertion `WIDGET_REALIZED_FOR_EVENT (widget, event)' failed
However, this problem already existed with the old code - the behaviour
and warning was unchanged by this commit.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21684 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-07 08:38:00 +00:00
Mike Alexander
3f75cbf8e4 Fix the selection callback in account tree page which has the read only test backwards.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21683 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 22:13:07 +00:00
Christian Stimming
d189d28439 Minor variable name unification - let all invoice reports use gnc:pagename-general.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21682 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 21:25:09 +00:00
Christian Stimming
ca56c1909a Prepare the "Print Invoice" scheme function to be given a report name.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21681 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 21:24:50 +00:00
Mike Alexander
b9c5d697c4 Fix r21499 which fixed bug #420342
1. Make searching for a date range work, the date range was being ignored and
   all transactions were returned.
2. Don't leak so many strings
3. Allow an end date in the filter even if there is no start date.
4. Don't reset the sort order or filter to the default if the user says
   to not save it.  Instead leave the saved value unchanged.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21680 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 06:06:03 +00:00
John Ralls
1234240e62 Revert "[Testing] Make engine/test-scm-query work."
This reverts commit 13fd037ef5120784791b25d4ebc12ad9bc6275b2.
It's unnecessary and doesn't compile.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21679 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:42:51 +00:00
John Ralls
a9e98bcde7 [Testing] Fix Transposed words in test-modsysver.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21678 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:42:40 +00:00
John Ralls
629e375784 [Testing] Gnc-module: Provide checked error messages to replace noted warnings (c-files only)
Much better for expected warnings to be tested for than to have a lead-in message saying that they're really OK.

Don't have the test utilities in Scheme yet.

Set the phony modules in misc-modules to be libtool modules instead of shared libraries. Aside from being more correct, this ensures that they'll have the same name on Linux and OSX.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21677 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:08:10 +00:00
John Ralls
02071518ee [Testing] Engine: Provide checked error messages to replace noted warnings
Much better for expected warnings to be tested for than to have a lead-in message saying that they're really OK.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21676 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:08:01 +00:00
John Ralls
5e355a56c4 [Testing] Backend/XML: Provide checked error messages to replace noted warnings
Much better for expected warnings to be tested for than to have a lead-in message saying that they're really OK.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21675 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:07:48 +00:00
John Ralls
d6e4eea168 [Testing] Fill in some missing libraries for gnc-module check.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21674 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:07:39 +00:00
John Ralls
6f9fb847bc [Testing] Make engine/test-scm-query work.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21673 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:07:29 +00:00
John Ralls
00833146d2 [Testing] More python-bindings test fixes
Ensure that libgncmod-engine can load its backends, and that all module dependencies can be found on OSX when gnucash isn't installed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21672 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:07:16 +00:00
John Ralls
a2b258302d [Testing] Suppress the useless Guile deprecated warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21671 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:07:05 +00:00
John Ralls
90c24bd238 [Testing] Ensure that qof_log_init() has been called for all tests
Prevents error messages about g_hash being NULL.

Invokes qof_log_init_file_special ("stderr") in gnc_module_system_init(), so gnc_log_init() had to be moved to after that call in main() so that the command-line log setting doesn't get replaced with the default setting in module_system_init.

Note that gnc_module_load_common() has one of the offending "ENTER" macros that cause the error, and it's before the safety call of module_system_init, so test programs need to explicitly call module_system_init before loading any modules.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21670 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:06:52 +00:00
John Ralls
6bb175db1e [Engine Testing] Rework utest-Account.c to use the new error-message handlers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21669 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:06:37 +00:00
John Ralls
f7604f117f [Testing] Provide list error handler, rename some functions
Add an GTestFatalFunc which can examine a list of error conditions and suppress those messages and prevent their exiting while passing through any unexpected errors.

Rename test_silent_logger to test_null_handler and change it to a GTestFatalFunc (it can still be used as a GLogFunc).

Rename test_handle_faults to test_checked_handler and improve its flow and message display. It no longer asserts on a bad match.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21668 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:06:28 +00:00
John Ralls
609a23e431 [Testing] Get the python tests working when uninstalled
Also fix a couple of failing tests.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21667 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 00:06:18 +00:00
Christian Stimming
f338e3fe41 Win32 build: Minor version upgrade of aqbanking and ktoblzcheck.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21666 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-04 20:44:24 +00:00
Geert Janssens
1f8b1293bd Bug #661383 - GnuCash segfault on Linux (Fedora 16 beta) because of
shared library load / unload weirdness
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21665 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-04 17:34:37 +00:00
Mike Evans
12854c34f8 Fix right align for number cells in table.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21663 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-04 11:00:40 +00:00
Geert Janssens
35d00f7cd6 Remove some more empty directories
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21662 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-03 10:40:51 +00:00
Geert Janssens
6b52e3f0b0 Remove some empty directories
These were left behind by earlier commits

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21661 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-03 10:39:43 +00:00
Geert Janssens
f859c49098 Bug #665401 - Migrate Tax Report Options from GladeXML to Builder
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21660 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-03 10:35:17 +00:00
John Ralls
2dc8e5e80b [Testing] Brain failure in gnc-engine.c, sorry.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21659 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-02 22:36:12 +00:00
John Ralls
fd2b0ebdc4 Update POTFILES.in to reflect recent moves and deletions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21658 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-02 22:00:29 +00:00