Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: PCV validation for previous fiscal year (backport #40572) #40583

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Mar 21, 2024

Steps to replicate bug

  • Create a document for the previous fiscal year.
  • Create a transaction in the previous fiscal year and cancel it.
  • Create transactions in current fiscal year.
  • Try to submit Period Closing Voucher for current fiscal year.
  • The validation for PCV fails saying that the Previous Fiscal Year is not closed.

The validation checks if the previous fiscal year exists, if yes check for any GL entries created for the fiscal year, if no GL entries are created, allow submitting the PCV. If it does find GL entries it checks for a PCV for that year and considers it unclosed if no such voucher exists. However, if a cancelled GL entry exists in any of the past years then the validation still fails.

Fix
Do not consider cancelled GL entries for the validation.


This is an automatic backport of pull request #40572 done by [Mergify](https://mergify.com).

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Mar 21, 2024
@GursheenK GursheenK merged commit c072cd9 into version-14-hotfix Mar 21, 2024
11 checks passed
@GursheenK GursheenK deleted the mergify/bp/version-14-hotfix/pr-40572 branch March 21, 2024 07:14
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 14.66.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-tests This PR needs automated unit-tests. released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants