How to validate Fiscal Year?

Hi,

Earlier we could validate a date with function validate_fiscal_year which is located in erpnext.accounts.utils but with v5 it basically changes the FY of the document, this is a good addition only if there is one-to-one mapping.

Suppose I want to validate the dates in a HOLIDAY LIST then this function fails miserably or am I missing a trick.

Basically I want to validate that the dates entered in a Holiday List are within a fiscal year.

You can bring it back from the commit history :smile: