pub struct JournalEntry {Show 20 fields
pub id: Uuid,
pub entry_number: String,
pub entry_date: NaiveDate,
pub period_id: Uuid,
pub entry_type: JournalEntryType,
pub source: JournalEntrySource,
pub source_document_type: Option<String>,
pub source_document_id: Option<Uuid>,
pub description: String,
pub total_debits: Decimal,
pub total_credits: Decimal,
pub is_balanced: bool,
pub status: JournalEntryStatus,
pub posted_at: Option<DateTime<Utc>>,
pub posted_by: Option<String>,
pub reversed_entry_id: Option<Uuid>,
pub reversing_entry_id: Option<Uuid>,
pub lines: Vec<JournalEntryLine>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Journal Entry header
Fields§
§id: UuidUnique identifier for this journal entry.
entry_number: StringHuman-readable entry reference number (e.g. "JE-20240101-ABCD1234").
entry_date: NaiveDateDate the transaction occurred or is being recorded.
period_id: UuidAccounting period this entry belongs to.
entry_type: JournalEntryTypeClassification of the entry (standard, adjusting, closing, etc.).
source: JournalEntrySourceSystem or process that created the entry.
source_document_type: Option<String>Entity type of the originating document (e.g. "invoice").
source_document_id: Option<Uuid>Identifier of the originating document.
description: StringNarrative description of the transaction.
total_debits: DecimalSum of all debit line amounts.
total_credits: DecimalSum of all credit line amounts.
is_balanced: booltrue when total_debits == total_credits.
status: JournalEntryStatusCurrent lifecycle status.
posted_at: Option<DateTime<Utc>>Timestamp when the entry was posted to the ledger.
posted_by: Option<String>User who posted the entry.
reversed_entry_id: Option<Uuid>Entry that this one reverses, if applicable.
reversing_entry_id: Option<Uuid>Entry created to reverse this one, if applicable.
lines: Vec<JournalEntryLine>Individual debit/credit lines that make up this entry.
created_at: DateTime<Utc>Timestamp of entry creation.
updated_at: DateTime<Utc>Timestamp of the last update.
Implementations§
Source§impl JournalEntry
impl JournalEntry
Trait Implementations§
Source§impl Clone for JournalEntry
impl Clone for JournalEntry
Source§fn clone(&self) -> JournalEntry
fn clone(&self) -> JournalEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more