From 8d949819123e5c1d62b6f8e196cc3a0a570ad91b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Fri, 8 Dec 2023 13:56:30 +0100 Subject: [PATCH] list sort order and display, default filename --- doclist.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doclist.sh b/doclist.sh index d3df3e1..0472ec7 100755 --- a/doclist.sh +++ b/doclist.sh @@ -6,7 +6,7 @@ list_status() { local status=$1 id type net tax gross junk grep -lxF "status ${status}" "$_DATA"/*.kvd \ - | sort \ + | sort -r \ | while read file; do id="${file##*/}" id="${id%.kvd}" DB3 open "$file" || continue @@ -18,7 +18,7 @@ list_status() { [form .invoice method=POST [h3 [a href="${_BASE}/doc/${id}" . $(DB3 get invnum |HTML)]] [span .date . $(DB3 get date |HTML)] - [span .rcpt . $(DB3 get rcpt |HTML)] + [span .rcpt . $(DB3 get rcpt |sed -E 's/ *;.*//g' |HTML)] [span .total . ${gross} €] [select name=status [option value=open $([ "$status" = open ] && printf selected=selected) . $(_ Open)] -- 2.39.5