merge: every reversal is dated on or after its original (D-73; branch t3/reversal-dating-d73, bb5008ed; reviewed)
claims/ledger.md conflicted with the reduced B-9 section: the D-73 pick, Enforced and Checked lines sit above its product rules; the check's place corrected (after the schedule double-post check, not ahead of it) and the citation completed (BS-ledger-16, the Lean model since L-G1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
e080f761a0
14 files changed
+279
-69
No files matched your search
@@ -133,7 +133,12 @@ pub(crate) fn refusal(e: &LedgerError) -> String {
|
||||
LedgerError::DuplicateAccountCode(_) => "code_taken",
|
||||
LedgerError::TaxCategoryRequired { .. } => "tax_category_required",
|
||||
LedgerError::DepreciationPastDisposal(_) => "depreciation_past_disposal",
|
||||
LedgerError::AssetEntryIrreversible(..) => "entry_irreversible",
|
||||
// A reversal dated before its original (D-73) is the examples'
|
||||
// "entry_irreversible" too: bookspec's depreciation example words
|
||||
// the refusal that way, whichever engine check makes it.
|
||||
LedgerError::AssetEntryIrreversible(..) | LedgerError::ReversalBeforeOriginal { .. } => {
|
||||
"entry_irreversible"
|
||||
}
|
||||
LedgerError::AssetAlreadyDisposed(_) => "already_disposed",
|
||||
LedgerError::InvalidDepreciationPeriod(_) => "invalid_depreciation_period",
|
||||
LedgerError::InvalidSchedule(_) => "invalid_schedule",
|
||||
|
||||
Reference in new issue
Block a user