Module: Invoicing

Defined in:
lib/invoicing/ledger_item/pdf_generator.rb,
lib/invoicing/price.rb,
lib/invoicing/taxable.rb,
lib/invoicing/version.rb,
lib/invoicing/tax_rate.rb,
lib/invoicing/line_item.rb,
lib/invoicing/class_info.rb,
lib/invoicing/ledger_item.rb,
lib/invoicing/countries/uk.rb,
lib/invoicing/cached_record.rb,
lib/invoicing/currency_value.rb,
lib/invoicing/time_dependent.rb,
lib/invoicing/find_subclasses.rb,
lib/invoicing/connection_adapter_ext.rb,
lib/invoicing/ledger_item/render_ubl.rb,
lib/invoicing/ledger_item/render_html.rb,
lib/rails/generators/invoicing/invoicing_generator.rb,
lib/rails/generators/invoicing/tax_rate/tax_rate_generator.rb,
lib/rails/generators/invoicing/line_item/line_item_generator.rb,
lib/rails/generators/invoicing/ledger_item/ledger_item_generator.rb

Overview

This class is responsible for generating a pdf for an invoice. It assumes that you have installed pdf library called prawn. Just pass an invoice, and call render by passing the file.

generator = Invoicing::LedgerItem::PdfGenerator.new(invoice) generator.render('/path/to/pdf-file/to/be/generated')

Defined Under Namespace

Modules: CachedRecord, ClassInfo, Countries, CurrencyValue, FindSubclasses, Generators, LedgerItem, LineItem, Price, TaxRate, Taxable, TimeDependent, Version Classes: ConnectionAdapterExt

Constant Summary collapse

VERSION =
Version.to_s