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
Geert Janssens
2a7b2b30d7
Some small whitespace fixes and comment improvements.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21497 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 12:26:38 +00:00
Geert Janssens
312b98ec6e
Bug #662864 - Migrate Various dialogs to Builder from GladeXML
...
Patch by Robert Fewell
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21496 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 12:26:27 +00:00
Mike Alexander
9369eae6d7
Avoid double free of capital gains transactions when quitting
...
If an register is open on an account that has capital gains transactions
created by the lot scrubber when you quit Gnucash, a capital gains
transaction may be freed twice since it is freed when the associated
sale is freed and again when it is encountered on the list of
transactions to be freed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21495 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 03:22:41 +00:00
Geert Janssens
8ba2af23c6
Convert customer dialog to gtkbuilder
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21494 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-27 21:08:05 +00:00
Geert Janssens
6bee8b5bcf
Add two more alternatives for the option-menu based dropdowns.
...
And improve the code efficiency a little bit.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21493 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-27 21:07:55 +00:00
Geert Janssens
aac8fb2ccb
Convert invoice.glade to gtkbuilder
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21492 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-27 18:33:10 +00:00
Geert Janssens
541ec1e497
Provide an alternative for the option menu based business
...
utility functions. GtkOptionMenu is deprecated.
The original functions remain available for now as they are still in
use.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21491 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-27 18:32:27 +00:00
Geert Janssens
8230904345
Bug #658992 - Changing the order of the balance sheet
...
Patch by Mark Haanen
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21490 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-25 13:26:51 +00:00
Geert Janssens
6e80601537
Bug #662477 - Desktop file not compliant with FreeDesktop spec and GNOME
...
goal
Patch by Sébastien Villemot
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21488 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-24 20:45:12 +00:00
Christian Stimming
3743ed74db
[Gtkmm] Add another predicate for the string_option of GncBook.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21487 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-24 20:41:28 +00:00
Christian Stimming
905e478531
[Gtkmm] [Cutecash] Unify the glibmm and Qt C++ wrappers of the engine even more.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21486 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-24 20:41:15 +00:00
Christian Stimming
e08bea1336
[Cutecash] Prepare cutecash for integration of the glibmm wrappers of the engine objects.
...
This would be an excellent test case for those wrappers...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21485 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-24 07:59:30 +00:00