fix: Get submitted documents in validate_for_closed_fiscal_year

(cherry picked from commit c607e5f940)
This commit is contained in:
vimalraj27
2024-11-20 13:27:21 +05:30
committed by Mergify
parent c0e6f3f4df
commit af74a3c32f

View File

@@ -45,7 +45,7 @@ class RepostAccountingLedger(Document):
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,