From fdcf4c3ab0c4b05431a66a94f8c970c96f5e9b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Mon, 13 Feb 2017 13:48:57 +0100 Subject: [PATCH] fix property location --- kfet/templates/kfet/kpsul.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/kfet/templates/kfet/kpsul.html b/kfet/templates/kfet/kpsul.html index c0ab4ca5..2d432e4c 100644 --- a/kfet/templates/kfet/kpsul.html +++ b/kfet/templates/kfet/kpsul.html @@ -255,10 +255,11 @@ class Account { }; }; - get id() { return this._id; } - get balance() { return this._balance; } - get is_cof() { return this._is_cof; } - get is_frozen() { return this._is_frozen; } + get id() { return this._id; } + get balance() { return this._balance; } + get balance_ukf() { return amountToUKF(this.balance, this.is_cof); } + get is_cof() { return this._is_cof; } + get is_frozen() { return this._is_frozen; } set id(v) { this._id = intCheck(v); } set balance(v) { this._balance = floatCheck(v); } @@ -339,7 +340,7 @@ class AccountFormatter { class StandardAccountFormatter extends AccountFormatter { get str_balance_ukf() { - return amountToUKF(this._account.balance, this._account.is_cof); + return this._account.balance_ukf; } get str_is_cof() {