mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* src/engine/Query.c (xaccQueryGetSplitsUniqueTrans): fix bug
* src/engine/Account.c (xaccAccountSetPriceSrc): fix bug git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4017 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
84d0d21966
commit
ea9ad455db
26
ChangeLog
26
ChangeLog
@ -1,16 +1,22 @@
|
||||
2001-04-23 Dave Peticolas <dave@krondo.com>
|
||||
|
||||
* src/engine/Query.c (xaccQueryGetSplitsUniqueTrans): fix bug
|
||||
|
||||
* src/engine/Account.c (xaccAccountSetPriceSrc): fix bug
|
||||
|
||||
2001-04-23 Kevin Finn <kevinfinn@mediaone.net>
|
||||
|
||||
* src/engine/Account.c
|
||||
src/engine/Account.h: added xaccAccountGetBalanceAsOfDate and
|
||||
xaccAccountGetShareBalanceAsOfDate, to determine the balance
|
||||
of an account on a given date.
|
||||
* src/engine/Account.c src/engine/Account.h: added
|
||||
xaccAccountGetBalanceAsOfDate and
|
||||
xaccAccountGetShareBalanceAsOfDate, to determine the balance of an
|
||||
account on a given date.
|
||||
|
||||
* src/gnome/window-reconcile.c: added appropriate callbacks
|
||||
so that changes to the startRecnWindow date entry will update
|
||||
the ending balance amount entry. Once the user manually updates
|
||||
the ending balance amount, the automatic updates will no longer
|
||||
occur if the date entry is changed again. Changed
|
||||
gnc_get_reconcile_info to use the *AsOfDate funcs if possible.
|
||||
* src/gnome/window-reconcile.c: added appropriate callbacks so
|
||||
that changes to the startRecnWindow date entry will update the
|
||||
ending balance amount entry. Once the user manually updates the
|
||||
ending balance amount, the automatic updates will no longer occur
|
||||
if the date entry is changed again. Changed
|
||||
gnc_get_reconcile_info to use the *AsOfDate funcs if possible.
|
||||
|
||||
2001-04-22 Christian Stimming <stimming@tuhh.de>
|
||||
|
||||
|
@ -2115,11 +2115,9 @@ xaccAccountSetLastNum (Account *account, const char *num)
|
||||
\********************************************************************/
|
||||
|
||||
void
|
||||
xaccAccountSetPriceSrc(Account *acc, const char *src)
|
||||
xaccAccountSetPriceSrc(Account *acc, const char *src)
|
||||
{
|
||||
|
||||
if(!acc) return;
|
||||
if(!src) return;
|
||||
|
||||
xaccAccountBeginEdit(acc);
|
||||
{
|
||||
@ -2127,8 +2125,8 @@ xaccAccountSetPriceSrc(Account *acc, const char *src)
|
||||
|
||||
if((t == STOCK) || (t == MUTUAL)) {
|
||||
kvp_frame_set_slot_nc(acc->kvp_data,
|
||||
"old-price-source",
|
||||
kvp_value_new_string(src));
|
||||
"old-price-source",
|
||||
src ? kvp_value_new_string(src) : NULL);
|
||||
mark_account (acc);
|
||||
}
|
||||
}
|
||||
|
@ -1142,10 +1142,11 @@ xaccQueryGetSplitsUniqueTrans(Query *q)
|
||||
for (current = splits; current; current = current->next)
|
||||
{
|
||||
Split *split = current->data;
|
||||
Transaction *trans = xaccSplitGetParent (split);
|
||||
|
||||
if (!g_hash_table_lookup (trans_hash, split))
|
||||
if (!g_hash_table_lookup (trans_hash, trans))
|
||||
{
|
||||
g_hash_table_insert (trans_hash, split, split);
|
||||
g_hash_table_insert (trans_hash, trans, trans);
|
||||
result = g_list_prepend (result, split);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user