show mod sum
This commit is contained in:
@@ -227,6 +227,23 @@ class money_deposit {
|
||||
return $expireDate;
|
||||
}
|
||||
|
||||
public static function get_month_mod_sum($_year, $_month) {
|
||||
global $sql;
|
||||
|
||||
return $sql->single_variable("
|
||||
SELECT
|
||||
SUM(mi_sum)
|
||||
FROM
|
||||
money_deposit
|
||||
JOIN
|
||||
money_income ON mi_id = mod_money_income_mi_id
|
||||
WHERE
|
||||
mi_date LIKE '%{$_year}-{$_month}%'
|
||||
AND mi_deleted = 0
|
||||
AND mod_deleted = 0
|
||||
");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user