pub enum EventKind {
Lines,
Reverses,
Close,
Bill,
Invoice,
WriteOff,
RunDepreciation,
DisposeAsset,
RunSchedules,
RegisterSchedule,
}Expand description
The kind of an event.
Variants§
Lines
An entry, by its lines.
Reverses
A reversal of an earlier event’s entry.
Close
A close of a period.
Bill
A bill.
Invoice
An invoice.
WriteOff
A bad-debt write-off of an earlier invoice (rules.md B-41).
RunDepreciation
A depreciation run.
DisposeAsset
A fixed asset’s disposal.
RunSchedules
Every schedule’s months due through a day.
RegisterSchedule
A schedule’s registration (posts nothing).
Implementations§
Source§impl EventKind
impl EventKind
Sourcepub fn is_dated(self) -> bool
pub fn is_dated(self) -> bool
True when the example gives the event’s day (a command that dates its own entries takes none).
Sourcepub fn is_described(self) -> bool
pub fn is_described(self) -> bool
True when the example describes the event (a command writes its own descriptions).
Sourcepub fn may_refuse(self) -> bool
pub fn may_refuse(self) -> bool
True when the books take it whole or not at all, so refused may
be given: a reversal, an entry or a command, never a close, a bill
or an invoice (those are corrected by a reversal). An entry posts
whole or not at all, so a hand line the control guard refuses is
one too.