Include state in export format
1 file changed, 3 insertions(+), 1 deletion(-)
M src/Command/ConvertCommand.php → src/Command/ConvertCommand.php
@@ -307,7 +307,9 @@ $fmt = new NumberFormatter('en_GB', NumberFormatter::CURRENCY); $export = toLedger(multiRead(new SplFileObject($budgetFile), new SplFileObject($registerFile), $fmt)); foreach ($export as $txn) { - echo "{$txn->date->format('Y-m-d')} $txn->payee" + echo "{$txn->date->format('Y-m-d')} " + , $txn->state ? "$txn->state " : "" + , $txn->payee , !empty($txn->note) ? " ; $txn->note" : "" , PHP_EOL; foreach ($txn->postings as $posting) {