diff options
author | Alan Pearce | 2015-04-07 16:38:32 +0100 |
---|---|---|
committer | Alan Pearce | 2015-04-07 16:38:32 +0100 |
commit | e33883dee25749f08a50f423a464082f6c3c0b98 (patch) | |
tree | 8da6058989bebf2f417cefaf801597a38ddff865 /src | |
parent | 7cbc1585aabee7ce0f2d42cf56ee8c1bef2e6601 (diff) | |
download | ynab-ledger-e33883dee25749f08a50f423a464082f6c3c0b98.tar.lz ynab-ledger-e33883dee25749f08a50f423a464082f6c3c0b98.tar.zst ynab-ledger-e33883dee25749f08a50f423a464082f6c3c0b98.zip |
Fix incorrect budget transaction amounts
Diffstat (limited to 'src')
-rw-r--r-- | src/Command/ConvertCommand.php | 2 |
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; |