Calculate GST
calculate_gstCalculate GST for line items by deriving CGST/SGST or IGST from supplier and place-of-supply states, including inclusive prices, cess, round-off, and total in words.
Instructions
Calculate GST for one or more line items. Works out intra-state (CGST+SGST, or CGST+UTGST in UTs) vs inter-state (IGST) from the supplier state and place of supply, handles GST-inclusive prices, cess and round-off, and gives the total in words.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| round_off | No | Round grand total to the nearest rupee (default true) | |
| supplier_state | Yes | Supplier's state name, 2-digit state code, or GSTIN | |
| place_of_supply | Yes | Place of supply: state name, 2-digit code, or buyer GSTIN | |
| prices_include_gst | No | True if the rates already include GST (back-calculate tax) |