Commit Graph

14462 Commits

Author SHA1 Message Date
Christian Stimming
55463dd5be Check the read-only attribute in the XML backend as well and refuse to save if we are read-only.
Also, add a "(read-only)" suffix in the window title if we are read-only.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21565 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-13 21:26:21 +00:00
Christian Stimming
c4c39aa964 Bug #663934: Fix potential crash on failing aqbanking setup druid lookup.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21564 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-13 21:01:31 +00:00
Christian Stimming
d25a992701 Add unittest for gnc_dmy2gdate() function to verify the correct behaviour of the by-value returned value.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21563 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-13 20:39:53 +00:00
Christian Stimming
5e1dde2018 Fix occasional not working "up / down" arrow in invoice window.
This was because the "date" field was indeed be set with a different
time of day (noon vs. start of day), depending on the various code
places.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21562 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 21:58:36 +00:00
Christian Stimming
3a4cd615e8 Use the GDate-based date setter of GncEntry where suitable instead of the timespec one.
This fixes the time-of-day mismatch between entering a new entry
(that was using timespecCanonicalDayTime, "noon") vs. duplicating
an invoice (that was using gnc_timet_get_today_start, "start of day").

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21561 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 21:58:21 +00:00
Christian Stimming
6a0f3b5a57 Add accessor/setter for the date of a GncEntry as a GDate.
This is much more suitable to avoid any ambiguities due to differently
chosen time-of-day in various parts of the code.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21560 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 21:58:04 +00:00
Christian Stimming
bbb529263b Add two more helper functions dealing with GDate.
In particular, glib doesn't offer a function for easily accessing
the "today" date as a GDate. What a pity. It's added now as gnc_g_date_new_today().

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21559 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 21:57:52 +00:00
Geert Janssens
2f51419545 Tighten gtk+ requirement to 2.18.1
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21557 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 11:28:35 +00:00
Geert Janssens
65892924cf Reset required gtk version back to 2.16 for glade files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21556 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 10:53:16 +00:00
Geert Janssens
ba0293a0d1 Don't install a script that is only used for building and testing.
This fixes Secunia Advisory SA42048
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21553 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-10 17:14:55 +00:00
Geert Janssens
875cc3e71c Make easy-invoice report credit note aware
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21552 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-10 15:05:26 +00:00
Geert Janssens
490cacf980 Adapt entry ledger to credit notes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21551 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-10 15:05:16 +00:00
Geert Janssens
a216bc3d95 Add invoice/credit note type field and selector to invoice dialog and
invoice page.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21550 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-10 15:05:05 +00:00
Geert Janssens
92be86a60e Introduce credit-note kvp value to distinguish invoices from credit
notes.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21549 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-10 15:04:50 +00:00
Christian Stimming
e782c612f6 Simplify QofSession to own only exactly one QofBook.
No more, no less. This object isn't used in any other way in gnucash, so
we better get rid of the extra potential complexity here.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21548 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-09 21:45:12 +00:00
Christian Stimming
66ddf0c74f Revert r21517 "Add is_readonly attribute to QofSession class."
This is not needed. See
http://lists.gnucash.org/pipermail/gnucash-devel/2011-November/032793.html
and thread.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21547 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-09 21:44:58 +00:00
Geert Janssens
591253b4c8 Update POTFILES.in due to previous commit
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21546 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-09 15:22:38 +00:00
Geert Janssens
9c2504055d Remove unused files, fix a comment
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21545 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-09 15:18:40 +00:00
Geert Janssens
e726b5108b Bug #663433 - Migrate preferences from GladeXML to Builder
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21544 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-09 14:30:22 +00:00
Geert Janssens
8cc805c541 Fix critical warning when quitting from the gconf startup dialog.
Problem spotted and traced by Robert Fewell in bug #663057.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21543 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-09 13:43:46 +00:00
Geert Janssens
e4de3f8323 Bug #663057 - Migrate Gconf setup druid to assistant
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21542 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-09 13:43:35 +00:00
Christian Stimming
10891aa738 Fix erroneous return value of gnc_gconf_get_float()
Discovered in bug#663433 - the return value was cached in an int variable
instead of a gdouble one.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21541 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-09 13:07:05 +00:00
Geert Janssens
e234a388a0 Set maxdepth debug option only in guile 1.8 and before
This parameter no longer exists in guile 2.0

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21538 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-08 21:31:14 +00:00
Geert Janssens
3f73ffdb20 Bug #663638 - Posting Invoices asks for curency conversion for blank
lines
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21536 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-08 19:04:00 +00:00
Geert Janssens
168ecd6c92 Set GUILE_INCS as an output variable.
Patch by Bill Nottingham

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21535 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-08 18:25:05 +00:00
Geert Janssens
0973504b5b Check for guile-2.0 as well as guile-1.8.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21534 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-08 12:31:33 +00:00
Geert Janssens
f4f46a9b33 Bug #651565 - Billing term not set properly when using "Clone
Invoice/Bill" or "New Invoice/Bill for same owner"

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21530 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-07 14:41:57 +00:00
John Ralls
e39383c9ed [Engine Test] Change gdoubles to gfloats
gnc_numeric_to_double() produces int32_t, which causes random digits at
the tail end of int64_t results, causing the comparison tests to fail.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21529 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-07 01:01:57 +00:00
John Ralls
7f08994242 [Engine Test] Fix some compile problems Christian Stimming found in r21525
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21528 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-07 00:07:05 +00:00
Christian Stimming
13ca8524d1 Remove qof_session_add_book() - a QofSession is used only with one book throughout gnucash.
Subsequently, the QofBook pointer in QofSession can be changed from
a GList to a QofBook*.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21526 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-06 20:53:59 +00:00
John Ralls
f2fcf51cbd [Engine Unit Testing] Unit tests for Account.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21525 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-05 23:05:00 +00:00
John Ralls
cebece61c7 Fix error in gnc_account_get_descendants_sorted
Recursed to the wrong function, which caused sub-accounts to not be sorted.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21524 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-05 23:04:34 +00:00
John Ralls
2ab005524a [Testing] Test facility for QofEvents and improve fatal-handling
For use from tests based on glib testing. Create a private structure to
compare to and register a handler which tests the event parameters
against the private structure and counts the number of valid hits.
Provides a test function for checking that the event handler has been
hit the requisite number of times.

Pass through, rather than testing, logs with a lower (i.e., less
important rather than lower-value) loglevel than the one the handler was
set up for. Test the log message rather than overwriting the pre-set one
with the actual message.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21523 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-05 23:04:23 +00:00
John Ralls
5bf627639f [Testing] Add file modeline for emacs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21522 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-05 23:04:11 +00:00
Mike Evans
ba00175d6b Add English translation of "Action Column|Deposit" as per note to
translators in /src/register/ledger-core/split-register.c:2228.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21521 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-05 14:23:59 +00:00
Geert Janssens
0f526a786c Bug #639082 - General Journal report reports an error
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21518 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-04 13:43:53 +00:00
Christian Stimming
4a5ec547e8 Add is_readonly attribute to QofSession class.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21517 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-03 21:48:00 +00:00
Mike Evans
2e7198f309 Merge branch 'un_posted_invoice'
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21516 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-03 17:05:06 +00:00
Christian Stimming
759312dd10 [glibmm] Unify naming convention of member methods: Always use underscore naming.
No more CamelCase in engine C++ wrappers, hopefully.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21509 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-29 19:39:50 +00:00
Geert Janssens
74449319fa Protect strcmp from crashing on NULL values
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21508 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-29 07:45:34 +00:00
Christian Stimming
6ae771d69a Fix dependency of python module - does not require any C++ header.
Somehow Transaction.hpp erroneously appeared here in r19802.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21507 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 20:50:12 +00:00
Christian Stimming
58ed6b9863 [Cutecash] Fix code to work with glibmm wrappers.
Changes:
- Use QT_NO_KEYWORDS because the identifier "signal" collides with some glibmm dependency
- Use Glib::RefPtr<> of gnucash objects everywhere.
- Use Glib::ustring and Glib::Date instead of qt types

The WeakPointer.hpp file is still used for gnc::Session, which is not
(yet) a GObject.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21506 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 20:34:55 +00:00
Christian Stimming
e4094a69c5 [Cutecash] Remove separate Qt wrappers of engine objects by glibmm wrappers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21505 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 20:34:44 +00:00
Christian Stimming
0d41e00a15 [glibmm] Minor updates to the wrappers for cutecash preparation; clarify bool argument of Glib::wrap().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21504 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 20:34:31 +00:00
Geert Janssens
7fa08b00ca Remove the deprecated optionmenu widget based convenience functions.
They are no longer used in the GnuCash code base.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21503 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 14:14:03 +00:00
Geert Janssens
3c809a4a2d Remove option menu dependency from business-options-gnome
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21502 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 14:13:54 +00:00
Geert Janssens
ad2c2353c1 Whitespace cleanup in dialog-customer.glade
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21501 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 12:27:17 +00:00
Geert Janssens
11b5fff44a Convert vendor dialog to gtkbuilder
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21500 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 12:27:08 +00:00
Geert Janssens
3eacb2c3c8 Bug #420342 - remember register filter and ordering settings
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21499 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 12:26:58 +00:00
Geert Janssens
9cab3b7918 Remove some unused dialogs as spotted by Robert Fewell in bug #662864
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21498 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 12:26:49 +00:00