Add previous FY mirror selection and force fresh TDS review
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user