Logistiki.Accounting.Pipeline (logistiki v0.1.0)

Copy Markdown View Source

The accounting pipeline: the defining mental model of Logistiki.

Business Event
    
    
Event Normalization
    
    
Datalog Fact Generation
    
    
Business Rule Evaluation
    
    
Accounting Policy Selection
    
    
Accounting Template Resolution
    
    
Journal Builder
    
    
Posting Builder
    
    
Ledger Invariant Validation
    
    
Ledger Backend Execution
    
    
Projection Generation
    
    
Audit Evidence

Each stage is represented here and recorded in the audit trail.

Summary

Functions

Runs the full accounting pipeline for event (a business event struct).

Functions

run(event, opts \\ [])

(since 0.1.0)

Runs the full accounting pipeline for event (a business event struct).

Returns {:ok, %Logistiki.Accounting.Result{}} or {:error, %Logistiki.Error{}}.