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
|
||||
))
|
||||
|
||||
@@ -53,21 +53,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rounded-2xl border border-violet-200 bg-violet-50/40 p-4">
|
||||
<div class="mb-3 flex flex-wrap items-start justify-between gap-3">
|
||||
<div>
|
||||
<div class="text-xs font-semibold uppercase tracking-[0.14em] text-violet-700">TDS & Withholding Tax</div>
|
||||
<div class="text-xs text-slate-500">Independent TDS tools covering expenses, purchases, capital purchases, liability entries and downstream reconciliation.</div>
|
||||
</div>
|
||||
<a href="/tools/accounting/tds/rules" class="rounded-xl border border-violet-300 bg-white px-3 py-2 text-sm font-semibold text-violet-800">TDS Rule Master</a>
|
||||
</div>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<a href="/tools/accounting/tds/compliance{% if selected_client %}?client_id={{ selected_client.id }}{% endif %}" class="rounded-xl border border-violet-300 bg-white px-3 py-2 text-sm font-semibold text-violet-800">TDS Compliance Review</a>
|
||||
<a href="/tools/accounting/tds/liability{% if selected_client %}?client_id={{ selected_client.id }}{% endif %}" class="rounded-xl border border-violet-300 bg-white px-3 py-2 text-sm font-semibold text-violet-800">TDS Entry & Liability</a>
|
||||
<a href="/tools/accounting/tds/reconciliation{% if selected_client %}?client_id={{ selected_client.id }}{% endif %}" class="rounded-xl border border-violet-300 bg-white px-3 py-2 text-sm font-semibold text-violet-800">TDS Reconciliation</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rounded-2xl border border-emerald-200 bg-emerald-50/40 p-4">
|
||||
<div class="mb-3">
|
||||
<div class="text-xs font-semibold uppercase tracking-[0.14em] text-emerald-700">Sales & Income</div>
|
||||
|
||||
Reference in New Issue
Block a user