Commit Graph

14402 Commits

Author SHA1 Message Date
John Ralls
0c5a2cbc90 [Bug #642276] Bayesian association with Sqlite
Wraps the kvp_frame_set_slot_path with xaccAccountBeginEdit()/xaccAccountCommitEdit().

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21742 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-19 00:47:11 +00:00
Geert Janssens
343f17fc67 Add some more debug logging to standard-reports.scm
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21741 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-18 18:43:40 +00:00
Geert Janssens
b24be97528 Replace no-op function force_account_dirty with qof_book_mark_dirty
See bug #665998 for more details.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21740 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-18 18:13:02 +00:00
Geert Janssens
ef7d41a956 Revert "Replace no-op function force_account_dirty with qof_book_mark_dirty"
This commit had some unintended changes.

This reverts commit 6b6eba2d7e56a4359ca646abb2b0c6c965712ce0.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21739 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-18 18:12:52 +00:00
Geert Janssens
885898feda Replace no-op function force_account_dirty with qof_book_mark_dirty
See bug #665998 for more details.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21738 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-18 18:06:08 +00:00
John Ralls
fb9c826b7b Remove deleted file from POTFILES.in
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21737 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-17 19:32:37 +00:00
John Ralls
47edcb2090 Fix circular dependency between test-core and qof-test.
Compile test-core/test-stuff.c into test-qof, then recompile test-core as a module for dealing with noise from Guile and Python tests.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21736 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-17 19:32:27 +00:00
Geert Janssens
1ee901c4df Bug #666311 - Migrate inport-export GladeXML dialogs to builder
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21735 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-17 11:02:55 +00:00
Geert Janssens
26fcd177e1 Bug #665998 - Migrate Aqbanking from druid to assistant / builder.
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21734 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-17 11:02:41 +00:00
Mike Evans
73d00a82f8 Bug #665996 - Minor changes to existing Assistants.
Patch supplied by Bob.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21733 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-16 14:57:20 +00:00
Mike Evans
bbf1611b02 Bug #658247 - First time setup should prompt to save file.
Fix supplied by Bob referenced in bug #665996.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21732 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-16 14:36:00 +00:00
John Ralls
40c93f990c [Testing] Oops, had added this only to gnucash-build-env
So it didn't get picked up as a change in SVN.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21731 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-16 00:13:02 +00:00
John Ralls
8fbc986cbe [Decruftification] Remove gnc-associate-account
Carried over from somewhere in 2000, only maintained as part of global changes since. Not used anywhere.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21730 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-16 00:12:52 +00:00
John Ralls
4585ef0bc9 Fix "imported from both (sw_engine) and (gnucash engine)" errors from Guile
The GncNumericErrorCode enums are re-defined in src/engine/gnc-numeric.scm -- the SWIG way of representing them produces type errors in the report code. This may well be a problem with the calling code, but it's easier at this point to just not import the symbols into sw_engine.

gnc_commodity_table_get_quotable_commodities is explicitly wrapped in app-utils.i, so we need to not have the default wrapper in sw_engine.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21727 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-12 22:42:14 +00:00
John Ralls
a196a9953b [Testing] Suppress expected messages from guile tests
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21726 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-12 22:42:02 +00:00
John Ralls
1619cb7f0a [Testing] Suppress expected messages in optional/python-bindings tests
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21725 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-12 22:41:51 +00:00
John Ralls
5c52e5eb57 [Testing] Export test-core log suppression functions to python and guile
Enables silencing expected error output. Finally found the secret code
to get libtool to build a "noinst" dynamic library: pass -rpath as an
ldflag.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21724 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-12 22:41:41 +00:00
Christian Stimming
7b08c8f345 Make sure to ask for an export-to-PDF output folder every time.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21723 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-12 22:03:45 +00:00
Christian Stimming
c5b86dd183 Add "Export to PDF" menu item for reports.
gnc_html_print gets an extra boolean argument to choose the "Export as PDF" option.
The GtkPrintOperation expects a full file name in set_export_filename, though.
We obtain one by asking the user for it.

This action still needs a more suitable icon.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21722 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-12 21:53:14 +00:00
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