Commit Graph

15814 Commits

Author SHA1 Message Date
John Ralls
24660782f0 Bug 722123 - Zero price entry added to price database on stock purchase
Just needed to get the new price back from the cell after it was
calculated.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23740 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-22 01:53:02 +00:00
John Ralls
b8c1989d7d Bug 721464 - Program won’t open the website link
Rejigger the about dialog call so that there's a signal to connect
to gnc_launch_assoc; gtk_show_uri requires gvfs.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23739 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-22 01:52:53 +00:00
Christian Stimming
eb71ed8cb7 Updated German translation, by Mechtilde Stehmann.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23738 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-21 20:39:27 +00:00
Cristian Marchi
100f23eb42 Small update for the Italian translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23737 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-21 12:42:15 +00:00
Cristian Marchi
93867e1eb9 Update Danish translation from the translation project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23736 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-21 12:41:38 +00:00
Cristian Marchi
836d596aa7 Update Catalan translation from the translation project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23735 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-21 12:41:05 +00:00
Mike Alexander
6c62a2da98 Fix r23732. By the time we get to inner_main it's too late to call gnc_prefs_init.
By then the main window has been created so it doesn't get hooked into the prefs system.
One symptom of this is that the "tab position" pref doesn't affect that window.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23734 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-21 05:04:18 +00:00
John Ralls
8be7d15e1d Prevent gnc-commodity from marking the book dirty at file-load.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23733 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-20 22:53:08 +00:00
John Ralls
6b083f45a3 Bug 721966 - --add-price-quotes ignoring compress files preference
Move gnc_prefs_init() call to inner_main and
inner_main_add_price_quotes.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23732 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-20 22:52:56 +00:00
John Ralls
3e72e3cd51 Bug 721913 - Fetch Rate crashes application
Enable the "Fetch Rate" button only if Finance::Quote is installed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23730 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-20 18:52:51 +00:00
John Ralls
f95294e0df Fix typo from r23726
Thanks to Lorenz Hübscle-Schneider for finding it.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23729 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-20 16:12:47 +00:00
Mike Alexander
7c4a52da20 Advanced Portfolio: Tweak the rounding a bit more for bug #553020.
Also fixed some debugging messages.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23728 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-20 06:36:01 +00:00
Mike Alexander
0eda749c3c Fix rounding problems in conversions. Fixes bug #454827.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23727 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-20 05:08:47 +00:00
John Ralls
8c68c95135 Extract function check_readonly_threshold
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23726 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-20 01:55:11 +00:00
John Ralls
4efb4cd8c3 Protect GDateTime from getting an out-of-range year at creation.
It can behave badly. See
https://bugzilla.gnome.org/show_bug.cgi?id=721791#c8

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23725 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-20 01:55:04 +00:00
Mike Alexander
bcd5543195 Advanced Portfolio: Use the correct function to get today's date.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23724 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-19 23:30:58 +00:00
Mike Alexander
9c9a5b8847 Advanced Portfolio: Don't leak prices.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23723 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-19 22:40:17 +00:00
Mike Alexander
1f5b959f3d Advanced Portfolio: Don't print footnotes if the account that needs them isn't included.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23722 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-19 22:40:11 +00:00
John Ralls
bfcb8cec9e Fix configure's use of gnc-scm-info for out-of-tree builds.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23721 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-19 21:22:09 +00:00
John Ralls
56d4392d9d Replace pow(10, foo) with array dereference
Aside from being much faster, Windows was occasionally returning
e.g. 99 instead of 100 for pow(10, 2).  This stops that and thus
fixes:
Bug 721447 - Entries with values of ,50 are imported as ,51
Bug 721825 - Online prices displayed as unreadable fractions in 2.6.0

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23720 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-19 21:22:01 +00:00
Geert Janssens
fce049060e Win32: update swig to 2.0.11 to fix the build after commit 23702
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23719 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-19 20:52:46 +00:00
Mike Alexander
dd1dde78a4 Advanced Portfolio: Remove the "latest before" price source.
It's not implemented and could easily be added back if it ever is implemented.
This will break any saved report using this price source, but they are
broken already.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23718 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-19 07:10:31 +00:00
Mike Alexander
e4a3232e3e Advanced Portfolio: Try harder to find a price and use the one it claims to be using.
Sometimes it would display one price but use another one to compute the value.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23717 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-19 07:10:21 +00:00
Mike Alexander
9d2687645a Advanced Portfolio: Fix realized gain calculation and handling of brockerage fees.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23716 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-19 07:10:14 +00:00
Mike Alexander
ae96f2bffd Advanced Portfolio: Fix the basis calculations.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23715 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-19 07:10:04 +00:00
Mike Alexander
916ad28fc8 Advanced Portfolio: Use the more common LIFO name for the basis method.
Don't change the internal code to avoid invalidating saved reports.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23714 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-19 07:09:44 +00:00
Mike Alexander
c7c68508c8 Advanced Portfolio: Fix a bug in the code that detects a spin-off.
It was using an unset variable that was always zero.
Also do a better job of finding a pricing transaction and a couple of other
minor changes.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23713 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-19 07:09:21 +00:00
Mike Alexander
be931f7673 Advanced Portfolio: Eliminate all overflow problems.
Share and price calculations are done to 5 decimal places and currency
calculations are done using the precision defined for the currency.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23712 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-19 07:09:13 +00:00
Mike Alexander
7e13c7d73e Advanced Portfolio: Add some more debugging output.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23711 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-19 07:09:06 +00:00
Mike Alexander
018bc23602 Make various reports work with the "average cost" price source.
THe Portfolio report crashed and several othsrs used "nearest" instead.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23710 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-19 07:08:59 +00:00
Mike Alexander
e32ba766b6 Don't leak prices in the (non-advanced) portfolio report.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23709 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-19 07:08:52 +00:00
Mike Alexander
96957db600 Remove the max_count test in gnc_plugin_page_report_name_changed.
This limits the total number of times it can be called per invocation
of GnuCash for no obvious reason.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23708 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-19 07:08:45 +00:00
John Ralls
7755f9658c Ensure struct tm is zeroed before passing it to gnc_tm_get_today_start
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23707 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-18 21:50:31 +00:00
John Ralls
36ad32cfe8 Bug 721791 - Segmentation fault when correcting invalid date
And greatly simplify gnc_split_register_get_date_help by just getting a GDate and running
g_date_strftime on it instead of messing around with Timespecs and g_localtime_r (twice!)
and all of that just to make a stupid string.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23706 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-18 21:50:21 +00:00
Cristian Marchi
1a7effc7fd Bug 605991 Help button on New and Edit Job dialogs brings up wrong help page. With this patch I linked almost all business features to corresponding help pages. For features not yet documented, the button will open the initial chapter of the business section.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23705 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-18 18:47:52 +00:00
Cristian Marchi
32f0ff065a Update Catalan translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23704 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-18 16:56:12 +00:00
Cristian Marchi
edcbc38e17 Update Italian translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23703 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-18 16:45:41 +00:00
Geert Janssens
e48381ecf9 Bug 721600 - Segmentation fault on startup if report Income/Expense Chart was opened since last running
This bug is a continuation of bug 719481. The fix for that bug
wouldn't trickle down into the release tarballs because the needed
patch would only be applied if the tarball were generated against
guile 2.

This commit fixes this by applying that patch unconditionally

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23702 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-18 15:09:52 +00:00
John Ralls
2d97811265 Bug 722035 - Missing space in the Spanish translation of msgid "Total For "
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23701 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-17 00:26:12 +00:00
John Ralls
65e6185014 Bug 721576 - Gnucash can not work with files, that have russian symbols in path.
g_win32_locale_filename_from_utf8() is not only unnecessary, it does the
wrong thing.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23700 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-17 00:03:47 +00:00
John Ralls
767a25f7a7 Bug 555182 - Security Type template hidden
Part 2: Change commodities in namespace "template" to namespace "User"
unless the mnemonic is also "template". This makes commidities which
have been entered into "template" by mistake visible so that they
can be deleted or edited.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23699 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-16 22:52:03 +00:00
Christian Stimming
35217b6aeb Update cmake/cutecash build, adding the recently newly introduced file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23697 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-15 13:06:22 +00:00
John Ralls
b6654362ac Bug 721290 - SX Editor: Pressing "Enter" too soon hides transaction
The problem was that r23585 was a bit too broad in what it excluded, so
narrow it down to require exactly one split and that that split's
account is NULL.

Note that this will still cause the split to disappear from the SX
editor if one creates a transaction with no splits or with one that has
no account: A split will be created in the appropriate Orphan account.
It will be visible there and in the General Ledger so that it can be
easily deleted.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23692 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-13 02:12:45 +00:00
John Ralls
9ec098bc6b Extract function update_info.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23691 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-13 02:12:35 +00:00
John Ralls
4bf29ed1fb Extract function change_account_separator.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23690 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-13 02:12:27 +00:00
John Ralls
cd7f6d4120 Extract function create_blank_split.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23689 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-13 02:12:19 +00:00
John Ralls
5ad7e5a625 Bug 555182 - Security Type template hidden
Part 1: Prevent users from creating commodities of type "template"

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23688 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-13 02:12:10 +00:00
Christian Stimming
d5ba1ecc38 Fix build for aqbanking with version number > 5.2.0
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23687 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-12 20:50:51 +00:00
Christian Stimming
cad3b89973 Win32 build: Update aqbanking to most recent version 5.3.0
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23686 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-12 19:48:59 +00:00
Christian Stimming
5e797281fb Win32 build: Remove support for aqbanking < 5.x because 5.x has been released since 2010 by now.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23685 57a11ea4-9604-0410-9ed3-97b8803252fd
2014-01-12 19:48:49 +00:00