Assets can be corrected before depreciation: books.correct_asset (cost, salvage, life, in-service date, with a reason), journaled as asset.corrected with the old figures; refused once depreciation is posted
check / check (push) Canceled after 0s
check / check (push) Canceled after 0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GWVo7x3UHw5kwCUaWxiejX
This commit is contained in:
1 parent
6e6f9d65b2
commit
27e78a0ed5
11 files changed
+289
-4
No files matched your search
@@ -147,7 +147,7 @@ fn mcp_end_to_end_over_stdio() {
|
||||
// Tool listing: the narrow tools; chart is read-only.
|
||||
let list = mcp.request("tools/list", json!({}));
|
||||
let tools = list["result"]["tools"].as_array().unwrap();
|
||||
assert_eq!(tools.len(), 73, "expected 73 tools, got {}", tools.len());
|
||||
assert_eq!(tools.len(), 74, "expected 74 tools, got {}", tools.len());
|
||||
let chart = tools.iter().find(|t| t["name"] == "books.chart").unwrap();
|
||||
assert_eq!(chart["annotations"]["readOnlyHint"], true);
|
||||
assert!(
|
||||
|
||||
@@ -796,6 +796,10 @@ fn happy_path(name: &str) -> Mcp {
|
||||
"books.set_asset_tax_basis",
|
||||
json!({"asset": "LAPTOP-1", "rule": "personal_use_conversion", "contributor_basis": "3200.00"}),
|
||||
);
|
||||
m.ok(
|
||||
"books.correct_asset",
|
||||
json!({"asset": "LAPTOP-1", "useful_life_months": 48, "reason": "registered with the wrong life"}),
|
||||
);
|
||||
m.ok("books.asset_labels", json!({}));
|
||||
m.ok(
|
||||
"books.asset_labels",
|
||||
|
||||
Reference in new issue
Block a user