expectedSalesTax
function expectedSalesTax(item): number | null;Defined in: fbr-invoice.ts:183
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
Section titled “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
Section titled “Returns”number | null