diary updated with money deposit objects
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user