Validate FY mirrors and repair depreciation and TDS review
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user