2015-02-23 01:06:00 +05:30
{%- macro render_discount_amount(doc) -%}
{%- if doc.discount_amount -%}
< div class = "row" >
2017-09-14 15:17:38 +05:30
< div class = "col-xs-5 {%- if doc._align_labels_right %} text-right{%- endif -%}" >
2016-02-17 19:15:45 +05:30
< label > {{ _("Discount Amount") }}< / label > < / div >
2015-02-23 01:06:00 +05:30
< div class = "col-xs-7 text-right" >
2016-02-19 11:14:29 +05:30
- {{ doc.get_formatted("discount_amount", doc) }}
2015-02-23 01:06:00 +05:30
< / div >
< / div >
{%- endif -%}
{%- endmacro -%}
2014-07-16 18:18:34 +05:30
< div class = "row" >
2014-07-28 17:37:52 +05:30
< div class = "col-xs-6" > < / div >
< div class = "col-xs-6" >
2015-02-23 01:06:00 +05:30
{%- if doc.apply_discount_on == "Net Total" -%}
{{ render_discount_amount(doc) }}
{%- endif -%}
2014-07-16 18:18:34 +05:30
{%- for charge in data -%}
2018-01-08 15:20:15 +05:30
{%- if (charge.tax_amount or doc.flags.print_taxes_with_zero_amount) and (not charge.included_in_print_rate or doc.flags.show_inclusive_tax_in_print) -%}
2014-07-16 18:18:34 +05:30
< div class = "row" >
2017-09-06 12:17:12 +05:30
< div class = "col-xs-5 {%- if doc._align_labels_right %} text-right{%- endif -%}" >
2014-08-05 11:39:51 +05:30
< label > {{ charge.get_formatted("description") }}< / label > < / div >
2014-07-28 17:37:52 +05:30
< div class = "col-xs-7 text-right" >
2015-02-24 14:43:14 +05:30
{{ frappe.format_value(frappe.utils.flt(charge.tax_amount),
2014-08-04 17:01:01 +05:30
table_meta.get_field("tax_amount"), doc, currency=doc.currency) }}
2014-07-16 18:18:34 +05:30
< / div >
< / div >
{%- endif -%}
{%- endfor -%}
2015-02-23 01:06:00 +05:30
{%- if doc.apply_discount_on == "Grand Total" -%}
{{ render_discount_amount(doc) }}
{%- endif -%}
2014-07-16 18:18:34 +05:30
< / div >
< / div >