How the date populates when transactions are duplicated

will Snow wsnow at gmx.com
Sat Apr 23 06:35:46 EDT 2016


Hi All,

I noticed that when transactions are duplicated the date field uses the latest date rather than the date of the original transaction. I tend to do my accounts all at once towards the end of the year so this seems to slow me down quite a lot as I have to enter an entire date all the time rather than just bumping up the day in the date field. So I was thinking about adding an option somewhere where the user can specify how the date field populates on duplication (or perhaps this already exists?).

It looks as though the relevant code is inside src/gnome-utils/dialog-dup-trans.c
and the flow goes as: gnc_dup_trans_dialog -> gnc_dup_trans_dialog_internal -> gnc_dup_trans_dialog_create

Moreover, it looks as though date and date_p are key variables but I'm not sure on where to pull the date stored in the transaction in the parent window. Or if I should be doing it in some other way?

Any advice is greatly appreciated.

Thanks,
Will


More information about the gnucash-devel mailing list