get formatted training price

This commit is contained in:
Tóth Richárd
2019-08-05 17:57:07 +02:00
parent 4190d29ae5
commit bdd76b8889

View File

@@ -89,8 +89,13 @@ class training {
return $this->tr_locked;
}
public function get_tr_price() {
return $this->tr_price;
public function get_tr_price($formatted = false) {
if (!$formatted) {
return $this->tr_price;
}
else {
return number_format($this->tr_price, 0, ',', ' ');
}
}
public function get_tr_deleted() {