Skip to content

Commit

Permalink
Merge pull request #44246 from aerele/validate_for_closed_fiscal_year
Browse files Browse the repository at this point in the history
fix: Get submitted documents in validate_for_closed_fiscal_year
  • Loading branch information
ruthra-kumar authored Nov 22, 2024
2 parents 367f561 + c607e5f commit 15c6073
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def validate_for_closed_fiscal_year(self):
latest_pcv = (
frappe.db.get_all(
"Period Closing Voucher",
filters={"company": self.company},
filters={"company": self.company, "docstatus": 1},
order_by="period_end_date desc",
pluck="period_end_date",
limit=1,
Expand Down

0 comments on commit 15c6073

Please sign in to comment.