Commit Graph

11237 Commits

Author SHA1 Message Date
Andreas Köhler
a21073b7f2 Revive root account in german skr04 account template.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16775 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-31 11:05:59 +00:00
Andrew Sackville-West
d6bab0ae47 Advanced Portfolio, improve dividends and brokerage fee handling:
*	allow proportional application of dividends/fees in a
	multi-stock txn, 
  *	collect reinvested dividend amounts from the buy split not income split, 
  *	track reinvested dividends separately from dividend income, 
  *	report income when dividends are *not* reinvested if there is a zero 
	value/amount split tied back to the stock account.

Thanks to Richard Laager for ideas and guidance.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16774 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-31 06:21:36 +00:00
Andreas Köhler
d64941008c Do not set active element of GncAccountSel to the first sometimes.
In gas_populate_list, the currently selected account is searched in
the new data, falling back to the first element in the list and
selecting it afterwards.  So, often "Assets" is activated, whereas the
filtering happening later does not deselect it in any way (the user
may have typed it in).

This patch simply removes the fallback to element 1.  To make the gas
look better, it may help to set it initially, like to an entry that
was used recently.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16773 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-30 19:59:06 +00:00
Andreas Köhler
0730d8150d Save and load kvp frames of vendors and employees.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16772 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-30 19:50:43 +00:00
Andreas Köhler
e32d09e5ac Make gnucash compile on an optimizing gcc-4.2.
Patch from Jerry Quinn
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16771 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-30 18:42:20 +00:00
Andreas Köhler
e576797c0f Fix a few automake warnings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16770 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-30 18:34:08 +00:00
Joshua Sled
13d55f421c Bug#506429: Correct widget index offset computation for last-day-of-month SXes.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16769 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-30 15:58:03 +00:00
Christian Stimming
03c3bfa054 Remove translation string from gnucash.pot that is looked up in gtk20 domain.
As pointed out by Bruno Haible, if there is only one dgettext call
the easiest way to exclude this from xgettext extraction is to rename
this particular dgettext call by a wrapper macro.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16767 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-30 10:57:38 +00:00
Joshua Sled
7c71c843f8 Bug#505972: Correctly size the GUID string buffer; should resolve 2.2.2 SX crashes.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16766 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-29 22:36:07 +00:00
Phil Longstaff
0ed4af2ef1 Make some parameters const
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16764 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-29 19:40:28 +00:00
Phil Longstaff
2c602edbd9 Update valgrind suppressions
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16763 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-29 17:44:00 +00:00
Phil Longstaff
8de27ea72d Make some parameters const
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16762 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-29 17:43:46 +00:00
Phil Longstaff
8ab8f16536 Fix valgrind error - conditional based on uninitialized variable
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16760 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-29 03:26:22 +00:00
Andrew Sackville-West
945975bc50 another stab at improving rounding. prevent more overflows as pointed out by Kendall Green.
lots of GNC-AUTO-DENOM seems to clean up the overflowing and prevent phantom gains/losses from rounding errors.
BP



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16759 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-29 00:25:36 +00:00
Andrew Sackville-West
c510e32a55 Charles Day's improvements to qif memo/notes handling. bug #495219.
BP



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16758 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-28 23:16:44 +00:00
Andreas Köhler
9c1785f933 Fix two memory leaks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16756 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-28 21:44:25 +00:00
Andreas Köhler
b7e0f52277 #505386: Strip non-utf8 characters from ofx check and reference number strings.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16755 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-28 14:45:40 +00:00
Phil Longstaff
c84ba95da8 1) Make some function parameters const
2) Add '.deps' to svn:ignore



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16754 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-28 02:27:57 +00:00
Andreas Köhler
6c914bdf7b Bump version number to 2.2.99 on trunk.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16747 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-27 15:12:12 +00:00
Derek Atkins
cfb048d142 Don't need to sleep in the test. (#505894)
If we do need to sleep, next time the comment should explain why.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16746 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-27 14:15:15 +00:00
Derek Atkins
e6fbb91151 Fix the logic of the #if for the warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16745 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-27 14:02:06 +00:00
Andreas Köhler
9ffcb192b9 Correct Ertraege in latin1-encoded german account templates.
This stems from r16550 and r16551 and is due to a weird mixture of
utf-8 and iso-8859-1 in the de_* files.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16742 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-27 12:22:09 +00:00
Christian Stimming
5ac78bce18 Fix i18n string to translate only the meaningful part.
Remove the unnecessary "for" in the report title.
This doesn't introduce any new string. It can be back-ported right away.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16740 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-27 10:44:44 +00:00
Christian Stimming
03aa05c2a6 Remove unused import-export/qif files from translation input.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16733 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-26 22:07:22 +00:00
Derek Atkins
971bc5b709 Allow the user to permanently disable currency quotes (#499496)
Patch by Daniel Harding

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16730 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-26 05:17:37 +00:00
Derek Atkins
0fc726dc0f Show the balance row for all transactions before the "from" date.
Patch by Jeff Green
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16729 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-26 03:28:09 +00:00
Derek Atkins
cd0574e346 Including all bills/invoices since the beginning of time.
Patch by Jeff Green.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16728 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-26 03:14:22 +00:00
Derek Atkins
8dfc49dc84 Wait for pending events before displaying the tree view (#463678)
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16727 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-26 02:39:29 +00:00
Derek Atkins
3759d41f96 Don't un-clear transactions improperly when postponing reconciliation (#497517)
Patch by Jeff Green and Mark Jenkins
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16726 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-26 02:26:39 +00:00
Derek Atkins
fec3d53296 Allow creation of new lots from lot viewer. (#420543)
Patch by Klee Dienes <klee@mit.edu>

        * src/engine/Account.c (xaccAccountRemoveLot): Generate a
        QOF_EVENT_REMOVE for the lot and QOF_EVENT_MODIFY for the account.
        (xaccAccountInsertLot): Ditto, but QOF_EVENT_ADD.
        * src/engine/gnc-lot.c (gnc_lot_make_default): Move from
        cap-gains.c.
        * src/engine/gnc-lot.h (gnc_lot_make_default): Add prototype.
        * src/engine/cap-gains.c (MakeDefaultLot): Move to gnc-lot.c as
        gnc_lot_make_default().
        * src/gnome/lot-viewer.c: Add code to support lot creation:
        (RESPONSE_NEW_LOT): Add enumerated value.
        (lv_save_current_row): New function.
        (lv_select_row): Add call to lv_save_current_row.
        (lv_unselect_row): Use lv_save_current_row.
        (lv_close_handler): Use lv_save_current_row.
        (lv_response_cb): Handle RESPONSE_NEW_LOT.
        (gnc_lot_viewer_dialog): Watch for QOF_EVENT_ADD and
        QOF_EVENT_REMOVE for lots.
        * src/gnome/glade/lots.glade: Add "new lot" button.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16725 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-26 02:14:55 +00:00
Derek Atkins
480bb412c7 Fix a crash in the receivable aging report (#384879)
Dont access the owner object after it's freed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16724 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-26 01:38:45 +00:00
Derek Atkins
04243f92fc reduce the width of reports (#366934)
Use &nbsp; instead of extra columns.
Patch by Paul Andreassen

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16723 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-26 01:07:04 +00:00
Derek Atkins
67119eeb53 Make sure we require slib in our RPM packaging (#471321)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16722 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-26 00:10:03 +00:00
Derek Atkins
a4ec8b5e52 Add currencies XDR and XXX for IMF and "no-currency" (#504935)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16721 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-26 00:03:03 +00:00
Derek Atkins
238141c6c4 Maintain separate invoice number sequences for AR and AP (#327218)
Actually, maintain separate number sequences for Customer Invoices,
Vendor Bills, and Employee Expense Vouchers.  Support Jobs, too.
Based on a patch by Alex Prinsier.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16720 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-25 16:56:35 +00:00
Derek Atkins
3b983ff5cb Choose a reasonable currency in stock registers (#116353)
Based on the patch from Mike Alexander, walk up the account
tree until we find a "currency" account and use that instead
of always using the locale currency.  Pop up a dialog if this
fails search fails.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16718 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-25 16:23:47 +00:00
Derek Atkins
6f39c0c26e (#492137) Re-apply r16619 and make a change to the test
harness to actually get the checks to pass with r16690.
This was an overflow in the test harness.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16716 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-24 21:18:09 +00:00
Derek Atkins
244a779d7a Make sure to properly parent auto-created accounts.
Make sure to properly set account commodity.
Make sure a currency sub-account doesn't already exist before creating one.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16715 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-24 20:28:02 +00:00
Derek Atkins
fe28cceea7 Fix a fencepost error in the book closing code (#106383).
Add 12 hours to the close_date before asking for the BalanceAsOfDate()


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16714 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-24 04:48:49 +00:00
Derek Atkins
8ca76d3635 First pass at a Book Closing dialog (#106383)
Helps the user to auto-zeroize Income and Expense accounts.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16713 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-24 04:40:53 +00:00
Derek Atkins
27fcf8ff7c Back out r16619 (#492137) because it breaks test-lots
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16712 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-24 04:40:46 +00:00
Christian Stimming
5115546ef8 Fix spelling errors in UI messages.
Pointed out by Clytie Siddall. Those will break several translated
strings, but the fixed typos are an actual improvement.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16706 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-23 21:45:56 +00:00
Christian Stimming
fbf08c2a0d Remove extra spaces in glade messages.
Pointed out by Clytie Siddal. Those will break 2 translated strings.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16705 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-23 21:45:46 +00:00
Christian Stimming
3494820ae8 String improvements in gconf labels and error messages as pointed out by Clytie Siddall.
Those strings are invisible for almost any user anyway and can therefore
be back-ported soon, too.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16704 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-23 21:45:41 +00:00
Christian Stimming
05df54193f String improvements, as pointed out by Clytie Siddall.
This changeset does not add any untranslated strings and does not
change any existing translated strings. It can directly be back-ported.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16703 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-23 21:45:34 +00:00
Andrew Sackville-West
669a26cf7f Richard Laager's patch to Advanced Portfolio. Adds an Income column, and an option to ignore brokerage fees in return calcs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16693 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-22 05:28:56 +00:00
Andrew Sackville-West
f0e149e6cd Daniel Harding's update to Afghani currency. closes #504257
BP



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16690 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-21 18:53:38 +00:00
Andrew Sackville-West
411abc0d7b make some improvements to handling of moneyin/out. Clean up some cruft. Fixes #355660. May at least partially fix #346062
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16684 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-19 21:59:44 +00:00
Andreas Köhler
1fb8b422e6 #503889: Improve r16678 when install icons according to spec.
Make it work for builddir != srcdir.  Do not distribute share\icons or
share\pixmaps on win32.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16683 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-19 18:07:31 +00:00
Andreas Köhler
4fc674cdc8 Update last stable version on trunk to 2.2.2.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16682 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-12-19 17:38:57 +00:00