Project

taxedo

0.0
No commit activity in last 3 years
No release in over 3 years
This rubygem does not have a description or summary.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.8.7
>= 2.0
>= 0.0.2
 Project Readme

Taxedo Build Status

Taxedo is a small tool to easily calculate sales tax for different regions. It also provide helper methods to generate html, text or json reports.

Install

gem install taxedo

Rails 3

In your Gemfile:

gem 'taxedo'

Usage

Taxedo.tax_for 'quebec', 1000

Rails 3

Taxedo gives you access to a helper method tax_for in the controller and in the views. This is the same thing as calling Taxedo.tax_for.

tax_for 'quebec', 1000, format: :html

Parameters

  • region: Region of the tax. See regions documentation.
  • amount: Amount in cents.
  • options: Set of options. See below.

Options

  • format: Format of the output ( hash, html, json, text ).
  • on: Date parameter. Taxedo should use tax rate active for a particular date.
  • html_options: hash of options for the html output
    • template: HTML Template for the output ( lines, rows, table ).
    • columns: Number of colspan in the row. Only available with the ouput rows.
    • custom_content: Content of the first column. Only availabie with the output rows.

Copyright

Copyright (c) 2012 De Marque inc. See LICENSE for further details.