Commit Graph
35 Commits
Author SHA1 Message Date
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
Mike Alexander 91bdb89a72 Add a Select Children button to the widget used for account selection in
report options dialogs.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18543 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-01-02 22:59:38 +00:00
Mike Alexander ee8a1499e7 Load gnc-build-url from the correct file so the accounts list
option works again.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18542 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-31 23:15:31 +00:00
Mike Alexander 5860ae976c Allow digits in Gtk action names created in gnc_create_extension_info.
This should fix bug 447339 as long as all report names are unique 
considering only alphanumeric characters.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18534 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-29 06:13:26 +00:00
Mike Alexander 003d7209a9 Watch out for a missing pricing transaction when looking for price data.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18524 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 08:04:48 +00:00
Mike Alexander 812a9fa6c5 Add a comment about GNC_COMMODITY_NS_ISO and
GNC_COMMODITY_NS_CURRENCY.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18523 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 08:03:23 +00:00
Mike Alexander 7dd2d8e566 Add new columns for the name of the lot each split is part of and for
the value of the split.  Both are optional and default to off.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18522 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 07:56:49 +00:00
Mike Alexander 3722706edd Fix some incorrect ENTER() and LEAVE() calls.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18521 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 07:41:23 +00:00
Mike Alexander 128c5dd195 Fix a couple of initialized variable warnings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18520 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 07:40:28 +00:00
Mike Alexander 10cead26b1 Call gnc_{suspend|resume}_gui_refresh while closing accounts and scrubbing lots
to make them go much faster and avoid flicker.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18519 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 07:39:49 +00:00
Mike Alexander 889f4d19ac Fix up some gnc:debug calls (and one comment).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18518 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 07:37:15 +00:00
Mike Alexander 2183451889 Watch out for a null account in render-corresponding-account-subheading, it
happened to me once.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18517 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 07:35:42 +00:00
Mike Alexander b5aff667de Pass the correct report name to income-statement-renderer-internal when rendering
a profit and loss report.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18516 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 07:34:30 +00:00
Mike Alexander 3ca3f9e72f Don't leak a file port when saving reports.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18515 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 07:33:26 +00:00
Mike Alexander fa9f788504 Reset found_trans_split when the transaction being considered in gnc_split_register_find_split
turns out to be the wrong one.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18514 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 07:28:30 +00:00
Mike Alexander e4dd190ed9 Add missing PORTFOLIO_LEDGER register type to switch statement in
gnc_split_register_get_debcred_entry.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18513 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 07:26:13 +00:00
Mike Alexander c6d4edd1b9 Fix an off by one error in gnc_ui_sx_loan_druid_create.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18512 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 07:21:18 +00:00
Mike Alexander 1866ebeaed Increase the size of the Guile stack to avoid stack overflow errors.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18511 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 07:17:09 +00:00
Mike Alexander 734c5e2f2c Fix a couple of echo commands and set warnings=no-portability when running automake.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18510 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 07:15:16 +00:00
Mike Alexander 8da75fff34 Make xaccSplitDump and xaccTransDump work for debugging.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18509 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 07:10:49 +00:00
Mike Alexander 9b31a03191 Teach xaccSplitConvertAmount that 0*x = 0. Avoids looking up non-existant exchange rate.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18508 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 06:30:26 +00:00
Mike Alexander 574385f9fd Add some missing Leave() calls.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18507 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-17 06:25:45 +00:00
Mike Alexander daa1c8e23b Symlink the reports to the build directory to make it easier to use them when
running in place after a build without installing GnuCash.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18498 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-14 05:52:22 +00:00
Mike Alexander 287c85ce9d Use resolve-interface instead of resolve-module when loading reports fo only the
exported interface gets imported instead of everything defined in the file.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18497 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-14 05:50:57 +00:00
Mike Alexander e7cd4d4595 Make the dbi backend tests work correctly if dbd is installed in a nonstandard location.
Supply a GNC_DBD_DIR environment variable to the tests so it knows where to find the 
database modules.  This is needed if libdbi is installed via MacPorts on OS X.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18496 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-14 05:48:45 +00:00
Mike Alexander e150417410 Fix the bug described in comment 19 of bug 537476, balance sheet wrong without trading accounts.
The problems is that xaccQueryAddAccountMatch and xaccQueryAddAccountGUIDMatch
match all accounts rather than no accounts when given a null account list.  This means
that gnc:accountlist-get-comm-balance-at-date returns a balance for all accounts when
given no accounts.  This caused the balance sheet report to fail if there were no trading
accounts.  There is a similar problem with gnc:account-get-trans-type-splits-interval in 
gnc:html-acct-table-add-accounts! in html-acct-table.scm that is also fixed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18455 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-12-01 05:15:02 +00:00