Move existing accounting writebacks to SQLite .NET batches
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user