r16415 - gnucash/branches/register-rewrite/src/engine - Clean-up the semantics of xaccDupeTransaction.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

r16415 - gnucash/branches/register-rewrite/src/engine - Clean-up the semantics of xaccDupeTransaction.

Chris Shoemaker-2
Author: chris
Date: 2007-08-11 16:47:13 -0400 (Sat, 11 Aug 2007)
New Revision: 16415
Trac: http://svn.gnucash.org/trac/changeset/16415

Modified:
   gnucash/branches/register-rewrite/src/engine/Period.c
   gnucash/branches/register-rewrite/src/engine/Transaction.c
Log:
Clean-up the semantics of xaccDupeTransaction.

 - If the transaction to be duplicated is being edited and has had
some splits removed, don't dupe those.
 - Go ahead and parent the duped splits to the new transaction.  There's
no good reason not to do this, and not doing it is just way too confusing.
 - Clearly document what to expect from duped transactions, instead of
vaguely warning about weirdness.

_______________________________________________
gnucash-patches mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-patches