r23044 - gnucash/trunk/src/engine - Introduce transaction setter xaccTransSetDatePostedSecsNormalized() that ignores the time-of-day part.
Derek Atkins
warlord at MIT.EDU
Fri Jun 14 13:50:58 EDT 2013
Mike Alexander <mta at umich.edu> writes:
> --On June 13, 2013 9:35:12 AM +0200 Christian Stimming
> <christian at cstimming.de> wrote:
>
>> However, this is a perfect example to demonstrate that this usage of
>> PostedDate time-of-day part is not so good. Up until now, some of the
>> importers already set the time-of-day part, so their sorting might
>> already be totally off, compared to the book-closing txn.
>> Effectively, the +12hours offset in the PostedDate is being abused
>> to signal the flag "This txn is a book-closing txn". Instead of
>> abusing the PostedDate for this, the flag should rather be made
>> explicit, which of course means that the sorting functions must
>> check for this explicitly as well. Oh well.
>
> Other accounting software that I use has the concept of the "13th
> period" in a year for transactions of this sort. I'm not sure how it
> is implemented, but this is essentially a period that is after the end
> of one year and before the beginning of the next. Perhaps something
> like this could be done in Gnucash to solve this problem.
First it would imply that we have the concept of Periods instead of
assuming a period based on the transaction date.
> Mike
-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