@hellotellow/calculations
TypeScript icon, indicating that this package has built-in type declarations

1.3.2 • Public • Published

tellow_calculations_logo


Tellow Calculations Distribution Package

A library to align all Tellow frontend calculations.

Installation

# Yarn
yarn add @hellotellow/calculations

## Contents
### `invoiceLines` 
This module provides with functions to calculate invoice totals from the user input. It handles two main cases:
  - when a user inputs a price (amount) excluding VAT
  - when a inputs a price (amount) including VAT

For calculating the total values per invoice line (item), use:

import { getItemTotals } from '@hellotellow/calculations';


For calculating the total values per invoice, use:

import { getInvoiceTotals } from '@hellotellow/calculations';



## Releasing

Releases are automatically published to NPM whenever the `develop` branch is merged into `main`.
Please do not forget to run a versioning command like e.g. `yarn version --patch`, and then `git push --tags` so align Github with your newly published version tag.

# Dependencies
- [lodash](https://github.com/lodash/lodash)

Readme

Keywords

Package Sidebar

Install

npm i @hellotellow/calculations

Weekly Downloads

3

Version

1.3.2

License

ISC

Unpacked Size

42.8 kB

Total Files

42

Last publish

Collaborators

  • tellow
  • albertsmit
  • tellowphilip
  • eddo-tellow