Merge pull request #44246 from aerele/validate_for_closed_fiscal_year

fix: Get submitted documents in validate_for_closed_fiscal_year
This commit is contained in:
ruthra kumar
2024-11-22 15:51:37 +05:30
committed by GitHub

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,