P3 review: asset bases and the tax-basis K-1
Schema 13 is as shipped and the asset columns are schema 14 (shipped migrations pinned by hash); the tax-basis K-1 leaves net income open (only the return has it) and takes a contributed prepaid plan at its book amount as its section 723 basis; a disposal of contributed property names its 704(c) gain or loss; aliases compare by meaning; fixture amounts made up. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T3gXMVt7XJPi6ens1or9Dj
This commit is contained in:
24 files changed
+860
-127
No files matched your search
@@ -1021,6 +1021,22 @@ fn the_registers_book_value_is_what_the_books_carry() {
|
||||
let _ = id;
|
||||
}
|
||||
|
||||
/// A second line for the same run (asset, period and entry: a journal
|
||||
/// edited by hand) is the run already recorded, as the projection keys it:
|
||||
/// its entry is carried once (P3 review, 2026-10-21: replay counted it
|
||||
/// twice, 200.00, and a reload once).
|
||||
#[test]
|
||||
fn a_duplicated_run_line_is_carried_once() {
|
||||
let (mut l, _, id, e) = one_run();
|
||||
l.record_depreciation_run(id, "2026-01", e, d("100.00"))
|
||||
.unwrap();
|
||||
assert_eq!(l.depreciation_runs(id).len(), 1);
|
||||
assert_eq!(
|
||||
l.accumulated_posted(id, date(2026, 1, 31)).unwrap(),
|
||||
d("100.00")
|
||||
);
|
||||
}
|
||||
|
||||
/// check_depreciation_run: a month, a positive amount in cents, a posted
|
||||
/// entry crediting the asset's accumulated depreciation by exactly that;
|
||||
/// record_depreciation_run (replay) needs only the asset and entry.
|
||||
|
||||
Reference in new issue
Block a user