Steven Haryanto > Ledger-Parser > Ledger::Transaction

Download:
Ledger-Parser-0.03.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Ledger::Transaction - Represent a Ledger transaction

VERSION ^

version 0.03

SYNOPSIS ^

DESCRIPTION ^

ATTRIBUTES ^

date => DATETIME OBJ

seq => INT or undef

Sequence of transaction in a day. Optional.

description => STR

lineref => REF TO STR

entries => ARRAY OF OBJS

Array of Ledger::Posting or Ledger::Comment

journal => OBJ

Pointer to Ledger::Journal object.

METHODS ^

new(...)

$tx->as_string()

$tx->balance() => [[SCALAR,COMMODITY], ...]

Return transaction's balance. If a transaction balances, this method should return [].

$tx->is_balanced() => BOOL

Return true if transaction is balanced, or false if otherwise.

$tx->check()

$tx->postings()

AUTHOR ^

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2011 by Steven Haryanto.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: