Move accounting reads and tools to .NET ODBC mirror
This commit is contained in:
@@ -207,3 +207,27 @@ def mirror_exceptions(*, node_code: str, accounting_payload: dict[str, Any], lim
|
||||
query="exceptions",
|
||||
filters={"limit": limit},
|
||||
)
|
||||
|
||||
|
||||
def refresh_masters(*, node_code: str, accounting_payload: dict[str, Any], tally_guid: str,
|
||||
requested_by_user_id: int | None = None) -> dict[str, Any]:
|
||||
payload = dict(accounting_payload or {})
|
||||
payload["tally_guid"] = str(tally_guid or "").strip()
|
||||
if requested_by_user_id is not None:
|
||||
payload["requested_by_user_id"] = int(requested_by_user_id)
|
||||
return _unwrap(request_agent_command(
|
||||
node_code, "accounting_sync_masters", payload, timeout_seconds=330
|
||||
))
|
||||
|
||||
def refresh_transactions(*, node_code: str, accounting_payload: dict[str, Any], tally_guid: str,
|
||||
date_from: str, date_to: str,
|
||||
requested_by_user_id: int | None = None) -> dict[str, Any]:
|
||||
payload = dict(accounting_payload or {})
|
||||
payload.update({"tally_guid": str(tally_guid or "").strip(),
|
||||
"date_from": str(date_from or "").strip(),
|
||||
"date_to": str(date_to or "").strip()})
|
||||
if requested_by_user_id is not None:
|
||||
payload["requested_by_user_id"] = int(requested_by_user_id)
|
||||
return _unwrap(request_agent_command(
|
||||
node_code, "accounting_sync_transactions", payload, timeout_seconds=330
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user