# Fiscal year periods that don't start on the first day of the month

**URL:** <https://discuss.tryton.org/t/fiscal-year-periods-that-dont-start-on-the-first-day-of-the-month/1986>\
**Category:** Ideas\
**Created:** [November 21, 2019, 4:59pm UTC](https://discuss.tryton.org/t/fiscal-year-periods-that-dont-start-on-the-first-day-of-the-month/1986 "2019-11-21T16:59:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dave](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dave](https://discuss.tryton.org/u/dave)\
**Post date:** [November 21, 2019, 4:59pm UTC](https://discuss.tryton.org/t/fiscal-year-periods-that-dont-start-on-the-first-day-of-the-month/1986/1 "2019-11-21T16:59:07Z")

</div>

At the moment when you are creating a Fiscal Year there is a button you can use to automatically create either monthly or quarterly periods. This works well if the year runs from the beginning of a month to the end of another month.

In the UK the situation is slightly complicated, but the TL;DR is some people’s/companies fiscal years start on 6th April. (See [Financial, accounting, tax and fiscal years explained](https://www.freeagent.com/blog/whats-the-difference-between-financial-accounting-tax-and-fiscal-years-and-why-does-it-matter/), and [Why does the tax year begin on 6 April?](https://paullewismoney.blogspot.com/2014/04/why-does-tax-year-begin-on-6-april.html) for more information.)

The Create Periods buttons don’t work so well if the fiscal year starts on the 6th April. Using the button results in 13 periods, the first is 6th to 30th April, the ones in the middle are calendar months, and the final one is just the 1st to 5th April.

One option maybe to add an extra argument to create\_period, which would be the day of the month that a period should start/end on? A default for this could be calculated from the fiscalyear dates, and the user could be asked to confirm it using a wizard?

Other suggestions or thoughts?

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [November 21, 2019, 6:40pm UTC](https://discuss.tryton.org/t/fiscal-year-periods-that-dont-start-on-the-first-day-of-the-month/1986/2 "2019-11-21T18:40:17Z")

</div>

In the code the end day of the period is hard-coded to be the end of the month. This is because in many countries, the first fiscal year starts at the creation of the company but after that it has to catch up with the standard periods. I guess it is the same in UK, if you starts the company the 2nd, the first period ends the 5th and a new period starts the 6th then it is 6th-5th over and over.  
So if we want to improve the situation, it is this `31` parameter that must be configurable. I would put it on the company.

---

<div class="post-metadata">

**Author:** ![dave](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dave](https://discuss.tryton.org/u/dave)\
**Post date:** [November 21, 2019, 7:03pm UTC](https://discuss.tryton.org/t/fiscal-year-periods-that-dont-start-on-the-first-day-of-the-month/1986/3 "2019-11-21T19:03:28Z")

</div>

> [@ced](#):
>
> This is because in many countries, the first fiscal year starts at the creation of the company but after that it has to catch up with the standard periods. I guess it is the same in UK, if you starts the company the 2nd, the first period ends the 5th and a new period starts the 6th then it is 6th-5th over and over.

Yes, this sounds right.

> [@ced](#):
>
> So if we want to improve the situation, it is this `31` parameter that must be configurable. I would put it on the company.

I think this is a good suggestion. I have created [issue8855](https://bugs.tryton.org/issue8855) for this.
