Closed ImAnandPanchal closed 1 year ago
@ImAnandPanchal apologies for the delayed response.
The method is not expected to be used with calendar
type year, as the number of weeks is not set/predefined.
So this is not a valid use case.
However, there should be some validation logic to check if business
type is set as with other business
specific methods.
Thanks for raising.
@RoussKS Thanks for reply. If I use business type with above same code than fyEndDate will be generated wrong. For example, $taxYearStart = '2022-04-06' If I get getFyEndDate().. it will return '2023-04-04'.
@RoussKS Thanks for reply. If I use business type with above same code than fyEndDate will be generated wrong. For example, $taxYearStart = '2022-04-06' If I get getFyEndDate().. it will return '2023-04-04'.
@ImAnandPanchal this is expected behaviour because you use the calendar type named business
. This has either 52 (default) or 53 weeks. So when business
type is loaded with 52 weeks, the year financial year will have 364 days.
If you expected to have 2023-04-05
, it means you need the calendar
financial year type and not the business one.
ps. For issues other than the current one, can you please create a new Issue instead of replying on the same thread?
Closed by #26 Released with version 1.2.1
Exception Message = "A business week could not be found for the specified date."