AUDIT: r17731 - gnucash/trunk/src/gnome-utils - Bug #137017: Add flag to book-closing transactions to distinguish them from manually entered ones.
Christian Stimming
cstim at cvs.gnucash.org
Thu Nov 27 05:30:17 EST 2008
Author: cstim
Date: 2008-11-27 05:30:17 -0500 (Thu, 27 Nov 2008)
New Revision: 17731
Trac: http://svn.gnucash.org/trac/changeset/17731
Modified:
gnucash/trunk/src/gnome-utils/dialog-book-close.c
Log:
Bug #137017: Add flag to book-closing transactions to distinguish them from manually entered ones.
This seems to be a prerequisite for fixing the timezone issues discussed
in #137017 and references therein.
BP
Modified: gnucash/trunk/src/gnome-utils/dialog-book-close.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-book-close.c 2008-11-26 22:42:29 UTC (rev 17730)
+++ gnucash/trunk/src/gnome-utils/dialog-book-close.c 2008-11-27 10:30:17 UTC (rev 17731)
@@ -94,6 +94,7 @@
txn = g_hash_table_lookup(cacb->txns, cmdty);
if (!txn)
{
+ kvp_frame* frame;
txn = g_new0(struct CACBTransactionList, 1);
txn->cmdty = cmdty;
txn->total = gnc_numeric_zero();
@@ -103,6 +104,11 @@
xaccTransSetDatePostedSecs(txn->txn, cacb->cbw->close_date);
xaccTransSetDescription(txn->txn, cacb->cbw->desc);
xaccTransSetCurrency(txn->txn, cmdty);
+ frame = xaccTransGetSlots(txn->txn);
+ /* Add a bool flag to indicate this txn was created automatically
+ by the book closing feature. See
+ https://lists.gnucash.org/pipermail/gnucash-devel/2008-August/023757.html */
+ kvp_frame_set_gint64(frame, "book_closing", 1);
g_hash_table_insert(cacb->txns, cmdty, txn);
}
More information about the gnucash-changes
mailing list