+ printf '[table .transactions [thead
+ [tr [th .date . %s][th .orig . %s][th .reference . %s][th .amount . %s][th .balance . %s]]' \
+ "$(l10n Date)" "$(l10n Originator)" "$(l10n "Reference Text")" "$(l10n Amount)" "$(l10n Balance)"
+ printf '][tbody'
+ cnt="$(pdi_count "$card" X-IBAN)"
+ while [ "$cnt" -gt 0 ]; do
+ pdi_value "$card" X-IBAN "$cnt" |RXLITERAL
+ cnt=$((cnt - 1))
+ done \
+ | {
+ while read -r iban; do
+ grep -hE "^[^\t]+ [^\t]+ ${iban} " "${_DATA}/ledgers/"*.tbl
+ done
+ if [ -f "$cledger" ]; then
+ :
+ fi
+ } \
+ | sort -n -k2 \
+ | { total=0
+ while read -r date dtstamp iban accname subject amount; do
+ total=$((total + amount))
+ printf '[tr [td .date . %s][td .orig [span . %s][span . %s]][td .reference . %s][td .amount . %s][td .balance . %s]]' \
+ "$date" "$(HTML "$iban")" \
+ "$(UNSTRING "$accname" |HTML)" "$(UNSTRING "$subject" |HTML)" \
+ "$(credit "$amount")" "$(credit "$total")"
+ done
+ }
+ printf '[tr [th colspan=5 . %s]]' "$(l10n 'Manual Record')"
+ printf '[tr [td .date [input type=date placeholder="%s" name=tdate]]
+ [td .orig [input id=trec_once type=radio name="trec" value="once" selected]
+ [label for=trec_once . %s]<br/>
+ [input id=trec_month type=radio name="trec" value="month"]
+ [label for=trec_month . %s]
+ [input type=date name="trec_until" placeholder="%s"]]
+ [td .reference . [textarea placeholder="%s" name=treference]]
+ [td .amount colspan=2 [input type=number placeholder="%s" name=tamount value=0.00 step=.01]]' \
+ "$(l10n Date)" "$(l10n once)" "$(l10n "monthly until")" "$(l10n until)" "$(l10n "Reference Text")" "$(l10n Amount)"
+ printf ']]]'