akt-cli 0.8.0__tar.gz → 0.8.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {akt_cli-0.8.0 → akt_cli-0.8.1}/PKG-INFO +1 -1
- {akt_cli-0.8.0 → akt_cli-0.8.1}/pyproject.toml +1 -1
- {akt_cli-0.8.0 → akt_cli-0.8.1}/src/akt/cli.py +3 -1
- {akt_cli-0.8.0 → akt_cli-0.8.1}/LICENSE +0 -0
- {akt_cli-0.8.0 → akt_cli-0.8.1}/README.md +0 -0
- {akt_cli-0.8.0 → akt_cli-0.8.1}/src/akt/__init__.py +0 -0
- {akt_cli-0.8.0 → akt_cli-0.8.1}/src/akt/client.py +0 -0
- {akt_cli-0.8.0 → akt_cli-0.8.1}/src/akt/coa.py +0 -0
- {akt_cli-0.8.0 → akt_cli-0.8.1}/src/akt/commands.py +0 -0
- {akt_cli-0.8.0 → akt_cli-0.8.1}/src/akt/config.py +0 -0
- {akt_cli-0.8.0 → akt_cli-0.8.1}/src/akt/ledger.py +0 -0
- {akt_cli-0.8.0 → akt_cli-0.8.1}/src/akt/output.py +0 -0
- {akt_cli-0.8.0 → akt_cli-0.8.1}/src/akt/registry.py +0 -0
- {akt_cli-0.8.0 → akt_cli-0.8.1}/src/akt/reports.py +0 -0
- {akt_cli-0.8.0 → akt_cli-0.8.1}/src/akt/resources.py +0 -0
- {akt_cli-0.8.0 → akt_cli-0.8.1}/src/akt/verify.py +0 -0
|
@@ -242,7 +242,9 @@ def _need_akt_api(client: Client, cmd: str) -> None:
|
|
|
242
242
|
|
|
243
243
|
|
|
244
244
|
def _fetch_balances(client: Client, ns: Any):
|
|
245
|
-
|
|
245
|
+
# One big page instead of paginating (a chart of accounts is small); saves
|
|
246
|
+
# round-trips, which matters when a script runs many balance/report calls.
|
|
247
|
+
accounts = client.list("chart-of-accounts", all_pages=True, params={"limit": 1000})
|
|
246
248
|
accts_by_id = {a["id"]: {"code": a.get("code"), "name": a.get("name"),
|
|
247
249
|
"type_id": a.get("type_id")} for a in accounts}
|
|
248
250
|
params: dict[str, Any] = {}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|