No description
Find a file
Claudio Schaad 3ffe4578c2 PR L: drop Copy(target) methods in favour of index-based replace
Replace the hand-rolled model.Copy(target) pattern in every SaveXxx
with FindIndex -> in-place replace (or Add on new). Move the two
hidden defaults out of the deleted Copy bodies: Currency = "CHF"
default now lives in AccountRepository.SaveAccount; BookingDate =
ValueDate default now lives in TransactionRepository.SaveTransaction.

Delete Copy from Account, BookingRule, BookingText, SubClass, and
SplitPredefinition. Keep Transaction.Clone() (renamed from Copy, and
now includes RelatedParty) for the defensive copy in GetTransaction
and ViewService.WithDisplaySign.

Fixes a pre-existing bug where Transaction.Copy silently dropped
RelatedParty on every update save.

42 tests total, all passing.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-02 21:57:17 +02:00
.idea/.idea.Accounting/.idea Add new blazor app 2025-05-04 20:00:42 +02:00
dlls Add new blazor app 2025-05-04 20:00:42 +02:00
Schaad.Accounting.Common PR L: drop Copy(target) methods in favour of index-based replace 2026-07-02 21:57:17 +02:00
Schaad.Accounting.Db PR L: drop Copy(target) methods in favour of index-based replace 2026-07-02 21:57:17 +02:00
Schaad.Accounting.Services PR L: drop Copy(target) methods in favour of index-based replace 2026-07-02 21:57:17 +02:00
Schaad.Accounting.Tests PR L: drop Copy(target) methods in favour of index-based replace 2026-07-02 21:57:17 +02:00
Schaad.Accounting.UI PR K: hide IFxService and FixerIo key behind IFxConverter 2026-07-02 21:51:44 +02:00
.gitignore PR G: test project with xxxTestShould / DoThisWhenThat / Shouldly 2026-07-02 21:25:48 +02:00
Accounting.sln PR G: test project with xxxTestShould / DoThisWhenThat / Shouldly 2026-07-02 21:25:48 +02:00
CLAUDE.md PR G: test project with xxxTestShould / DoThisWhenThat / Shouldly 2026-07-02 21:25:48 +02:00
IMPROVEMENT_PLAN.md PR L: drop Copy(target) methods in favour of index-based replace 2026-07-02 21:57:17 +02:00
LICENSE Create LICENSE 2025-05-14 21:46:47 +02:00