accounting.vat_add
Adds VAT to a net amount to calculate the gross total using a configurable rate and rounding mode; use the inverse tool to extract net from a gross amount.
Instructions
공급가액에 부가세를 더해 공급대가를 계산한다. 부가세 = 공급가액 x rate(기본 0.1)를 정수 자리로 rounding 처리하며 기본은 HALF_EVEN 으로 vat_extract 의 기본(DOWN)과 다르다. 금액은 Decimal 문자열. 공급대가에서 공급가액을 구하려면 vat_extract 를 쓴다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net | Yes | ||
| rate | No | 0.1 | |
| rounding | No | HALF_EVEN |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vat | Yes | ||
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| gross | Yes | ||
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) |