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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GWVo7x3UHw5kwCUaWxiejX
This commit is contained in:
swaitsandClaude Opus 5.5 committed 2026-10-15 13:41:15 -06:00
1 parent 6e6f9d65b2
commit 27e78a0ed5
11 files changed
+289 -4

No files matched your search

+22
View File
@@ -311,6 +311,28 @@ pub fn describe(b: &Books, line: &JournalLine) -> Option<Event> {
tax_basis_text(b, asset_id, p),
asset_id.map(Route::Asset),
),
"asset.corrected" => ev(
icon::PENCIL_SIMPLE,
format!(
"Corrected {}: cost {} (was {}), {} months from {}. {}",
asset(asset_id),
p.get("cost")
.and_then(|c| c.get("amount"))
.and_then(|v| v.as_str())
.unwrap_or("?"),
p.get("previous")
.and_then(|c| c.get("cost"))
.and_then(|c| c.get("amount"))
.and_then(|v| v.as_str())
.unwrap_or("?"),
p.get("useful_life_months")
.and_then(|v| v.as_u64())
.unwrap_or(0),
s(p, "purchase_date"),
s(p, "reason")
),
asset_id.map(Route::Asset),
),
"asset.described" => ev(
icon::PENCIL_SIMPLE,
format!(