Better export.

This commit is contained in:
James Cole
2016-10-23 12:55:07 +02:00
parent 81f6fef978
commit e092515dff
3 changed files with 7 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ final class Entry
// journal information:
$entry->journal_id = $object->transaction_journal_id;
$entry->description = $object->journal_encrypted === 1 ? Crypt::decrypt($object->journal_description) : $object->journal_description;
$entry->amount = $object->amount; // always positive
$entry->amount = round($object->amount, 2); // always positive
$entry->date = $object->date;
$entry->transaction_type = $object->transaction_type;
$entry->currency_code = $object->transaction_currency_code;