Validate FY mirrors and repair depreciation and TDS review

This commit is contained in:
A R R R Associates
2026-09-06 20:49:42 +05:30
parent 739973e370
commit eb83e5418d
12 changed files with 166 additions and 22 deletions
+2 -2
View File
@@ -203,13 +203,13 @@ def page(
# the ERP header is now FY2026-27.
if not requested_fy:
active_status, active_response = mirror_status_for(active_fy)
active_ready = bool((active_status.get("mirror") or {}).get("ready"))
active_ready = bool((active_status.get("mirror") or {}).get("ready_for_financial_year"))
if active_ready:
current_fy = active_fy
else:
prior_active_fy = _previous_financial_year(active_fy)
prior_status, prior_response = mirror_status_for(prior_active_fy)
prior_ready = bool((prior_status.get("mirror") or {}).get("ready"))
prior_ready = bool((prior_status.get("mirror") or {}).get("ready_for_financial_year"))
if prior_ready:
current_fy = prior_active_fy
else: