Commit Graph

15000 Commits

Author SHA1 Message Date
Geert Janssens
432632fa73 Add tax tables lookup to python bindings.
Add function to lookup tax tables to Book and add taxtable conversion
to base typemap.

Author: Hendrik van Antwerpen <hendrik@van-antwerpen.net>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22805 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-22 18:15:28 +00:00
Geert Janssens
a261c17e0b Fix compile error after r22799 due to missing CFLAGS
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22804 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-22 17:16:46 +00:00
Geert Janssens
9e4102426d jqplot line chart: make markers and grid optional again
This was a regression from the goffice based chart, pointed out by Mike
Evans

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22802 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-21 18:26:59 +00:00
Geert Janssens
e9ca8116f5 Charts: improve tooltips on line and bar charts
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22801 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-21 16:51:40 +00:00
Geert Janssens
d618732946 Charts: source formatting
- fix some whitespace
- improveformatting of resulting html

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22800 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-21 16:51:31 +00:00
Geert Janssens
ad1b94bc24 Drop goffice dependency from our html engine
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22799 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-21 16:51:20 +00:00
Geert Janssens
eb5e7aa175 Improve linechart
- convert chart to jqplot
- drop goffice based code

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22798 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-21 11:27:56 +00:00
Phil Longstaff
190665ac2f Initial changes to budget view.
1) Splits gnc-budget-view.c/.h out from gnc-plugin-page-budget.c.  gnc-plugin-page-budget.c now creates a GncBudgetView and provides the overall UI and integration for it.
2) GncBudgetView changes:
    a) If an account has children but does not have a specific budget value for a period, the sum of the children's budget values will be displayed in gray
    b) Totals column on the right provides total for a budget row (account)
    c) At the bottom, totals lines with total income, total expenses, total transfers (assets+liabilities) and grand total (income - expenses - transfers)



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22796 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-21 01:10:21 +00:00
Geert Janssens
f15df6795c Improve scatterplot chart
- drop goffice based chart, only keep jquery one
- support all jqplot shapes for the markers

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22795 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-20 18:52:15 +00:00
Geert Janssens
3c0ce65cec Improve piechart
- drop goffice based chart, only keep jquery one
- move legend outside of plotting area

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22794 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-20 18:51:53 +00:00
Geert Janssens
5ffd94062b Improve jqplot's barchart renderer's barWidth and barPadding calculation
The improved formula scales more gracefully from extremely small to
extremely large.

Note: this modifies jqplot itself. We may need to either
- attempt to get this in the upstream code
- see if we can get a similar result by improving our own code

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22793 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-20 18:51:41 +00:00
Geert Janssens
1672f14878 Define EOL style for javascript files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22792 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-20 18:51:26 +00:00
Geert Janssens
9d535f045c Improve barchart
- drop goffice based chart, only keep jquery one
- move legend outside of plotting area

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22791 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-20 18:51:04 +00:00
Geert Janssens
e5d298e4b5 Update to jqplot 1.0.6
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22790 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-20 18:50:43 +00:00
Geert Janssens
f8dabf5db3 jqplot: fix paths to js and css files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22789 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-20 18:50:30 +00:00
Geert Janssens
6776fc0ae8 Fix code to find html files
- look in pkg_data_dir as last resort (eg /usr/share/gnucash)
- effectively test all directories instead of only the second one
- add a debug print line

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22788 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-20 18:50:21 +00:00
Geert Janssens
9d5daf7dea Enable jqplot for barchart, piechart and scatterchart
Patch by Andy Clayton

This doesn't work anymore due to changes in other parts of GnuCash, but
is a good starting point to fix it.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22787 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-20 18:50:10 +00:00
Christian Stimming
df6c89eae3 Aqbanking online transfer: Disable the non-SEPA verification rules for SEPA transactions.
Eventually, the SEPA rules need to be implemented, but for now we
just allow any alphanumerics.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22786 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-19 21:05:14 +00:00
Christian Stimming
ac23fa1183 Aqbanking online transfer: Set the date in the gnucash txn dialog to non-sensitive.
Users regularly expect that date to be the online job execution date,
but that's not what is implemented. So we prevent editing here at all.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22784 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-18 20:48:28 +00:00
Christian Stimming
37c66aea36 Minor update for SEPA (European) online transfers (after r22445)
Add direct debit. Make menu items sensitive correctly.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22783 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-18 20:37:08 +00:00
J. Alex Aycinena
81cadea035 Update taxtxf.scm to fix beginning balance sign and signs for Transfer From/To amounts for
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22780 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-16 22:50:01 +00:00
John Ralls
b5042466a9 Fix gnc-cdate format to match that of POSIX cdate
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22776 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-12 23:09:54 +00:00
Christian Stimming
6b0ade1851 Get cutecash/C++ to compile again.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22767 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-08 20:47:42 +00:00
Mike Evans
679d59e445 Bug 683881 Partial implementation.
TODO:
  Saving search preferences doesn't save reverse sort.
  The blank_split remains at the bottom of the register when reverse
  sorted.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22766 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-08 11:02:55 +00:00
Mike Alexander
9ba6e69d5e Avoid a crash when entering invalid dates (e.g., enter "111" for a transaction date).
gnc_parse_date is ignoring the return code from qof_scan_date which causes it to
send uninitialized values to gnc_mktime which crashes if the date is too ridiculous.
Presumably this worked before because mktime took anything without crashing.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22755 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-06 04:24:38 +00:00
J. Alex Aycinena
c295ef3d28 Update txf.scm to reflect changes to US Income Tax Forms and Schedules for 2012.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22753 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-05 00:35:40 +00:00
Mike Alexander
9133c9cfe3 Use gnc-commodity-equiv to compare commodites, not equal?
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22752 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-04 03:15:44 +00:00
Mike Alexander
e4dced2d99 Allow the price quotes perl script to return multiple quotes on a single call.
This makes it easier to add historical prices using a different perl script.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22751 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-04 02:32:50 +00:00
Mike Alexander
8e67373b03 Improve HTML account table generator
Make it possible to add to an existing row and do a better job of
keeping track of whether any values were display for child accounts.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22750 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-02-04 00:50:13 +00:00
Mike Alexander
5c5b6ed77c Do a better job of calculating debit and credit fractions.
Make gnc_split_register_set_cell_fractions agree with
gnc_split_register_get_debcred_entry.
If the account for a split changes recalculate the fractions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22736 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-01-30 05:22:46 +00:00
Mike Alexander
31d6c41f5e Do a better job of prompting for an exchange rate only when needed.
If the debit or credit value of a split changes, prompt for an exchange rate.
Don't prompt for an exchange rate in a register that doesn't have a rate cell
(and fix a bug so that it knows that portfolio registers don't have one).
If the transaction has been autofilled and edited start with a nearby rate
from the prices DB.  If it is an existing transaction start with the exchange
rate it already has.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22735 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-01-30 05:22:38 +00:00
Mike Alexander
e48fb17a13 Don't store a negative reconcile interval.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22723 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-01-22 22:25:31 +00:00
Geert Janssens
bf34e32303 Bug #680086 - Each Tip of the Day has an n shown at the end
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22721 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-01-22 10:14:51 +00:00
Geert Janssens
bc0940a49e Win32 build: add attribution for a code snippet in bootstrap
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22720 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-01-22 10:14:35 +00:00
J. Alex Aycinena
ced147f641 Remove circular dependency introduced in r22681
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22717 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-01-19 23:29:35 +00:00
Geert Janssens
141efcbedc Fix another eol issue
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22716 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-01-19 21:00:51 +00:00
Geert Janssens
c33eaf006e Win32 build: some more patchfile cleanups
Wrap patching code in conditional in most cases to only run patch if
there actually is a patch file available.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22715 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-01-19 18:28:00 +00:00
Geert Janssens
15c3a1bfd4 Win32 build: rename patch files to consistently end in .patch
This way they will be checked in/out in proper line ending style on all
supported platforms.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22714 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-01-19 18:27:51 +00:00
Geert Janssens
08cbbca194 Win32 build: remove obsolete patches
The code used to apply the patches if present still remains to cater for
possible future patches.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22713 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-01-19 18:27:40 +00:00
Geert Janssens
98bf2ad608 Define line ending style for different file types
Additionally, fix line endings on some files that were inconsistent
in this regard.

This gives a more consistent experience on all development
platforms.

All source files (be it scripts, makefiles, autoconf/automake
files,...) are given an explicit line ending style. For most
LF was chosen. Exceptions are typical windows scripts (.bat, .cmd,
.vbs,...) and some files related to the windows installer. Those
are fixed at CTRL/LF because the installer would have issues
otherwise).
The remainder of files are mostly plain text files (README's,
CHANGELOG's,...). These files are stored with LF line ending
in the repo, but checked out with the platform's native
line ending style. git takes proper care of the necessary
conversions automatically.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22712 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-01-19 18:27:27 +00:00
Geert Janssens
f6e626276b Bug #604520 Explain scope of find transaction tool.
Signed-off-by: Yawar Amin <yawar.amin@gmail.com>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22711 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-01-19 09:25:27 +00:00
Geert Janssens
5f28fc8c88 Win32 build system: Experimental bootstrap script
The goal of this script is to make is extremely easy to start gnucash
development on Windows. After downloading and running this script, the
user should be ready to start coding.

Note that this is not the case yet. The bootstrap script is only the
first step in that direction.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22707 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-01-18 16:02:09 +00:00
Geert Janssens
f3a35cc6a1 Bug #672364 - does not properly handle XML parse errors, leading to
possible data loss

Handle return value of xmlParseDocument()
Ignoring errors can lead to data loss.
Author: Sébastien Villemot <sebastien@debian.org>
Bug-Debian: http://bugs.debian.org/696282
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22703 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-01-15 16:15:57 +00:00
John Ralls
2824afbabc Fix #638955
Connect the `Help' button in the `Close Book' dialog box (Tools > Close
Book) to newly-written help section on book closing.

Signed-off-by: Yawar Amin <yawar.amin@gmail.com>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22701 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-01-14 01:18:48 +00:00
John Ralls
19c65666d9 Fix string leak in gnc_gnome_help()
Thanks to Yawar Amin for pointing it out.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22698 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-01-13 22:51:44 +00:00
Mike Alexander
18bb5e843d Fix gnc_difftime so it is the same as difftime, which it replaces.
It was computing the negative of the expected value.  The most obvious
effect of this was that the reconcile interval became negative when you
reconciled an account so each reconciliation was earlier than the previous.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22688 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-01-01 00:10:07 +00:00
Geert Janssens
365237aec4 Move gnc_guile_strip_comments to core-utils and normalize its name to
gnc_scm_strip_comments

Also make it a true convenience functions by doing the conversion from
an scm string to a c string internally. This saves the caller a manual
conversion step.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22687 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-22 18:21:03 +00:00
Geert Janssens
feb2eac9e4 Normalize naming convention for guile convenience functions
Let them all start with gnc_scm_*
Copy the guile naming convention as close as possible for the remainder

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22686 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-22 18:20:53 +00:00
Geert Janssens
5666e5bd6d Properly use scm_dynwind_* functions where they still make sense
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22685 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-22 18:20:39 +00:00
Geert Janssens
06eb020f7f Readd gnc_scm_to_locale_string function and use it where appropriate
This function is a wrapper around scm_to_locale_string which returns
a gchar * to be freed with g_free. The return value of the original
function has to be freed with free. This is confusing since most of
the gnucash code relies on g_malloc/g_free.

While at it, clean up a lot of memory handling issues around (gnc_)scm_to_locale_string

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22684 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-22 18:20:29 +00:00