Skip to content

Commit

Permalink
fix: Handle None value for item description in customer portal invoic…
Browse files Browse the repository at this point in the history
…e view (backport #43823) (#43889)

fix: Handle None value for item description in customer portal invoice view

(cherry picked from commit ceb449c)

Co-authored-by: ljain112 <ljain112@gmail.com>
  • Loading branch information
mergify[bot] and ljain112 authored Oct 29, 2024
1 parent 7189dab commit 8a72845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/templates/pages/order.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ <h3 class="m-0">{{ doc.name }}</h3>
<div class="col-xs-8 col-sm-10">
{{ d.item_code }}
<div class="text-muted small item-description">
{{ html2text(d.description) | truncate(140) }}
{{ html2text(d.description or "") | truncate(140) }}
</div>
<span class="text-muted mt-2 d-l-n order-qty">
{{ _("Qty ") }}({{ d.get_formatted("qty") }})
</span>
</div>
</div>
{% endmacro %}
{% endmacro %}

0 comments on commit 8a72845

Please sign in to comment.