X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2FApp%2FHomeBank2Ledger%2FLedger.pm;h=2c8f15eda65899cff859080f60809c5490e3aa47;hb=HEAD;hp=26e9e576e6215262b823be0678c85df5cd48782e;hpb=2752b344bcd543f73fceea80dcdbb11c20dc592a;p=chaz%2Fhomebank2ledger diff --git a/lib/App/HomeBank2Ledger/Ledger.pm b/lib/App/HomeBank2Ledger/Ledger.pm index 26e9e57..2c8f15e 100644 --- a/lib/App/HomeBank2Ledger/Ledger.pm +++ b/lib/App/HomeBank2Ledger/Ledger.pm @@ -22,9 +22,9 @@ Here is a specification for the substructures: This is a fully-qualified account name. Names may contain colons for representing a hierarchy of accounts. Examples: -=for: list +=for :list * "Assets:Bank:Chase1234" -* "Liabilities:Credit Card:CapitalOne" +* "Liabilities:Credit Card:Capital One" =head2 commodity @@ -51,9 +51,11 @@ This is a hashref like this: { date => '2019-06-12', # required - payee => 'Malcolm Reynolds', # required + aux_date => '2019-06-13', # optional status => 'cleared', # optional; can be "cleared" or "pending" - memo => 'Medical supplies', # optional + code => '1234', # optional + payee => 'Malcolm Reynolds', # required + note => 'Medical supplies', # optional postings => [ # required { account => 'Some Account', # required @@ -69,9 +71,20 @@ This is a hashref like this: frac => 2, }, payee => 'Somebody', # optional - memo => 'Whatever', # optional + note => 'Whatever', # optional status => 'pending', # optional; can be "cleared" or "pending" tags => [qw(niska train-job)], + lot => { # optional + date => '2019-01-28', + price => { + amount => '15.00', + commodity => { ... }, + }, + }, + cost => { # optional + amount => '10.00', + commodity => { ... }, + }, }, ... ],