Fix Phase 6 Local Agent status command

This commit is contained in:
A R R R Associates
2026-08-19 22:59:10 +05:30
parent 193fd4b71c
commit 4ab86f4023
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import io
from pathlib import Path from pathlib import Path
import zipfile import zipfile
ERP_LOCAL_AGENT_VERSION = "1.7.0" ERP_LOCAL_AGENT_VERSION = "1.7.1"
ERP_LOCAL_AGENT_NAME = "ERP Local Agent" ERP_LOCAL_AGENT_NAME = "ERP Local Agent"
RUNTIME_ROOT = Path(__file__).resolve().parent / "local_agent_runtime" RUNTIME_ROOT = Path(__file__).resolve().parent / "local_agent_runtime"
_DETERMINISTIC_ZIP_TIMESTAMP = (2026, 1, 1, 0, 0, 0) _DETERMINISTIC_ZIP_TIMESTAMP = (2026, 1, 1, 0, 0, 0)
@@ -1,4 +1,4 @@
ERP Local Agent 1.7.0 ERP Local Agent 1.7.1
Existing storage, WebSocket tunnel, Tally and client .act functionality are preserved. Existing storage, WebSocket tunnel, Tally and client .act functionality are preserved.
@@ -26,3 +26,5 @@ Version 1.6.0: Phase 4 read-only Tally transaction synchronization (vouchers, le
Phase 5 adds draft-only Income-tax depreciation calculations from synchronized .act data. No Tally write-back. Phase 5 adds draft-only Income-tax depreciation calculations from synchronized .act data. No Tally write-back.
Phase 6: approved Income-tax depreciation Journal write-back is available only after explicit Partner approval and POST confirmation. All other Tally operations remain read-only. Phase 6: approved Income-tax depreciation Journal write-back is available only after explicit Partner approval and POST confirmation. All other Tally operations remain read-only.
Hotfix 1.7.1: accepts phase6_status as a status alias; no accounting behavior changed.
@@ -1,2 +1,2 @@
__version__ = "1.7.0" __version__ = "1.7.1"
AGENT_NAME = "ERP Local Agent" AGENT_NAME = "ERP Local Agent"
@@ -23,7 +23,7 @@ class AgentCommandProcessor:
error: str | None = None error: str | None = None
ok = False ok = False
try: try:
if action in {"tally_status", "phase1_status", "phase2_status", "phase3_status", "phase4_status", "phase5_status"}: if action in {"tally_status", "phase1_status", "phase2_status", "phase3_status", "phase4_status", "phase5_status", "phase6_status"}:
result = self._status(payload) result = self._status(payload)
elif action == "accounting_initialize": elif action == "accounting_initialize":
result = self._initialize(payload) result = self._initialize(payload)