Commit Graph
100 Commits
Author SHA1 Message Date
Mike Alexander d9c33eb571 Update .gitignore to include recently added config macros.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23597 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-22 22:13:42 +00:00
Mike Alexander b21713b1ba Load old version 1 XML files without crashing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23596 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-22 22:13:36 +00:00
Mike Alexander 85c7631406 Ignore missing accounts in gnc:filter-accountlist-type to avoid an assert.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23549 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-12 05:18:09 +00:00
Mike Alexander 894630e1d4 Ignore XCode projects
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23548 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-12 05:17:43 +00:00
Mike Alexander b3a433d7b8 Check for null account pointers in gnc_tree_view_account_set_selected_accounts.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23547 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-12 05:17:30 +00:00
Mike Alexander 2a1f9f7547 Fix r23536: got the 'closing keyword wrong in a couple of places
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23538 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-10 23:38:58 +00:00
Mike Alexander 2182d04dad Change various reports to find book closing transactions without pattern matching
Several reports need to find book closing transactions and let you specify a pattern
to match against the description of the transaction to detect them.  The Close Book tool
marks the transactions it creates so they can be found without pattern matching.  This
changes makes those reports use that mark to find them even if the pattern match doesn't.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23536 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-10 22:17:50 +00:00
Mike Alexander 9f5f1320be Add the ability to search for transactions that are, or are not, book closing entries.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23535 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-10 22:17:00 +00:00
Mike Alexander 5c3f0d3c81 Don't add a \n to the beginning of the split memo, account, or amount lists.
Pango seems to ignore it, but it really shouldn't be there.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23498 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-07 07:33:39 +00:00
Mike Alexander 0d3d2c33b8 Fix bug 653594 related to check printing.
This bug has two parts.  The original bug was that the wrong split is sometimes
used to print the check.  In the comments a second problem was mentioned:
sometimes the wrong split is omitted from the split list in formats that print
all the splits.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23497 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-07 07:33:33 +00:00
Mike Alexander 80b51ad5dd Protect against null account pointers in a couple of place to avoid asserts.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23496 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-07 07:33:24 +00:00
Mike Alexander bf1c6d3278 Protect gnc_mktime against bad dates.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23495 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-07 07:33:14 +00:00
Mike Alexander 1787ffb01c Fix bug 719521. The two radio buttons were both there, but one on top of the other.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23482 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-04 00:58:51 +00:00
Mike Alexander b50ca70f50 Update progress bar while writing price DB as well as while reading it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23472 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-12-01 04:53:05 +00:00
Mike Alexander b3efabed2a Try to make the python bindings tests work with an out of source tree build.
This is almost ok, but it uses the schemas from the install tree.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23457 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-29 06:24:20 +00:00
Mike Alexander 27424d0e1c Make the test-dynload test work in the X11 version on MacOSX.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23456 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-29 06:24:13 +00:00
Mike Alexander 5cff297872 Work around WebKit bug 119003 by flushing events when removing a page from a window.
See <https://bugs.webkit.org/show_bug.cgi?id=119003>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23440 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-26 05:36:49 +00:00
Mike Alexander 71a50a8bb4 Update the progress bar while loading the price DB from an XML file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23429 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-22 21:07:51 +00:00
Mike Alexander 716497934c Don't write the default currency symbol to the output file.
Patch by Frédéric Perrin.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23419 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-21 04:57:30 +00:00
Mike Alexander 390c14aec2 Decompress zipped XML files ourself instead of letting libxml2 do it.
As of version 2.9.1 it has a bug that causes it to fail to decompress certain files.
See https://bugzilla.gnome.org/show_bug.cgi?id=712528 for more info.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23412 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-19 03:47:07 +00:00
Mike Alexander d6a8f9c0ea Add missing semicolon and only dump transaction when debugging.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23407 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-17 06:32:08 +00:00
Mike Alexander 679e78e45c Turn off the scheme compiler's "possibly unbound variable" warnings.
In guile 2.0 we get nearly 7500 of them loading the scheme files.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23402 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-16 22:59:00 +00:00
Mike Alexander 7942b9c11e Collapse the two transaction currency scrubbing functions into one and fix some bugs.
The most serious bug was that it would, in some cases, set the transaction's currency
to a non-currency commodity.  It also sometimes set the currency directly without calling
xaccTransSetCurrency which skipped a number of side effects.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23387 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-11 03:09:57 +00:00
Mike Alexander b205a7713d Handle multi-currency transactions in registers without a default currency.
Editing a multi-currency transaction in a serach results register sometimes
sets the exchange rate to 1 instead of the value you want.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23384 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-11-08 04:53:10 +00:00
Mike Alexander 1cfa86695a Guard against bad parameter to gnc_plugin_page_invoice_summarybar_position_changed.
This avoids the crash in bug #710979 but doesn't fix the underlying problem.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23346 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-28 19:17:00 +00:00
Mike Alexander 45f18a7eff Add --with-xdg-data-dirs to specify default search path for XDG data directories.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23343 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-27 21:57:42 +00:00
Mike Alexander 0c5c0c7e19 Fix a typo in --with-qt3-wizard-package.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23342 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-27 21:57:32 +00:00
Mike Alexander d1668d5f39 Use ";" as seperator characer since that's what g_key_file_get_keys wants.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23305 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-20 03:41:17 +00:00
Mike Alexander 0efd34e4ff Eliminate null entries in path lists in environment_override.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23304 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-20 03:37:43 +00:00
Mike Alexander 6591be1005 Use the compile time value of XDG_DATA_DIRS to set the default run time value.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23303 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-20 03:34:20 +00:00
Mike Alexander 86434e10e5 Add back, and bring up to date, the debugging function qof_book_print_dirty.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23072 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-06-29 05:57:52 +00:00
Mike Alexander d81cb73e0c Make it possible to post multiple invoices from the find dialog.
GnuCash was crashing if you searched for all unposted invoices, selected two or
more of them, and posted them.  This was because the list of invoices to be posted
changed while it was being processed.  As part of fixing this the prompt for post date,
due date, etc. will only be given once, not once per invoice.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23071 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-06-29 05:57:44 +00:00
Mike Alexander e7d58f756a Fix the crash that occurs when duplicating multiple invoices from Find results.
The biggest problem was that it was adding an invoice's entries to both the old
and the new invoice when duplicating the invoice.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23070 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-06-29 05:57:35 +00:00
Mike Alexander d339141394 Round properly when computing fraction of the transaction's value due to a given split.
Also use GNC-DENOM-AUTO instead of a constant zero when appropriate.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22976 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-12 03:41:41 +00:00
Mike Alexander d9d56620f5 Quote the python path in case it has blanks in it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22953 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-05 21:57:35 +00:00
Mike Alexander f655797fac Fix test for Python to avoid error message
Getting error like
../../gnucash/configure: line 23573: x/opt/local/bin/python: No such file or directory

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22946 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-04 18:38:41 +00:00
Mike Alexander 01e0693a23 Compile md5.c with "-fno-strict-aliasing".
The function md5_finish_ctx dereferences type-punned pointers which
breaks strict aliasing rules.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22832 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-03-24 00:03:54 +00:00
Mike Alexander 28749fb1c3 One more try to get initialization right.
This doesn't change things unless --add-price-quotes is given.  If it is then it must be
handled before gtk is initialized since DISPLAY might not be set which will cause gtk
initialization to fail.  This happens when running the X version of GnuCash from launchd
on a Mac to get price quotes updated.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22831 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-03-23 06:41:09 +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
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
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
Mike Alexander ba9b85a260 Use the correct fraction when editing expanded multiple currency transactions.
When a transaction is expanded and trading accounts are in use, the debit
and credit cells contain values in the split's commodity not the transaction's
currency.  For example if you have a transaction involving JPY and USD
currencies and the transaction's currency is JPY, you can only enter whole
dollar amounts in the USD splits.  This fixes this problem.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22673 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-19 05:34:48 +00:00
Mike Alexander adfc01fa2a Another but in r22646, still getting the existing price check wrong.
It's a long-standing rule that I don't do numbers well.  Third time's
a charm, I hope.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22664 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-18 06:07:46 +00:00
Mike Alexander a8ca64a2f0 Fix r22656 so it compiles: delete duplicate def of scm_to_int64.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22661 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-17 05:35:41 +00:00
Mike Alexander 060492194e Fix a bug in r22646: incorrect test for equivalent price already in price DB
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22660 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-17 05:35:34 +00:00
Mike Alexander 4af03554c6 Call gnc_split_register_current_trans_expanded instead of duplicating it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22659 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-17 05:35:27 +00:00
Mike Alexander 8d32361ede Improvements to exchange rate dialog.
Use a price on the same day as the transaction as default if there is one.
Don't add a new price to the price DB if the nearest one on the same day
is equivalent to the one being added.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22646 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-13 05:13:49 +00:00
Mike Alexander 6ed3bfa6a3 Better detection of unbalanced transactions with trading accounts.
A transaction's value should be balanced independently in trading and
non-trading splits to be considered balanced.  Incorrect adjustment
of exchange rates on existing splits can cause this to be an issue.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22645 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-13 05:13:42 +00:00
Mike Alexander 366411853d Don't leak a GNCPrice after fetching prices from finance-quote.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22644 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-13 05:13:34 +00:00
Mike Alexander 6df1174719 Changes r22619 and r22620 broke online price quote retrieval.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22631 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-06 04:07:56 +00:00
Mike Alexander 3f130f2c1b Parse arguments before initializing GTK so --add-price-quotes works
when the GUI can't be initialized.  gtk_init_with_args fails before
parsing the arguments if the GUI can't be initialized.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22398 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-17 01:09:59 +00:00
Mike Alexander 54d1d0fa7f [Bug 683222] Display the "to amount" in the exchange rate dialog
when it is first shown.  Also updated some comments to be more
accurate.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22383 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-11 03:29:46 +00:00
Mike Alexander e1bd508f61 Add xaccTransDump back, it is very useful when debugging.
It was removed in SVN r21579, "Cruft Reduction"< but it's not cruft.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22382 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-11 03:29:39 +00:00
Mike Alexander 42da1e3378 Fix uninitialized variable warning in r22234.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22238 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-24 04:05:23 +00:00
Mike Alexander 805a94f3a5 Make python bindings build when using a separate build directory.
Don't symlink a (possibly non-existant) file from the source
tree on top of gnucash_core_c.py which was just generated by
swig in the build tree.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22237 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-24 03:09:33 +00:00
Mike Alexander b58ff2ffc1 Don't lose optimization flags passed in CFLAGS.
Change r17720 has a typo that causes it to lose all -Ox flags passed in
CFLAGS when it was actually trying to preserve them.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22236 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-24 02:58:01 +00:00
Mike Alexander d486d807c1 Fix r22010 to not crash if the current file has no company name.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22058 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-20 23:02:08 +00:00
Mike Alexander bbf0f9ef17 Fix a warning due to the wrong declaration for the return value of gzopen.
The return value is off by a level of indirection, it should be a gzFile not
gzFile *.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22057 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-20 22:14:32 +00:00
Mike Alexander 3f75cbf8e4 Fix the selection callback in account tree page which has the read only test backwards.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21683 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 22:13:07 +00:00
Mike Alexander b9c5d697c4 Fix r21499 which fixed bug #420342
1. Make searching for a date range work, the date range was being ignored and
   all transactions were returned.
2. Don't leak so many strings
3. Allow an end date in the filter even if there is no start date.
4. Don't reset the sort order or filter to the default if the user says
   to not save it.  Instead leave the saved value unchanged.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21680 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-05 06:06:03 +00:00
Mike Alexander 2e2edc1375 Make parallel build work in core-utils with python bindings enabled.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21604 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-21 05:43:38 +00:00
Mike Alexander ce3143c4be Avoid warning returning a boolean result in python bindings.
Getting "dereferencing type-punned pointer" doing Py_INCREF on Py_True and Py_False.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21603 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-21 05:43:29 +00:00
Mike Alexander 9369eae6d7 Avoid double free of capital gains transactions when quitting
If an register is open on an account that has capital gains transactions
created by the lot scrubber when you quit Gnucash, a capital gains
transaction may be freed twice since it is freed when the associated
sale is freed and again when it is encountered on the list of
transactions to be freed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21495 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-28 03:22:41 +00:00
Mike Alexander 35ae5e34a8 Don't include core-utils/gnc-gconf-utils.c in the source file list.
It's already part of one of the libraries the tests are linked with.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21303 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-22 21:06:51 +00:00
Mike Alexander 8d51acd247 The build fails if python bindings are requested and parallel build is on.
The make file knows how to build libgncmod-app-utils.la but doesn't realize that
${top_builddir}/src/app-utils/libgncmod-app-utils.la is the same file.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21302 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-22 21:04:51 +00:00
Mike Alexander 5307ca5ab3 Find the python libraries and includes even if the path to them includes a symlink.
When python is installed using MacPorts there is a symlink in the path.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21301 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-22 21:02:44 +00:00
Mike Alexander 5f980c8d1a Use the correct #define for the number of account types instead
of assuming that ACCT_TYPE_CREDITLINE is the last one.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21239 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-06 07:21:04 +00:00
Mike Alexander 021044cf31 Fix an unintialized variable warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20651 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-16 06:09:50 +00:00
Mike Alexander 0dee9da11b Fix a bug introduced in 20042 which caused lists of Scheme strings passed to C code to be garbage.
This caused online price quotes to fail for anything other than a currency.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20126 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-19 04:21:14 +00:00
Mike Alexander 6181f334f3 Make sure ENTER is balanced by LEAVE in gnc_commodity_set_quote_tz.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20125 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-19 04:18:00 +00:00
Mike Alexander 2f4e33a86f Make it possible to include trading accounts in the Income Statement and Profit and Loss reports.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20124 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-19 04:17:06 +00:00
Mike Alexander 75d71c93a3 Make "make check" work when run from "make distcheck".
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19935 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-13 17:08:41 +00:00
Mike Alexander 8adaf9d132 Move gnc-version.h and gnc-svninfo.h from gnome-utils to core-utils.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19928 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-12 06:48:20 +00:00
Mike Alexander 0288b5f69b If the build directory is not the source directory and the source directory
is read only, the build fails.  Fix by only making guile-strings.c if 
building from SVN.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19927 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-12 06:45:37 +00:00
Mike Alexander 6eb32d9d50 Get rid of the rest of the gnc-prices man page, r19921 is incomplete
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19926 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-12 06:33:50 +00:00
Mike Alexander 40bcdca2ca If you have a parent account with a subaccount whose commodity allows more
decimal places in the amount field than the parent account does things
don't work right if you open a register for the parent account and all
subaccounts.  This situation can occur if you have a broker account with
subaccounts for the securities held in that broker account. If you open a
register for the top account and all subaccounts, it is impossible to enter
a transaction to buy or sell a fractional share of the security where there
are more digits after the decimal point than the parent account allows.
This change fixes this if the subaccount allows no more than six digits
after the decimal point.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19925 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-12 04:26:56 +00:00
Mike Alexander 60ba32c6a6 Suspend GUI refresh while replaying a log file to avoid flicker and speed it up dramatically.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19690 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-20 22:19:33 +00:00
Mike Alexander 11cf9d417b Bug 3786338. Change r19243 deleted a call to xaccTransBeginEdit which causes a crash replaying a log that
deletes an existing transaction.  Log replay should now do exactly one xaccTransBeginEdit/xaccTransCommitEdit
call per logged transaction.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19689 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-20 21:31:39 +00:00
Mike Alexander 670ad9e6a6 Fix bug 573702. When reading an old data file that doesn't have a template root
account for scheduled transactions invent one.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19559 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-09-07 01:14:24 +00:00
Mike Alexander a9a46fcefb Fix crash when run with the --add-price-quotes parameter.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19381 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-07-28 04:13:58 +00:00
Mike Alexander 4bc072690b FIx bug 596124: don't crash if someone adds a split to a capital gains transaction
created by the lot scrubber.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19380 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-07-28 03:48:07 +00:00
Mike Alexander 7120209168 Double clicking on the balance column in a register doesn't resize the
column because there is a zero width column to the right of it.  This may
fix all or part of bugs 563588, 345711, or 506261.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19379 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-07-27 22:46:17 +00:00
Mike Alexander 53c6330c12 Properly check for SWIG version 2.0.0 and later.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19287 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-06-23 07:05:31 +00:00
Mike Alexander 0b87e05c53 Revert part of R19263. DYLD_LIBRARY_PATH must be set on MacOSX (running under X11, not Quartz) in order for GnuCash to find its dynamic libraries.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19286 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-06-23 07:04:09 +00:00
Mike Alexander 3bcf2f9264 Make the keychain interface in MacOSX compile and work.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19182 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-19 20:27:12 +00:00
Mike Alexander 33798cd3d3 When printing WebKit based reports respect the Page Setup settings.
If webkit_web_frame_print_full exists in the version of WebKit being used then 
use it with a GtkPrintOperation which has been initialized from the Page
Setup data.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19025 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-16 05:26:25 +00:00
Mike Alexander 891c051f83 Make the calculations more nearly the same as the older balance sheet report
Calculate retained earnings or loss from income and expense accounts and
label the amount needed to balance the books as the imbalance amount
instead of retained earnings or loss.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19018 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-12 02:38:43 +00:00
Mike Alexander d757673b87 Update eguile based balance sheet report to work with current GnuCash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19017 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-11 19:12:29 +00:00
Mike Alexander f4f35770cb Add the eguile based balance sheet report.
This version is directly from the wiki at
<http://wiki.gnucash.org/wiki/Custom_Reports_Using_Eguile>
and won't work in the current version of GnuCash.  It is included for 
reference purposes.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19016 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-11 19:05:44 +00:00
Mike Alexander 6d6a1eac8a Fix MacOSX keyring test in configure to work and make gnc-keyring.c compile if it does.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18999 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-06 02:19:25 +00:00
Mike Alexander fe6d35d6bf Initialize new_val in environment_override to avoid a compiler warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18998 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-06 02:17:21 +00:00
Mike Alexander dff335dd3e Speed up the balance sheet report by a factor of 5 or so by using C functions instead
of Scheme functions to get account commodity balances.  This idea is borrowed 
from the EGuile version of the balance sheet report.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18555 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-01-09 05:52:05 +00:00
Mike Alexander 9d725a6aef Remove a couple of unused local variables left over from a previous iteration of
the trading account changes.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18554 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-01-09 05:48:48 +00:00
Mike Alexander 5f07987bb2 Avoid a bunch of assertion failures when the general ledger is open. The general ledger has no
account so attempts to get the balance of the register's account pass a null account pointer
to functions that won't accept that.  Also stop leaking a GList in the functions that get account
balances.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18553 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-01-09 05:47:54 +00:00
Mike Alexander 6085758a8b Remove the "Compute unrealized gains and losses" option from the balance sheet
report.  Instead compute unrealized gains and losses only if the current book
does not use trading accounts.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18552 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-01-09 04:54:02 +00:00