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 ruthra kumar
parent 18cbc956bb
commit b9efeeb71a

View File

@@ -27,7 +27,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="posting_date desc",
pluck="posting_date",
limit=1,