use parent 'App::HomeBank2Ledger::Formatter';
-our $VERSION = '0.005'; # VERSION
+our $VERSION = '0.006'; # VERSION
my %STATUS_SYMBOLS = (
cleared => '*',
$memo && " ; $memo",
);
+ my $metadata = $transaction->{metadata} || {};
+ for my $key (sort keys %$metadata) {
+ my $value = $self->_format_string($metadata->{$key});
+ push @out, " ; ${key}: ${value}";
+ }
+
for my $posting (@postings) {
my @line;
push @out, join('', @line);
+ my $metadata = $posting->{metadata} || {};
+ for my $key (sort keys %$metadata) {
+ my $value = $self->_format_string($metadata->{$key});
+ push @out, " ; ${key}: ${value}";
+ }
+
if (my $posting_payee = $posting->{payee}) {
$posting_payee = $self->_format_string($posting_payee);
push @out, " ; Payee: $posting_payee" if $posting_payee ne $payee;
=head1 VERSION
-version 0.005
+version 0.006
=head1 DESCRIPTION