mirror of
https://github.com/kemko/liquid.git
synced 2026-01-08 19:25:40 +03:00
1.7 KiB
1.7 KiB
layout, title, nav
| layout | title | nav | ||
|---|---|---|---|---|
| default | tax_line |
|
tax_line
The tax_line object has the following attributes:
{% anchor_link "tax_line.title", "tax_line-title" %}
Returns the title of the tax.
Input
{% highlight html %}{% raw %}
{{ tax_line.title }}
{% endraw %}{% endhighlight %}
Output
{% highlight html %}{% raw %}
GST
{% endraw %}{% endhighlight %}
{% anchor_link "tax_line.price", "tax_line-price" %}
Returns the amount of the tax. Use one of the money filters to return the value in a monetary format.
Input
{% highlight html %}{% raw %}
{{ tax_line.price | money }}
{% endraw %}{% endhighlight %}
Output
{% highlight html %}{% raw %}
€25
{% endraw %}{% endhighlight %}
{% anchor_link "tax_line.rate", "tax_line-rate" %}
Returns the rate of the tax in decimal notation.
Input
{% highlight html %}{% raw %}
{{ tax_line.rate }}
{% endraw %}{% endhighlight %}
Output
{% highlight html %}{% raw %}
0.14
{% endraw %}{% endhighlight %}
{% anchor_link "tax_line.rate_percentage", "tax_line-rate_percentage" %}
Returns the rate of the tax in percentage format.
Input
{% highlight html %}{% raw %}
{{ tax_line.rate_percentage }}%
{% endraw %}{% endhighlight %}
Output
{% highlight html %}{% raw %}
14%
{% endraw %}{% endhighlight %}