\renewcommand*\STM@JK@dbkeys{ValueDate,PostingDate,Reference,Narrative,Amount,Balance}%
\renewcommand*\STM@JK@DTLforeach%
{%
\DTLforeach{\STM@JK@dbname}%
{\postingdate=PostingDate,\valuedate=ValueDate,\reference=Reference,\narrative=Narrative,\amount=Amount,\balance=Balance}%
{%
\parbox[t]{\widthof{ (YYYY-MM-DD) }}{\leavevmode\hphantom{(}\postingdate\\(\valuedate)} &%
\parbox[t]{\STM@JK@referencewidth}{\raggedright%
\DTLifstringeq{\reference}{}{}{\reference\\}%
\DTLifstringeq{\narrative}{}{}{\narrative\\}%
} &%
\parbox[t]{\widthof{1234567.89)}}{\raggedleft\DTLifStartsWith{\amount}{-}{\textcolor{\STM@JK@negativecolor}{\num{\amount}\hphantom{)}}}{\num{\amount}\hphantom{)}}\\(\num{\balance})}
\DTLiflastrow{%
\ifthenelse{\equal{\STM@JK@closingbalance}{none}}%
{}%
{\\\midrule\\ & \STM@JK@closingbalancename & \DTLifStartsWith{\STM@JK@closingbalance}{-}%
{\textcolor{\STM@JK@negativecolor}{\num{\STM@JK@closingbalance}}}{\num{\STM@JK@closingbalance}}}%
\\\bottomrule%
}%
{\\ & & \\}%
}%
}%
\DTLsetseparator{,}%
\renewcommand*\STM@JK@noheader{false}%
\sisetup{detect-all,round-integer-to-decimal,round-mode=places,round-precision=2}%