Commit Graph

14276 Commits

Author SHA1 Message Date
Christian Stimming
0214098fdc Add the possibility of multi-selection in the invoice/bill search window (but so far still disabled).
Eventually, this should enable multi-duplication of a selection.
However, my gtk-2.20 seems to be broken w.r.t. multi-selections in
GtkCList, so I better have this available only in newer gtk and so far still deactivated.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21580 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-18 21:53:13 +00:00
John Ralls
eeaa897be1 [Cruft Reduction] Remove unused functions from src/engine
Nothing in gnc-session-scm.c was being used, so deleted it and its corresponding header.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21579 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-18 21:04:01 +00:00
John Ralls
e1ce730560 [Cruft Reduction] Remove unused functions from src/gnome-utils.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21578 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-18 21:03:40 +00:00
Geert Janssens
921bba1ad2 Fix xml backend to load and save invoice kvp values.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21577 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-18 10:26:02 +00:00
Geert Janssens
f1ac0f18ac Adapt printable invoice report for credit notes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21575 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-17 22:24:31 +00:00
Geert Janssens
3338a102e3 Fix autofill on credit note ledgers.
Note: this introduces a subtle change in how autofill works for business
ledgers: quantities will from now on always be autofilled to positive
values. See the comment in the code for more details.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21574 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-17 22:24:22 +00:00
Geert Janssens
1357c9e737 Fix subtotal sign in credit note ledger
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21573 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-17 22:24:13 +00:00
Geert Janssens
0313539a88 Convert payment dialog to gtkbuilder
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21572 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-17 22:24:03 +00:00
John Ralls
f4749ef3ed [Cruft Reduction] Remove unused functions from src/app-utils
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21571 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-17 21:27:56 +00:00
John Ralls
a2cd913a5c Fix clean targets and DIST_SOURCES
Several subdirectories have a subdirectory "gnucash", which clean tried to remove by including in the CLEANFILES variable in Makefile.am. This doesn't work, because directories can't be removed with rm, they require rm -r. Add a clean-local: target which calls rm -r on the gnucash subdirectory.

Some Makefile.ams used an AC_SUBSTed variable to define an optionally-compiled subdirectory, then included the variable in SUBDIRS and the actual directory name in DIST_SUBDIRS. This breaks the distclean and maintainer-clean targets when the optional directory is built, because it is then processed twice, and there is no Makefile the second time so make halts. Replaced the AC_SUBSTed variables with ones local to the Makefile.am, switched with an AM_CONDITIONAL. That way automake can figure out the dist_subdirs on its own.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21570 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-17 21:27:40 +00:00
Christian Stimming
3365baa7ed Take into account the read-only flag of the book to update the buttons in the register accordingly.
Also, the register itself must be read-only.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21569 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-14 21:28:32 +00:00
Christian Stimming
411261ae17 Remove obsolete documentation texts.
Those are so insanely obsolete, it hurts our eyes.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21568 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-14 19:43:20 +00:00
Geert Janssens
0992192e39 Bug #663433 follow up - Migrate report options dialog from GladeXML to
Builder

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21567 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-14 12:16:34 +00:00
Christian Stimming
44e679a5a3 Minor code cleanup: Rename field "primary_book" into "book" because there are no multiple books in gnucash at all.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21566 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-13 21:33:29 +00:00
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