Function __global->tax_multiplier
Definitions
sources/ecommerce_tax.php
- Multiply tax up or down to reflect a price being multiplied up or down.This does nothing for a semantic tax code or a simple percentage.For a simple flat figure it does though.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $tax_code | ID_TEXT | No | No | required parameter | N/A | N/A | The tax code |
| $multiplier | float | No | No | required parameter | N/A | N/A | The multiplier |
Returns
- The amended tax code
- Type: ID_TEXT
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Multiply tax up or down to reflect a price being multiplied up or down.This does nothing for a semantic tax code or a simple percentage.For a simple flat figure it does though.
*
* @param ID_TEXT $tax_code The tax code
* @param float $multiplier The multiplier
* @return ID_TEXT The amended tax code
*/
function tax_multiplier(string $tax_code, float $multiplier) : string
* Multiply tax up or down to reflect a price being multiplied up or down.This does nothing for a semantic tax code or a simple percentage.For a simple flat figure it does though.
*
* @param ID_TEXT $tax_code The tax code
* @param float $multiplier The multiplier
* @return ID_TEXT The amended tax code
*/
function tax_multiplier(string $tax_code, float $multiplier) : string

