mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Make register use engine-provided xaccTransHasReconciledSplits() instead
of writing it's own. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13423 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
665c332ce9
commit
66f3a0a401
@ -159,29 +159,6 @@ gnc_split_register_balance_trans (SplitRegister *reg, Transaction *trans)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gnc_trans_has_reconciled_splits (Transaction *trans)
|
||||
{
|
||||
GList *node;
|
||||
|
||||
for (node = xaccTransGetSplitList (trans); node; node = node->next)
|
||||
{
|
||||
Split *split = node->data;
|
||||
|
||||
switch (xaccSplitGetReconcile (split))
|
||||
{
|
||||
case YREC:
|
||||
case FREC:
|
||||
return TRUE;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gnc_split_register_old_split_empty_p (SplitRegister *reg, Split *split)
|
||||
{
|
||||
@ -344,7 +321,7 @@ gnc_split_register_move_cursor (VirtualLocation *p_new_virt_loc,
|
||||
}
|
||||
else if (old_trans &&
|
||||
(old_trans != new_trans) &&
|
||||
!gnc_trans_has_reconciled_splits (old_trans) &&
|
||||
!xaccTransHasReconciledSplits(old_trans) &&
|
||||
!info->first_pass &&
|
||||
gnc_split_register_balance_trans (reg, old_trans))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user