Merge pull request #19254 from Thunderbottom/e-invoice-disc-fix-v11

chore: check if discount_percentage exists
This commit is contained in:
Deepesh Garg
2019-10-06 23:47:18 +05:30
committed by GitHub

View File

@@ -19,7 +19,7 @@
{%- endmacro %}
{%- macro render_discount_or_margin(item) -%}
{%- if item.discount_percentage > 0.0 or item.margin_type %}
{%- if (item.discount_percentage and item.discount_percentage > 0.0) or item.margin_type %}
<ScontoMaggiorazione>
{%- if item.discount_percentage > 0.0 %}
<Tipo>SC</Tipo>