mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 798680 - Not able to match a reverse transaction of a...
previously matched transaction. Cloned transactions and copied splits shouldn't keep the online-id slot.
This commit is contained in:
parent
598a6f1b6b
commit
73a134730f
@ -624,6 +624,8 @@ void
|
||||
xaccSplitCopyKvp (const Split *from, Split *to)
|
||||
{
|
||||
qof_instance_copy_kvp (QOF_INSTANCE (to), QOF_INSTANCE (from));
|
||||
/* But not the online-id */
|
||||
qof_instance_set (QOF_INSTANCE (to), "online-id", NULL, NULL);
|
||||
}
|
||||
|
||||
/*################## Added for Reg2 #################*/
|
||||
|
@ -693,6 +693,9 @@ xaccTransClone (const Transaction *from)
|
||||
xaccTransBeginEdit (to);
|
||||
qof_instance_copy_kvp (QOF_INSTANCE (to), QOF_INSTANCE (from));
|
||||
|
||||
/* But not the online-id! */
|
||||
qof_instance_set (QOF_INSTANCE (to), "online-id", NULL, NULL);
|
||||
|
||||
for (GList* lfrom = from->splits, *lto = to->splits; lfrom && lto;
|
||||
lfrom = g_list_next (lfrom), lto = g_list_next (lto))
|
||||
xaccSplitCopyKvp (lfrom->data, lto->data);
|
||||
|
Loading…
Reference in New Issue
Block a user