Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manufosela/taxes
Calculation of tax-related values
https://github.com/manufosela/taxes
Last synced: 4 days ago
JSON representation
Calculation of tax-related values
- Host: GitHub
- URL: https://github.com/manufosela/taxes
- Owner: manufosela
- Created: 2013-12-13T13:20:49.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-26T12:00:58.000Z (almost 11 years ago)
- Last Synced: 2023-03-24T12:04:09.278Z (over 1 year ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
TaxesApp
========Descripción:
------------Clase javascript para calcular precios con impuesto, para extraer el precio sin impuestos o para calcular que % de impuesto a partir del precio con y sin impuestos
Simplemente añade:
antes del tag
Ejemplo:
--------var taxesApp = new TaxesApp(); // aplica el 21% ( por defecto) a los metodos de calculo de precios.
var taxesAppOtro = new TaxessApp( 15 ); // aplica el 15% a los metodos de calculo de precios.
Métodos:
--------* addVAT( value )
Devuelve el valor incrementado con el % de impuesto* withoutVAT( value )
Devuelve el valor decrementando con el % de impuesto*getVAT( valueWith, valueWithout )
Devuelve el % de impuesto a partir de los valores dadosDemo:
--------http://manufosela.es/examples/taxes/
============================================================================================
Description:
------------Javascript class to calculate prices with tax, to extract the price without taxes or to calculate what % of tax from the price with and without tax.
Just added:
before the tag
Example:
--------var taxesApp = new TaxesApp(); // applies the 21% (default) to the price calculation methods.
var taxesAppOtro = new TaxessApp( 15 ); // 15% applies to the methods of calculating prices.
Methods:
--------* addVAT ( value )
Returns the value increased with the % of tax* withoutVAT ( value )
Returns the value to decrement% tax* getVAT ( valueWith, valueWithout )
Returns the % of tax from the values givenDemo:
--------http://manufosela.es/examples/taxes/