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

chore: check if discount_percentage exists
This commit is contained in:
Deepesh Garg 2019-10-06 23:47:52 +05:30 committed by GitHub
commit 817443c5dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>