Consumption tax for one rate on one invoice
jp_invoice_taxCalculate expected Japanese consumption tax once per invoice using amount, rate, price basis, and rounding method; use it to verify tax and avoid line-by-line rounding errors.
Instructions
Tax = round(total x rate) once for the whole invoice. price_basis exclusive: total x rate/100; inclusive: total x rate/(100+rate). rounding floor|half_up|ceil (default floor).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | ||
| amount | Yes | ||
| rounding | No | ||
| price_basis | No |