From c8cec8cedffcee0cf161f6236ca9144da4d999e5 Mon Sep 17 00:00:00 2001 From: l0gesh29 Date: Tue, 10 Jun 2025 04:45:31 +0530 Subject: [PATCH] fix: add .length in list validation (#47974) Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com> --- .../report/accounts_receivable/accounts_receivable.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.html b/erpnext/accounts/report/accounts_receivable/accounts_receivable.html index 9cae94ff8b4..680ccf69ac6 100644 --- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.html +++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.html @@ -185,7 +185,7 @@ {% if(!filters.show_future_payments) { %} - {% if(!(filters.party)) { %} + {% if(!filters.party?.length) { %} {%= data[i]["party"] %} {% if(data[i]["customer_name"] && data[i]["customer_name"] != data[i]["party"]) { %}
{%= data[i]["customer_name"] %} @@ -258,7 +258,7 @@ {% if(data[i]["party"]|| " ") { %} {% if(!data[i]["is_total_row"]) { %} - {% if(!(filters.party)) { %} + {% if(!filters.party?.length) { %} {%= data[i]["party"] %} {% if(data[i]["customer_name"] && data[i]["customer_name"] != data[i]["party"]) { %}
{%= data[i]["customer_name"] %}