fix: Get submitted documents in validate_for_closed_fiscal_year

This commit is contained in:
vimalraj27
2024-11-20 13:27:21 +05:30
parent 8bd7ad5bf0
commit c607e5f940

View File

@@ -45,7 +45,7 @@ class RepostAccountingLedger(Document):
latest_pcv = ( latest_pcv = (
frappe.db.get_all( frappe.db.get_all(
"Period Closing Voucher", "Period Closing Voucher",
filters={"company": self.company}, filters={"company": self.company, "docstatus": 1},
order_by="period_end_date desc", order_by="period_end_date desc",
pluck="period_end_date", pluck="period_end_date",
limit=1, limit=1,