Am Sonntag, 16. Januar 2011 schrieb Graham Menhennitt: > Guys, > > I want to be able to run reports based on the previous accounting > period. Up till now, I've done this by setting the accounting period to > absolute dates. It's finally bugged me enough to try adding this option > to the GnuCash source code. So I looked in gnc-period-select.c and found > that it's already there! "Start of previous accounting period" is > already in the start_strings array. But it's not shown in the combo on > the General tab of the Transaction report options. Is this a bug or is > there some reason for it?
I *thought* these options are available on a range of reports, e.g. the "income barchart" and similar ones. If it's in those but not in the Transaction report, I indeed also don't know why. Oh, now I understand: We have "previous year", "previous month", and such, but not "previous accounting period". Indeed, that one makes sense and can be added there. Feel free to submit a patch, preferably through bugzilla so that it isn't forgotten. https://bugzilla.gnome.org/show_bug.cgi?id=627430 is related. There was a short discussion in bugzilla when someone contributed a patch about *future* accounting periods, but my decision was to not have those added for all report options because otherwise the combo boxes have too many items and are not usable anymore. Bug #631058 and r19639. > Also, I noticed in that same source file in function > gnc_period_select_set_fy_end() the following chunk of code: > for (i = GNC_ACCOUNTING_PERIOD_FYEAR_LAST - 1; i >= > GNC_ACCOUNTING_PERIOD_FYEAR_LAST; i--) > { > gtk_combo_box_remove_text(GTK_COMBO_BOX(priv->selector), i); > } > That loop is never going to do anything!! But I'm not sure what it's > trying to do anyway. Can somebody please explain the reason for it being > there. No idea, sorry. > I'd also like to add the option to have accounting periods start on July > 1 and end on June 30. I'll make a patch for that when I sort out the above. Did you notice you can configure your accounting period via Edit -> Preferences -> Accounting period? Is that what you're looking for? Regards, Christian _______________________________________________ gnucash-devel mailing list [email protected] https://lists.gnucash.org/mailman/listinfo/gnucash-devel
