ERP Local Agent 1.8.1

Existing storage, WebSocket tunnel, Tally and client .act functionality are preserved.

Local dashboard:
  http://127.0.0.1:8788
  or run open_dashboard.bat

Updates:
  - The agent checks the ERP for new versions automatically.
  - Updates are NOT installed automatically.
  - Open the local dashboard, Download Update, then Install Downloaded Update.
  - .env, .venv, data, logs and client storage are preserved during update.

Local operational database:
  data\agent.db

Client accounting .act databases remain separate under the configured STORAGE_ROOT.

Phase 2: client/registration to Tally company mapping is supported using Tally GUID.

Phase 3: read-only Tally accounting master sync (Groups, Ledgers, Voucher Types, Stock Groups/Categories/Items, Units and Cost Centres/Categories) into client .act storage.

Version 1.6.0: Phase 4 read-only Tally transaction synchronization (vouchers, ledger/inventory entries, bill/cost-centre/bank allocations) with raw voucher XML preservation.

Phase 5 adds draft-only Income-tax depreciation calculations from synchronized .act data. No Tally write-back.

Phase 6: approved Income-tax depreciation Journal write-back is available only after explicit Partner approval and POST confirmation. All other Tally operations remain read-only.

Depreciation refinement 1.8.0:
- Accounting .act files default to <Local Agent>\data\accounting, separate from document STORAGE_ROOT.
- Existing legacy <STORAGE_ROOT>\Accounting client databases are copied automatically on first use and left in place as recovery copies.
- Current-FY transaction coverage is required only through today, not through a future FY-end date.
- Draft calculation is available with incomplete coverage; approval/write-back remains blocked until required coverage is complete.
- Empty Fixed Asset ledgers are omitted unless they have current-period additions.
- Bulk checkbox + rate assignment is available.
- Nested Tally accounting allocations and case-insensitive ledger matching improve fixed-asset additions detection.

Accounting storage policy 1.8.1:
- .act databases now use the same configured branch Storage Node root and client-folder naming policy as Permanent/Engagement storage.
- ERP builds the client folder through the existing client_folder_parts() helper and sends only the safe relative Accounting/Clients/... directory.
- Canonical layout: <STORAGE_ROOT>\Accounting\Clients\<Letter>\<ExistingClientFolder>\client_XXXXXXXX.act
- Existing databases from <STORAGE_ROOT>\Accounting\client_XXXXXXXX or <ERP_Local_Agent>\data\accounting\client_XXXXXXXX are migrated by SQLite backup on first use.
- Migration sources are retained as recovery copies; no existing .act file is deleted.
