Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/salesking/sk_calc
SalesKing calculations for document and item totals
https://github.com/salesking/sk_calc
Last synced: about 2 months ago
JSON representation
SalesKing calculations for document and item totals
- Host: GitHub
- URL: https://github.com/salesking/sk_calc
- Owner: salesking
- License: mit
- Created: 2011-12-14T21:47:03.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2024-10-28T10:48:28.000Z (about 2 months ago)
- Last Synced: 2024-10-28T12:15:22.815Z (about 2 months ago)
- Language: Ruby
- Homepage: https://www.salesking.eu
- Size: 36.1 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SalesKing Calculation
[![Build Status](https://travis-ci.org/salesking/sk_calc.svg?branch=master)](https://travis-ci.org/salesking/sk_calc)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-2024 Georg Leciejewski, released under the MIT license