# expectedSalesTax

Source: https://pakdatakit.dev/api/typescript/fbr-invoice/functions/expectedsalestax/

```ts
function expectedSalesTax(item): number | null;
```

Defined in: [fbr-invoice.ts:183](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/fbr-invoice.ts#L183)

The sales tax FBR expects on a line, in rupees, or `null` when the rate is
not a plain percentage or per-unit amount (spec §7, errors 0102, 0104,
0105):

- `N%` on Third Schedule goods: retail price × rate (0102);
- `N%` otherwise: value excluding sales tax × rate (0104);
- `Rs.N`: quantity × N (0105).

Rounded half up to the paisa (the specification allows 2 decimals and
gives no rounding rule).

## Parameters

| Parameter | Type |
| :------ | :------ |
| `item` | \{ `rate`: `string`; `saleType?`: `string`; `quantity?`: `number`; `valueSalesExcludingST?`: `number`; `fixedNotifiedValueOrRetailPrice?`: `number`; \} |
| `item.rate` | `string` |
| `item.saleType?` | `string` |
| `item.quantity?` | `number` |
| `item.valueSalesExcludingST?` | `number` |
| `item.fixedNotifiedValueOrRetailPrice?` | `number` |

## Returns

`number` \| `null`
