about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Command/ConvertCommand.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Command/ConvertCommand.php b/src/Command/ConvertCommand.php
index c1a17f2..1a8aac9 100644
--- a/src/Command/ConvertCommand.php
+++ b/src/Command/ConvertCommand.php
@@ -307,7 +307,9 @@ class ConvertCommand extends Command {
         $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) {