class RockBooks::BalanceSheet

Reports the balance sheet as of the specified date. Unlike other reports, we need to process transactions from the beginning of time in order to calculate the correct balances, so we ignore the global $filter.

Attributes

context[RW]
data[RW]

Public Class Methods

new(report_context, data) click to toggle source
# File lib/rock_books/reports/balance_sheet.rb, line 16
def initialize(report_context, data)
  @context = report_context
  @data = data
end

Public Instance Methods

generate() click to toggle source
# File lib/rock_books/reports/balance_sheet.rb, line 22
def generate
  ErbHelper.render_hashes('text/balance_sheet.txt.erb', data, template_presentation_context)
end