all repos — archive/ynab-ledger @ e33883dee25749f08a50f423a464082f6c3c0b98

Convert exported YNAB data to ledger-cli

Fix incorrect budget transaction amounts

Alan Pearce
commit

e33883dee25749f08a50f423a464082f6c3c0b98

parent

7cbc1585aabee7ce0f2d42cf56ee8c1bef2e6601

1 file changed, 1 insertion(+), 1 deletion(-)

jump to
M src/Command/ConvertCommand.phpsrc/Command/ConvertCommand.php
@@ -95,7 +95,7 @@ $lTxn->isVirtual = true;
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;