fix: cannot set custom label for 'total' field in print format (#27664)

This commit is contained in:
Saqib 2021-09-27 14:28:16 +05:30 committed by GitHub
parent 9fa24ffccc
commit f2fca59ba7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@
</div>
{% else %}
<div class="col-xs-5 {%- if doc.align_labels_right %} text-right{%- endif -%}">
<label>{{ _(doc.meta.get_label('total')) }}</label></div>
<label>{{ _(df.label) }}</label></div>
<div class="col-xs-7 text-right">
{{ doc.get_formatted("total", doc) }}
</div>