diary updated with money deposit objects

This commit is contained in:
Ricsi
2017-01-26 19:56:43 +01:00
parent bdd04b9cdc
commit 38d0a2657b
4 changed files with 148 additions and 44 deletions

View File

@@ -52,8 +52,19 @@ class money_deposit {
return $this->mod_date;
}
public function get_mod_sum() {
return $this->mod_sum;
public function get_mod_date_day() {
$day = date("d", strtotime($this->mod_date));
if (substr($day, 0, 1) == '0') return substr($day, 1, 1);
return date("d", strtotime($this->mod_date));
}
public function get_mod_sum($formatted = null) {
if (!$formatted) {
return $this->mod_sum;
}
else {
return number_format($this->mod_sum, 0, '', ' ');
}
}
public function get_mod_deleted() {