data Transaction
= Transaction
- { code :: Code
- , comments_before :: [Comment]
- , comments_after :: [Comment]
- , dates :: (Date, [Date])
- , description :: Description
- , postings :: Posting.By_Account
- , sourcepos :: SourcePos
- , status :: Bool
- , tags :: Tag.By_Name
+ { code :: Code
+ , comments_before :: [Comment]
+ , comments_after :: [Comment]
+ , dates :: (Date, [Date])
+ , description :: Description
+ , postings :: Posting.By_Account
+ , virtual_postings :: Posting.By_Account
+ , balanced_virtual_postings :: Posting.By_Account
+ , sourcepos :: SourcePos
+ , status :: Status
+ , tags :: Tag.By_Name
} deriving (Data, Eq, Read, Show, Typeable)
type Code = Text
type Comment = Posting.Comment
type Description = Text
+type Status = Bool
nil :: Transaction
nil =
, dates = (Date.nil, [])
, description = ""
, postings = Data.Map.empty
+ , virtual_postings = Data.Map.empty
+ , balanced_virtual_postings = Data.Map.empty
, sourcepos = initialPos ""
, status = False
, tags = Data.Map.empty