opt-budget-format.test 521 B

12345678910111213141516171819202122
  1. ~ Monthly
  2. Expenses:Phone 10.00 GBP
  3. Expenses:Rent 550.00 GBP
  4. Assets
  5. 2012-02-28 * Phone expense
  6. Expenses:Phone 20.00 GBP
  7. Assets:Cash -20.00 GBP
  8. 2012-02-29 * Rent expense
  9. Expenses:Rent 530.00 GBP
  10. Assets:Cash -530.00 GBP
  11. test budget --now 2012-02-29 --budget-format "%(justify(scrub(display_total), 0))\n"
  12. (-550.00 GBP, 560.00 GBP)
  13. (550.00 GBP, -560.00 GBP)
  14. (20.00 GBP, -10.00 GBP)
  15. (530.00 GBP, -550.00 GBP)
  16. (0, 0)
  17. end test