Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

SalesKing calculations for document and item totals

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 sk_calc.gemspec
README.rdoc

SalesKing Calculation

Build Status

Why?

  1. We have had enough of “How do you calculate?”-Questions

  2. Ever stumbled upon rounding problems, when calculating totals?

  3. Wouldn't it be nice to change a calculation strategy?

We decided to open-source this part, so everybody can transparently see how we calculate item and document totals.

You can take advantage of this lib for example when using our API and mixing it into your local classes.

Install

gem install sk_calc

Usage

read spec/sk_calc/*.rb to see examples

require 'sk_calc'

Tests

Copyright © 2011 Georg Leciejewski, released under the MIT license

Something went wrong with that request. Please try again.