data.js
// Add 'fmtamt' property showing currency amount.
Add 'fmtamt' property showing currency amount.
Add ' fmtamt ' property showing currency amount .
function addCurrencyFormattedAmts(account) {
    let formatter = createFormatter(account.currency.name);
    account.fmtbalance = formatter.format(account.balance);
    for (let i=0; i < account.txns.length; i++) {
        let t = account.txns[i];
        t.fmtamt = formatter.format(t.amt);
    }
}
function addCurrencyFormattedAmts ( account ) { let formatter = createFormatter ( account . currency . name ) ; account . fmtbalance = formatter . format ( account . balance ) ; for ( let i = 0 ; i < account . txns . length ; i ++ ) { let t = account . txns [ i ] ; t . fmtamt = formatter . format ( t . amt ) ; } }
Add 'fmtamt' property showing currency amount.
Add ' fmtamt ' property showing currency amount .