pakdatakit/salestax
Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
| SalesTaxRate | One standard rate and the period it applied. |
| SalesTaxRateQuery | Options for getSalesTaxRate. |
| SalesTaxAmounts | Result of calculateSalesTax and splitInclusive. |
| SalesTaxOptions | Options for calculateSalesTax: a rate, or a province/kind to look one up. |
Type Aliases
Section titled “Type Aliases”| Type Alias | Description |
|---|---|
| SalesTaxKind | What is taxed: goods (federal sales tax) or services (provincial or ICT). |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| getSalesTaxRate | Returns the standard sales tax rate for goods (federal, Sales Tax Act 1990) or for services in a province or Islamabad Capital Territory, on a given date. |
| splitInclusive | Splits an amount that includes sales tax into its value and tax. |
| calculateSalesTax | Adds sales tax to an amount, or splits it out when inclusive is set. |