Move existing accounting writebacks to SQLite .NET batches

This commit is contained in:
A R R R Associates
2026-09-06 22:45:18 +05:30
parent bb9d4f7f47
commit a4a749f014
12 changed files with 1129 additions and 78 deletions
+4 -1
View File
@@ -763,13 +763,16 @@ async def apply_corrections(
if not node or not _node_online(node):
raise ValueError("ERP Local Agent is offline for the active branch.")
selected_financial_year = str(form.get("financial_year") or "").strip()
response = request_agent_command(
node.node_code,
"accounting_opening_balance_apply",
{
**_accounting_storage_payload(client),
**_accounting_storage_payload(client, selected_financial_year or None),
"current_company_name": run.current_company_name,
"current_company_guid": run.current_company_guid,
"source_key": f"OPENING-RUN-{run.id}",
"requested_by_user_id": int(user.id),
"ledgers": ledger_rows,
"stock_items": stock_rows,
},