amount => $amount,
commodity => $commodities{$account->{currency}},
payee => $payee->{name},
- memo => $memo,
+ note => $memo,
status => $status,
tags => $tags,
};
amount => $paired_transaction->{amount} || -$transaction->{amount},
commodity => $commodities{$dst_account->{currency}},
payee => $paired_payee->{name},
- memo => $paired_transaction->{wording} || '',
+ note => $paired_transaction->{wording} || '',
status => $STATUS_SYMBOLS{$paired_transaction->{status} || ''} || $status,
tags => _split_tags($paired_transaction->{tags}),
};
commodity => $commodities{$account->{currency}},
amount => $amount,
payee => $payee->{name},
- memo => $memo,
+ note => $memo,
status => $status,
tags => $tags,
};
commodity => $commodities{$account->{currency}},
amount => $amount,
payee => $payee->{name},
- memo => $memo,
+ note => $memo,
status => $status,
tags => $tags,
};
push @out, join('', @line);
- if (my $payee = $posting->{payee}) {
- push @out, ' ; Payee: '.$self->_format_string($payee);
+ if (my $posting_payee = $posting->{payee}) {
+ $posting_payee = $self->_format_string($posting_payee);
+ push @out, " ; Payee: $posting_payee" if $posting_payee ne $payee;
}
if (my @tags = @{$posting->{tags} || []}) {
- push @out, " ; :".join(':', @tags).":";
+ push @out, ' ; :'.join(':', @tags).':';
}
}