[GNC-dev] Report with Fiscal Year
David H
hellvee at gmail.com
Sun Sep 5 16:30:57 EDT 2021
Hi John,
FYI
Fiscal year - Wikipedia
https://en.wikipedia.org › wiki › Fiscal_year
<https://en.wikipedia.org/wiki/Fiscal_year>
<https://www.google.com.au/search?q=fiscal+year+australia&sxsrf=AOaemvKMKqsIG1Wzsxpm2jMoWqS2P497qQ%3A1630873613838&ei=DSg1YbPPMviP4-EP3sqAiAQ&oq=fiscal+year&gs_lcp=Cgdnd3Mtd2l6EAEYADIHCAAQRxCwAzIHCAAQRxCwAzIHCAAQRxCwAzIHCAAQRxCwAzIHCAAQRxCwAzIHCAAQRxCwAzIHCAAQRxCwAzIHCAAQRxCwAzIHCAAQsAMQQzIHCAAQsAMQQ0oECEEYAFAAWABghY4DaAFwAngAgAEAiAEAkgEAmAEAyAEKwAEB&sclient=gws-wiz#>
1.
<https://webcache.googleusercontent.com/search?q=cache:qXr4zFa7OIUJ:https://en.wikipedia.org/wiki/Fiscal_year+&cd=13&hl=en&ct=clnk&gl=au>
2.
<https://www.google.com.au/search?sxsrf=AOaemvJPnO_OD60HNwh81UtecPsZrP6hNA:1630873667856&q=related:https://en.wikipedia.org/wiki/Fiscal_year+fiscal+year+australia&sa=X&ved=2ahUKEwjd_5Tt1ejyAhUEzTgGHVMrDkIQH3oECAYQBw>
Australia — In Australia, a fiscal year is commonly called a "financial year"
(FY) and starts on 1 July and ends on the next 30 June. Financial years ...
Chart of various fiscal years
<https://en.wikipedia.org/wiki/Fiscal_year#Chart_of_various_fiscal_years> ·
Tax year <https://en.wikipedia.org/wiki/Fiscal_year#Tax_year> ·
Afghanistan <https://en.wikipedia.org/wiki/Fiscal_year#Afghanistan> ·
Australia <https://en.wikipedia.org/wiki/Fiscal_year#Australia>
As to what flywire's doing, I think from his previous messages he's writing
a report of some kind...
Cheers David H (Aussie)
On Mon, 6 Sept 2021 at 01:18, john <jralls at ceridwen.us> wrote:
>
>
> > On Sep 5, 2021, at 12:50 AM, flywire <flywire0 at gmail.com> wrote:
> >
> > Any chance of a bit of a hand working through the add-option to get
> Fiscal
> > Year working in the code? I've tested everything else and it works. It'd
> be
> > a nice fix for Australians.
> >
> > gnc:make-date-option needs an optional parameter for year-start-month -
> >
> https://github.com/flywire/gnucash/blob/Fiscal-year/libgnucash/app-utils/options.scm#L683-L761
> >
> > Typical code (
> >
> https://github.com/flywire/gnucash/blob/Fiscal-year/libgnucash/app-utils/date-utilities.scm
> > ):
> >
> > (define* (gnc:get-end-cur-year #:key (start-month-fy 0))
> > (let ((now (gnc-localtime (current-time))))
> > (set-tm:sec now 59)
> > (set-tm:min now 59)
> > (set-tm:hour now 23)
> > (set-tm:mday now 31)
> > (set-tm:mon now 11)
> > (if (< (tm:mon now) start-month-fy)
> > (set-tm:year now (tm:year now))
> > (set-tm:year now (+ (tm:year now) 1)))
> > (set-tm:isdst now -1)
> > (gnc-mktime now)))
>
> Let's back up a bit. What do you mean by "fiscal year" and what exactly
> are you trying to do?
>
> Regards,
> John Ralls
>
>
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>
More information about the gnucash-devel
mailing list