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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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