mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 03:35:43 +00:00
fix: Wrap unexpectedly long text in remark
(cherry picked from commit ba66a6714c)
# Conflicts:
# erpnext/accounts/report/general_ledger/general_ledger.html
This commit is contained in:
@@ -38,8 +38,11 @@
|
|||||||
{% if(data[i].posting_date) { %}
|
{% if(data[i].posting_date) { %}
|
||||||
<td>{%= frappe.datetime.str_to_user(data[i].posting_date) %}</td>
|
<td>{%= frappe.datetime.str_to_user(data[i].posting_date) %}</td>
|
||||||
<td>{%= data[i].voucher_type %}
|
<td>{%= data[i].voucher_type %}
|
||||||
<br>{%= data[i].voucher_no %}</td>
|
<br>{%= data[i].voucher_no %}
|
||||||
<td>
|
</td>
|
||||||
|
{% var longest_word = cstr(data[i].remarks).split(" ").reduce((longest, word) => word.length > longest.length ? word : longest, ""); %}
|
||||||
|
<td {% if longest_word.length > 45 %} class="overflow-wrap-anywhere" {% endif %}>
|
||||||
|
<span>
|
||||||
{% if(!(filters.party || filters.account)) { %}
|
{% if(!(filters.party || filters.account)) { %}
|
||||||
{%= data[i].party || data[i].account %}
|
{%= data[i].party || data[i].account %}
|
||||||
<br>
|
<br>
|
||||||
@@ -49,11 +52,22 @@
|
|||||||
{% if(data[i].bill_no) { %}
|
{% if(data[i].bill_no) { %}
|
||||||
<br>{%= __("Supplier Invoice No") %}: {%= data[i].bill_no %}
|
<br>{%= __("Supplier Invoice No") %}: {%= data[i].bill_no %}
|
||||||
{% } %}
|
{% } %}
|
||||||
|
<<<<<<< HEAD
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align: right">
|
<td style="text-align: right">
|
||||||
{%= format_currency(data[i].debit, filters.presentation_currency || data[i].account_currency) %}</td>
|
{%= format_currency(data[i].debit, filters.presentation_currency || data[i].account_currency) %}</td>
|
||||||
<td style="text-align: right">
|
<td style="text-align: right">
|
||||||
{%= format_currency(data[i].credit, filters.presentation_currency || data[i].account_currency) %}</td>
|
{%= format_currency(data[i].credit, filters.presentation_currency || data[i].account_currency) %}</td>
|
||||||
|
=======
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
<td style="text-align: right">
|
||||||
|
{%= format_currency(data[i].debit, filters.presentation_currency) %}
|
||||||
|
</td>
|
||||||
|
<td style="text-align: right">
|
||||||
|
{%= format_currency(data[i].credit, filters.presentation_currency) %}
|
||||||
|
</td>
|
||||||
|
>>>>>>> ba66a6714c (fix: Wrap unexpectedly long text in remark)
|
||||||
{% } else { %}
|
{% } else { %}
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user