admin_top_total_revenue()
admin_top_total_revenue(): string
Total Revenue
Returns
string —The total revenue generated by the operation.
Class that handles the dashboard items / widegets for the transaction package.
members_top_revenuve_day(): string
User's revenue for the past week.
Revenue earned by the logged in user over the past week. / public function members_top_revenuve_week() {
// Get amount $amount = db::get_field("SELECT sum(a mount) FROM transaction WHERE userid = %i AND amount > 0 AND status = 'approved' AND date_added >= date_sub(now(), interval 1 week)", app::get_userid()); if ($amount == '') { $amount = 0;
// Return return fmoney((float) $amount);
}
user revenue earned today.