Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/manufosela/taxes

Calculation of tax-related values
https://github.com/manufosela/taxes

Last synced: about 1 month ago
JSON representation

Calculation of tax-related values

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 dados

Demo:
--------

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 ​​given

Demo:
--------

http://manufosela.es/examples/taxes/