Merge pull request #19254 from Thunderbottom/e-invoice-disc-fix-v11
chore: check if discount_percentage exists
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
{%- macro render_discount_or_margin(item) -%}
|
{%- 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>
|
<ScontoMaggiorazione>
|
||||||
{%- if item.discount_percentage > 0.0 %}
|
{%- if item.discount_percentage > 0.0 %}
|
||||||
<Tipo>SC</Tipo>
|
<Tipo>SC</Tipo>
|
||||||
|
|||||||
Reference in New Issue
Block a user