Project

sk_calc

0.0
No commit activity in last 3 years
No release in over 3 years
Calculate document and line item totals. This moule is used inside SalesKIng and outsourced for transparency and reusability.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

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

Ruby 2.2 tested, 1.9 should work to

gem install sk_calc

== Usage

read spec/sk_calc/*.rb to see examples

require 'sk_calc' class LineItem calculates :item end

class Invoice calculates :items end

== Tests

Copyright (c) 2011-2016 Georg Leciejewski, released under the MIT license