about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2015-04-07 16:38:32 +0100
committerAlan Pearce2015-04-07 16:38:32 +0100
commite33883dee25749f08a50f423a464082f6c3c0b98 (patch)
tree8da6058989bebf2f417cefaf801597a38ddff865
parent7cbc1585aabee7ce0f2d42cf56ee8c1bef2e6601 (diff)
downloadynab-ledger-e33883dee25749f08a50f423a464082f6c3c0b98.tar.lz
ynab-ledger-e33883dee25749f08a50f423a464082f6c3c0b98.tar.zst
ynab-ledger-e33883dee25749f08a50f423a464082f6c3c0b98.zip
Fix incorrect budget transaction amounts
-rw-r--r--src/Command/ConvertCommand.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Command/ConvertCommand.php b/src/Command/ConvertCommand.php
index 1b379d0..ca2bcc4 100644
--- a/src/Command/ConvertCommand.php
+++ b/src/Command/ConvertCommand.php
@@ -95,7 +95,7 @@ function toLedger (Generator $transactions) {
                 do {
                     $posting = new LedgerPosting;
                     $posting->currency = $txn->currency;
-                    $posting->amount = $txn->in - $txn->out;
+                    $posting->amount = $txn->in;
                     $posting->account = array_merge(['Funds'], $txn->category);
                     if ($posting->amount !== 0.00) {
                         $lTxn->postings[] = $posting;