Unify accounting analysis on Client FY mirror registry
This commit is contained in:
@@ -21,6 +21,7 @@ from app.modules.accounting.accounting_mirror_service import (
|
||||
from app.modules.accounting.agent_bridge import request_agent_command
|
||||
from app.modules.accounting.ui import (
|
||||
_accounting_storage_payload,
|
||||
_analysis_accounting_storage_payload,
|
||||
_active_financial_year,
|
||||
_financial_year_bounds,
|
||||
_find_visible_client,
|
||||
@@ -111,9 +112,9 @@ def _load_analysis(request: Request, db, user, client_id: int, financial_year: s
|
||||
return None, clients, scope, f"No registered Accounting Mirror is available for follow-up FY {follow_up_fy}."
|
||||
follow_up_start = follow_start.isoformat()
|
||||
follow_up_end = follow_end.isoformat()
|
||||
follow_up_payload = _accounting_storage_payload(client, follow_up_fy)
|
||||
follow_up_payload = _analysis_accounting_storage_payload(client, follow_up_fy, db=db, tenant_id=scope.tenant_id)
|
||||
|
||||
payload = _accounting_storage_payload(client, financial_year)
|
||||
payload = _analysis_accounting_storage_payload(client, financial_year, db=db, tenant_id=scope.tenant_id)
|
||||
try:
|
||||
result = sundry_creditors_aging(
|
||||
node_code=str(node.node_code),
|
||||
|
||||
Reference in New Issue
Block a user