for n in resent:Resent sent:Sent paid:Paid cancelled:Cancelled; do
printf '[h1 %s]' "${n#*:}"
- for i in invoices/*; do case "$(sed 1q <$i)" in
+ printf "%s\n" invoices/* \
+ | sort -r \
+ | while read i; do case "$(sed 1q <$i)" in
*status=${n%:*}*) list_invoice "$i";;
esac; done
done
%s] ]
[td [textarea name=work
%s] ]
- [td [input type=number name=hours value="%.2g" step=any] ]
+ [td [input type=number name=hours value="%g" step=any] ]
[td %s]
]' "$(UNSTRING "${time#time=}" |HTML)" \
"$(UNSTRING "${work#work=}" |HTML)" \
printf 'time=%s work=%s hours=%s\n' \
"$(POST time $n |STRING)" "$(POST work $n |STRING)" \
"$(POST hours $n |STRING)" \
- | grep -xvF 'time= work= hours=0'
+ | grep -xvF 'time=\ work=\ hours=0'
done
} >"invoices/$id"