Commit Graph

9160 Commits

Author SHA1 Message Date
Christian Stimming
4a1a07554b Fix OFX import problem with some dividends transactions. Patch by
David Reiser. #164645.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13503 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-06 21:35:48 +00:00
Christian Stimming
56fe010a14 Fix crash when "clear" is chosen but no matching transaction is
selected. Now those imported transactions will silently be
ignored. #317917.




git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13502 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-06 21:31:08 +00:00
Christian Stimming
b45c4eeeae Updated German translation - 3609 out of 3724 done.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13501 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-06 21:01:27 +00:00
Chris Lyttle
a3fdf6c0cc update to release 1.9.2
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13499 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-06 01:44:39 +00:00
Chris Shoemaker
a34235d810 Don't force a resort of Account's split lists during xaccTransCommitEdit().
This happens already in xaccAccountCommitEdit() and if the Account isn't
   being edited, then we inserted the Split in sorted order anyway.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13498 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-05 23:46:39 +00:00
David Hampton
399f475f2c Use utf8 collation routines when sorting splits in a register. Also,
only sort on the date of transactions (not date and time) since
gnucash doesn't allow times to be input.  Fixes #127809.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13497 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-05 21:14:19 +00:00
Derek Atkins
7f4c6402e0 Don't suggest that users use --enable-error-on-warning
We turn it on by default, and the auto-check is "better".


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13496 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-05 20:24:04 +00:00
Derek Atkins
db865d6047 A different tact to test enable-error-on-warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13495 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-05 19:57:37 +00:00
Chris Shoemaker
3e662fcbf0 ChangeLog updates from 'svn log -v'
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13494 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-05 19:47:21 +00:00
Derek Atkins
708e9ed990 * configure.in: change the g-wrap 1.3 + GCC4 behavior.
only warn the user (not blow out) if they explicitly request
	  --enable-error-on-warning.   But still blow out if they
	  didn't specifically request it and we turned it on by default.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13493 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-05 19:33:00 +00:00
Joshua Sled
4ecfeb40e6 fill-paragraph
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13492 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-05 18:51:55 +00:00
Joshua Sled
8a2684edb9 Add checks for libgsf and goffice being built_with_use gnome. Add code to shutdown any user-level gconfd's running. Add note about broken make_desktop_entry. Expand range of README installs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13491 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-05 18:50:47 +00:00
Joshua Sled
aa788b9488 Fix test errors, then failures.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13490 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-05 18:33:34 +00:00
Derek Atkins
c284683b36 Fix a compiler warning so the code builds properly:
- warning: suggest parentheses around assignment used as truth value



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13489 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-05 15:40:33 +00:00
Christian Stimming
8e0164a47a Fix missing variable initialization in Chris' changes. Fixes the
register quickfill issue in Basic Ledger view mode.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13488 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-05 10:34:05 +00:00
Chris Shoemaker
84bcf5685b Convert xaccTransGetSplit() and xaccTransCountSplits() to return the
index and count reflective of any in-progress edit.
   Convert some split iterators from directly using the GList of Splits to 
   using xaccTransGetSplit().


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13487 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-05 04:14:38 +00:00
David Hampton
35a8b15f41 Move/fix the callbacks function that kills any open registers for an
account that has had "extreme" changes made to it in the "edit
account" dialog.  Fixes 331415.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13486 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-05 01:29:43 +00:00
David Hampton
f2b29cdf76 Consolidate the new icons with the existing set of icons.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13485 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-05 00:55:10 +00:00
David Hampton
f00e3a46ba Fix typo in commit message.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13484 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 23:24:14 +00:00
David Hampton
015e064bcc Rework the events generated by the account/group files and consumed by
the GncTreeModelAccount.  Should eliminate all g_value_inset and
g_object_set_property warnings related to changes in the account tree.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13483 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 23:07:42 +00:00
David Hampton
d46c86ca3a Rename a data structure field.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13482 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 23:06:39 +00:00
Joshua Sled
b75fc606fd Modify schema mkdirs by DESTDIR for packaging.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13481 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 23:05:56 +00:00
David Hampton
53e3e31517 Fix duplicate account name checking bug that prevented editing account
info.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13480 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 23:00:53 +00:00
Andreas Köhler
018fa4ae6c Remove add_tearoffs from glade files; some automatic scrollbars
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13479 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 21:44:42 +00:00
David Hampton
2ff71abfda Make g_strv_length available outside of the gkeyfile compatability
library.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13477 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 19:09:31 +00:00
Chris Shoemaker
4a63eb5c65 Use for-each, lambda expressions for iterating over split lists.
In contrast to the previous looping construct, this will work even if 
   the split operations don't have side-effects on the split lists.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13476 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 18:12:34 +00:00
Joshua Sled
59d42b32e3 Fix selection mode for SX lists.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13475 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 16:28:52 +00:00
Joshua Sled
3d82efeee6 whitespace
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13474 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 16:28:33 +00:00
Joshua Sled
a707a02fb1 Add, register, use Split and Transfer icons provided by Andrew Duggan. Bug#327647.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13473 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 15:51:28 +00:00
Joshua Sled
7fb61dae86 Fixes to memory deallocation suggested by Phil Longstaff.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13472 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 15:50:20 +00:00
Chris Shoemaker
9a65cc1cc6 When the book is shutting down, don't be so eager to destroy the whole
transaction.  This makes it easier to safely iterate over a split list.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13471 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 06:56:27 +00:00
David Hampton
8090e0ee3c Update the preferences dialog to allow any unicode character as the
separator.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13470 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 06:49:23 +00:00
Chris Shoemaker
803e157ed6 Destroy Transactions without rebalancing when shutting down the book.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13469 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 05:10:15 +00:00
Chris Shoemaker
d0f3042d8f Generate REMOVE events when a Split is removed from a Transaction.
Pass the *old* parent transaction (since the Split may be moving into 
   a new transaction) and the old index of the Split in the old Transaction's
   list of Splits.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13468 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 03:21:34 +00:00
David Hampton
22ee7eb47f Convert the account separator from a single character to a character
string.  This allows multibyte unicode characters to be the account
separator character. Fixes 333061.  Reworked a couple of routines that
pull account names into their component parts.  Also fixed a bug in
the new account dialog when creating multiple accounts at once.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13467 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 03:04:46 +00:00
Chris Shoemaker
7921695276 Look for orphan Splits even when there is no Transaction imbalance.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13466 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 02:42:49 +00:00
Chris Shoemaker
10138bb1d3 Delete unused dialog-exchange.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13465 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 00:27:38 +00:00
Chris Shoemaker
cfe743fd8e Remove an unnecessary Account edit-block.
Minor control-flow simplification.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13464 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 00:23:07 +00:00
Chris Shoemaker
5382b075cd Bits to let the register see the in-progress Transaction edit.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13463 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 00:13:15 +00:00
Chris Shoemaker
8eadc7cd23 Remove xaccAccountRemoveSplit, and xaccAccountInsertSplit.
(Actually, xaccAccountInsertSplit is #def'd to xaccSplitSetAccount().)
   Accounts no longer manage their Split lists.  The Account split lists
   should only ever be modified from within xaccTransCommitEdit().  This
   simplifies some of the operations on Accounts, since they can now be 
   expressed in terms of operations on Splits.

   Also, the consolidation of two operations (RemoveSplit and InsertSplit) 
   into one operation (xaccSplitSetAccount) means that it's no longer 
   possible to orphan a Split.

   Incidental:
      Fix a leak of a KVP frame.
      Don't recompute the account balance if we're shutting down.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13462 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 00:11:44 +00:00
Chris Shoemaker
6782a2b49d The xaccTransRollbackEdit() part of the Begin/Commit edit-block rewrite.
Broken out just for clarity.

   Note: There's one piece that I didn't change that I think is conceptually
   awkward.  It has to do with how/when we would discover that another
   user has deleted the transaction we're currently editing.  I think it makes
   more sense to detect and handle this case in xaccTransCommitEdit() instead
   of xaccTransRollbackEdit(), because (a) we don't actually have to do the 
   rollback if we just destroy the trans, (b) some rollbacks are not backend-
   induced, but rather voluntary, (c) we need a generalized mechanism
   anyway for detecting and handling deleted transactions even when
   we're not editing them.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13461 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 00:11:16 +00:00
Chris Shoemaker
dd80eaa743 Move one data-validation function from Scrub.c into Transaction.c
One simplification in xaccTransScrubImbalance() to always find the root
   AccountGroup from the Transaction's book.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13460 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 00:10:44 +00:00
Chris Shoemaker
7bad37599c A good bit of notes about how the Transaction Begin/Commit
edit-blocks should work, and why. 

   Converts the very important xaccTransCommitEdit function to use the 
   qof_commit_edit_part2() function instead of something that is 90%
   similar.

   Transactions have a Split list that keeps track of Splits during the edit.
   During edits, this list only grows and never shrinks.  Splits that
   have been destroyed or reparented to other transactions remain in
   the list, along with pre-edit Splits and newly added Splits.  Only after a 
   successful commit does the Split list drop reparented or destroyed
   Splits.  A couple out-of-engine users (mainly the register) call
   xaccTransGetSplitList() an work from the Transaction's split list,
   but they expect to be working with only the Splits that would still be in 
   the Transaction if the in-progress edit would be committed.  So, we
   provide the function xaccTransStillHasSplit(t, s) to allow users to query 
   the in-edit state of the Transaction's Split list.

   xaccTransRemoveSplit() and xaccTransInsertSplit() have been replaced by
   xaccSplitSetParent().

   The new xaccTransCommitEdit tries to take a more conservative approach
   to event generation, too.  Instead of generating every possible event for 
   any commit, it should generate only events that indicate a change to an 
   engine object or relation.

   Move some of the financial-constraint-enforcing functions closer to the 
   relevant data-structures. (from Scrub.c)



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13459 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 00:10:12 +00:00
Chris Shoemaker
241f37379a Remove some testing of an engine API that has been removed.
The engine used to have functions that made it possible to orphan a Split.
   As this is no longer possible, we can't test anymore.

   Incidental:
      Fix three or four small leaks in the test functions.
      Allow test-period to be randomized based on optional command-line arg.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13458 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 00:09:31 +00:00
Chris Shoemaker
ed94e594b2 Splits can now keep track of their own rollback state.
The Split <-> Account and Split <-> Transaction relationships are now
   treated as properties of the Split.  In terms of the BeginEdit/CommitEdit 
   block, Splits are subordinate to Transactions.  There is no public 
   BeginEdit/CommitEdit block for Splits; changes to Splits should be wrapped
   in their Transaction's Edit-block.

   In the case of the Split <-> Account relationship, the call to
   xaccSplitSetAccount() will be immediately visible from
   xaccSplitGetAccount(), but the Account does not learn about the
   Split until and if the edit is committed.

   In the case of the Split <-> Transaction relationship, calling
   xaccSplitSetParent() will immediately add the Split to the
   Transactions split list.  This is because the Split's Transaction
   owns the reference to the Split.  However, see the Transaction.c 
   patch for how to distinguish pre-edit state from in-edit state.

   In both cases, events are not generated until the edits are committed.
   Most of this new logic is in an engine-private helper xaccSplitCommitEdit(),
   which is called from xaccTransCommitEdit().

   Incidental:
      Increased error-checking in xaccSplitSetValue().
      Internalize a Transaction Begin/Commit edit-block in every setter func.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13457 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 00:09:03 +00:00
Chris Shoemaker
9b63e08746 Remove two slightly different definitions of
gnc:transaction-map-splits, both unused.
   Remove g-wrapped versions of functions being removed:
      gnc:account-fix-split-date-order,
      gnc:trans-fix-split-date-order



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13456 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 00:08:16 +00:00
Derek Atkins
516b99efd8 error out on g-wrap-1.3, gcc4, and error-on-warning. Fixes #330615.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13454 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-03 15:57:51 +00:00
Joshua Sled
9d3ee26a79 Fix SXEDITOR help target.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13446 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-03 01:54:44 +00:00
Christian Stimming
e61c217338 Finally, successfully implemented mt940 import. Completed #325170.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13444 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-02 22:04:05 +00:00
Christian Stimming
2908477af0 Add clarifying comment to weird directory function, better to be replaced by the appropriate glib function.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13442 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-02 21:59:44 +00:00