fix harmless warning when parsing homebank files
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Sat, 21 Dec 2019 15:46:11 +0000 (08:46 -0700)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Sat, 21 Dec 2019 15:46:11 +0000 (08:46 -0700)
lib/File/HomeBank.pm

index 0034ac831edd49ecb4b7cfab9b3519e4bbe367ad..7d29ada68dfa09d4acc4459090b60af58ec6bfc2 100644 (file)
@@ -582,8 +582,8 @@ sub parse_string {
                     push @categories, \%attr;
                 }
                 elsif ($node eq 'ope') {    # transaction
-                    $attr{paymode} = $TRANSACTION_PAYMODES{$attr{paymode} || ''} || 'unknown';
-                    $attr{status}  = $TRANSACTION_STATUSES{delete $attr{st}} || 'unknown';
+                    $attr{paymode} = $TRANSACTION_PAYMODES{$attr{paymode}   || ''} || 'unknown';
+                    $attr{status}  = $TRANSACTION_STATUSES{delete $attr{st} || ''} || 'unknown';
 
                     $attr{transfer_key}   = delete $attr{kxfer} if $attr{kxfer};
                     $attr{split_amount}   = delete $attr{samt}  if $attr{samt};
This page took 0.020843 seconds and 4 git commands to generate.