r23045 - gnucash/trunk/src - Change all usage of xaccTransSetDatePostedSecs to xaccTransSetDatePostedSecsNormalized.

Derek Atkins warlord at MIT.EDU
Mon Jun 10 18:04:13 EDT 2013


Christian Stimming <cstim at code.gnucash.org> writes:

> --- gnucash/trunk/src/gnome-utils/dialog-book-close.c	2013-06-09 21:32:06 UTC (rev 23044)
> +++ gnucash/trunk/src/gnome-utils/dialog-book-close.c	2013-06-09 21:33:19 UTC (rev 23045)
> @@ -102,7 +102,7 @@
>          txn->txn = xaccMallocTransaction(cacb->cbw->book);
>          xaccTransBeginEdit(txn->txn);
>          xaccTransSetDateEnteredSecs(txn->txn, gnc_time (NULL));
> -        xaccTransSetDatePostedSecs(txn->txn, cacb->cbw->close_date);
> +        xaccTransSetDatePostedSecsNormalized(txn->txn, cacb->cbw->close_date);
>          xaccTransSetDescription(txn->txn, cacb->cbw->desc);
>          xaccTransSetCurrency(txn->txn, cmdty);
>          xaccTransSetIsClosingTxn(txn->txn, TRUE);

This might cause some issues, in particular with sorting, on the close
date.

-derek
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list