Add previous FY mirror selection and force fresh TDS review

This commit is contained in:
A R R R Associates
2026-09-06 22:12:56 +05:30
parent 5c19f23c2d
commit bb9d4f7f47
8 changed files with 122 additions and 23 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import io
from pathlib import Path
import zipfile
ERP_LOCAL_AGENT_VERSION = "1.25.6"
ERP_LOCAL_AGENT_VERSION = "1.25.7"
ERP_LOCAL_AGENT_NAME = "ERP Local Agent"
RUNTIME_ROOT = Path(__file__).resolve().parent / "local_agent_runtime"
_DETERMINISTIC_ZIP_TIMESTAMP = (2026, 1, 1, 0, 0, 0)
@@ -1,2 +1,2 @@
__version__ = "1.25.6"
__version__ = "1.25.7"
AGENT_NAME = "ERP Local Agent"
@@ -3174,16 +3174,17 @@ class AgentCommandProcessor:
}
if value in exact:
return True
owner_prefix = (
value.startswith("partner ") or value.startswith("partners ")
or value.startswith("proprietor ") or value.startswith("proprietors ")
or value.startswith("owner ") or value.startswith("owners ")
owner_word = any(
token in value.split()
for token in ("partner","partners","proprietor","proprietors","owner","owners")
)
current_account_like = (
" current account" in value or " current accounts" in value
or " current a c" in value or value.endswith(" current ac")
"current account" in value
or "current accounts" in value
or "current a c" in value
or value.endswith("current ac")
)
if owner_prefix and current_account_like:
if owner_word and current_account_like:
return True
return (
value.startswith("capital account ")
@@ -3211,6 +3212,14 @@ class AgentCommandProcessor:
parent_group = str(ledger_parent_by_name.get(lname.casefold()) or "").strip()
if _capital_account_parent(parent_group):
continue
normalized_capital_context = re.sub(
r"[^a-z0-9]+", " ", f"{parent_group} {lname}".casefold()
).strip()
if (
any(x in normalized_capital_context.split() for x in ("partner","partners","proprietor","proprietors","owner","owners"))
and ("current account" in normalized_capital_context or "current a c" in normalized_capital_context)
):
continue
text = lname.casefold()
matches=[]
for r in rules: