pub enum SettlementStatus {
Initial,
Correction,
Reversal,
Final,
}Expand description
Lifecycle status of a settlement result.
Settlements are never destroyed — a correction or cancellation produces a new result and leaves the original intact.
Which document supersedes which is not recorded here. The invoice numbers
linking a correction to what it replaces live on
InvoiceDocument::correction_of, because the same pair of settlements can
be presented under different invoice numbers. What is recorded here is
SettlementResult::korrektur_grund — why the recalculation happened, which
is a fact about the settlement rather than about the document.
Variants§
Initial
Initial calculation — no prior settlement exists for this period.
Correction
Correction of a prior settlement.
Reversal
Cancellation of a prior settlement — all positions are negated.
Final
Final settlement — no further corrections expected.
Trait Implementations§
Source§impl Clone for SettlementStatus
impl Clone for SettlementStatus
Source§fn clone(&self) -> SettlementStatus
fn clone(&self) -> SettlementStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more