Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add basics for writing out transactions in Ledger format |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
16678c4f5ffc921d0e724ac446598143 |
User & Date: | atomicules 2015-07-01 11:34:33 |
Context
2015-07-01
| ||
20:26 | Check for Bulletin Board sumbit check-in: 3b0a9cbf4e user: atomicules tags: trunk | |
11:34 | Add basics for writing out transactions in Ledger format check-in: 16678c4f5f user: atomicules tags: trunk | |
2015-06-28
| ||
10:59 | Skip header and footer rows on recent items check-in: d3dd543406 user: atomicules tags: trunk | |
Changes
Changes to smile.rb.
︙ | ︙ | |||
68 69 70 71 72 73 74 75 | date_limit = gets.strip #.convert_to_date #Previous statements page = a.click(page.link_with(:text => "previous statements")) #TODO: Then need to click the top most page and go back through each page. | > > > > > > > > > > > > > > | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | date_limit = gets.strip #.convert_to_date #Previous statements page = a.click(page.link_with(:text => "previous statements")) #TODO: Then need to click the top most page and go back through each page. #Write transactions out #TODO: Might need to sort by date File.open("smile.dat", "w") do |file| transactions.each do |transaction| file << Date.parse(transaction[:date]).strftime("%Y/%m/%d")+"\t"+transaction[:name]+"\n" if transaction[:credit].include?("£") amount = transaction[:credit].gsub(/£/, "£-") else amount = transaction[:debit] end file << "\t"+"Assets:Smile:Current"+"\t"+amount+"\n" file << "\n" end end |