Fix Calculation

This commit is contained in:
Ibnu Maksum 2024-02-05 14:25:23 +07:00
parent 00ac91903f
commit 80cecabfb0
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
3 changed files with 186 additions and 185 deletions

View File

@ -427,3 +427,4 @@ $_L['Buy_this_your_active_package_will_be_overwrite'] = 'Buy this? your active p
$_L['Monthly_Registered_Customers'] = 'Monthly Registered Customers'; $_L['Monthly_Registered_Customers'] = 'Monthly Registered Customers';
$_L['Total_Monthly_Sales'] = 'Total Monthly Sales'; $_L['Total_Monthly_Sales'] = 'Total Monthly Sales';
$_L['Active_Users'] = 'Active Users'; $_L['Active_Users'] = 'Active Users';
$_L['All_Users_Insights'] = 'All Users Insights';

View File

@ -309,14 +309,14 @@
var c_all = '{/literal}{$c_all}{literal}'; var c_all = '{/literal}{$c_all}{literal}';
var u_all = '{/literal}{$u_all}{literal}'; var u_all = '{/literal}{$u_all}{literal}';
//lets calculate the inactive users as reported //lets calculate the inactive users as reported
var inactive = u_all - u_act; var expired = u_all - u_act;
var inactive = c_all - u_all;
// Create the chart data // Create the chart data
var data = { var data = {
labels: ['Active Users', 'Inactive Users', 'Total Users'], labels: ['Active Users', 'Expired Users', 'Inactive Users'],
datasets: [{ datasets: [{
label: 'User Recharges', label: 'User Recharges',
data: [parseInt(u_act), parseInt(inactive), parseInt(c_all)], data: [parseInt(u_act), parseInt(expired), parseInt(inactive)],
backgroundColor: ['rgba(4, 191, 13)', 'rgba(191, 35, 4)', 'rgba(0, 0, 255, 0.5'], backgroundColor: ['rgba(4, 191, 13)', 'rgba(191, 35, 4)', 'rgba(0, 0, 255, 0.5'],
borderColor: ['rgba(0, 255, 0, 1)', 'rgba(255, 99, 132, 1)', 'rgba(0, 0, 255, 0.7'], borderColor: ['rgba(0, 255, 0, 1)', 'rgba(255, 99, 132, 1)', 'rgba(0, 0, 255, 0.7'],
borderWidth: 1 borderWidth: 1

View File

@ -1,3 +1,3 @@
{ {
"version": "2024.2.5" "version": "2024.2.5.1"
} }