Bugs (Softaculous) https://www.softaculous.com/board/index.php?fid=19 <![CDATA[decimals for resource pricing]]> https://www.softaculous.com/board/index.php?tid=17595&tpg=1#p58358
Quote From : radwebhosting July 29, 2024, 3:19 pm
Quote From : fhcardoso June 25, 2024, 4:33 am
Quote From : radwebhosting April 24, 2024, 3:47 pm
I also agree since the resources are calculated in 1 GB integrals at hourly integrals. In USD, a 10GB storage would be $7.30/mo when based on the least possible assigned cost $0.001 during a month that has ~730 hours.

Now, we would much prefer to charge our users less for this amount of disk.

I imagine there might be other currencies also, where 3 decimal places is unsuitable.


I created my own solution by changing the template and the database. Let me know if you are interested, I can share it with you.


Sorry for late response. Yes, it sounds very interesting and would like to know more



I'm sorry for taking so long to respond, but I hadn't seen your response.


The solution is very simples and work fine:
MAKE BACKUP OF FILES BEFORE DOING THIS.

Code
**** CHANGE THE DATABASE VIRTUALIZOR
ALTER TABLE `usage` CHANGE `h_used` `h_used` DECIMAL(10,6) NOT NULL DEFAULT '0.00' COMMENT 'The estimated amount that will be charged for the VPS';
ALTER TABLE `pricing` CHANGE `h_rate` `h_rate` DECIMAL(10,6) NOT NULL, CHANGE `m_rate` `m_rate` DECIMAL(10,2) NOT NULL, CHANGE `y_rate` `y_rate` DECIMAL(10,2) NOT NULL;

**** "ADMIN TEMPLATE CHANGE TO ALLOW STEP=0.000001"
sed -i 's/step="0.001"/step="0.000001"/g' /usr/local/virtualizor/enduser/themes/default/admin/resource_pricing_theme.php
sed -i '/prow += "<input type=\\"number\\" step=\\"0.001\\" class=\\"form-control\\" name=\\""+ratetypes\[i\]/ s/step=\\"0.001\\"/step=\\"0.000001\\"/' /usr/local/virtualizor/enduser/themes/default/admin/addplan_theme.php
sed -i '/prow += "<input type=\\"number\\" step=\\"0.001\\" class=\\"form-control\\" name=\\""+ratetypes\[i\]/ s/step=\\"0.001\\"/step=\\"0.000001\\"/' /usr/local/virtualizor/enduser/themes/default/admin/editplan_theme.php
]]>
Mon, 09 Sep 2024 19:29:30 GMT https://www.softaculous.com/board/index.php?tid=17595&tpg=1#p58358
<![CDATA[decimals for resource pricing]]> https://www.softaculous.com/board/index.php?tid=17595&tpg=1#p58233
Quote From : fhcardoso June 25, 2024, 4:33 am
Quote From : radwebhosting April 24, 2024, 3:47 pm
I also agree since the resources are calculated in 1 GB integrals at hourly integrals. In USD, a 10GB storage would be $7.30/mo when based on the least possible assigned cost $0.001 during a month that has ~730 hours.

Now, we would much prefer to charge our users less for this amount of disk.

I imagine there might be other currencies also, where 3 decimal places is unsuitable.


I created my own solution by changing the template and the database. Let me know if you are interested, I can share it with you.


Sorry for late response. Yes, it sounds very interesting and would like to know more]]>
Mon, 29 Jul 2024 15:19:08 GMT https://www.softaculous.com/board/index.php?tid=17595&tpg=1#p58233
<![CDATA[decimals for resource pricing]]> https://www.softaculous.com/board/index.php?tid=17595&tpg=1#p58100
Quote From : radwebhosting April 24, 2024, 3:47 pm
I also agree since the resources are calculated in 1 GB integrals at hourly integrals. In USD, a 10GB storage would be $7.30/mo when based on the least possible assigned cost $0.001 during a month that has ~730 hours.

Now, we would much prefer to charge our users less for this amount of disk.

I imagine there might be other currencies also, where 3 decimal places is unsuitable.


I created my own solution by changing the template and the database. Let me know if you are interested, I can share it with you.]]>
Tue, 25 Jun 2024 04:33:57 GMT https://www.softaculous.com/board/index.php?tid=17595&tpg=1#p58100
<![CDATA[decimals for resource pricing]]> https://www.softaculous.com/board/index.php?tid=17595&tpg=1#p57884
Now, we would much prefer to charge our users less for this amount of disk.

I imagine there might be other currencies also, where 3 decimal places is unsuitable.]]>
Wed, 24 Apr 2024 15:47:47 GMT https://www.softaculous.com/board/index.php?tid=17595&tpg=1#p57884
<![CDATA[VPS Migration Bug]]> https://www.softaculous.com/board/index.php?tid=19156&tpg=1#p57874
Quote From : radwebhosting March 15, 2024, 2:34 pm
You can remove the host IP from the IP pools to prevent this type of issue moving forward, because, yeah, that will break things every time  :xd:


How to delete server IP?]]>
Mon, 22 Apr 2024 08:16:11 GMT https://www.softaculous.com/board/index.php?tid=19156&tpg=1#p57874
<![CDATA[VPS Migration Bug]]> https://www.softaculous.com/board/index.php?tid=19156&tpg=1#p57741 ]]> Fri, 15 Mar 2024 14:34:15 GMT https://www.softaculous.com/board/index.php?tid=19156&tpg=1#p57741 <![CDATA[.]]> https://www.softaculous.com/board/index.php?tid=19341&tpg=1#p57490 Mon, 15 Jan 2024 02:55:57 GMT https://www.softaculous.com/board/index.php?tid=19341&tpg=1#p57490 <![CDATA[Dont change de original hostname, when change de hostname]]> https://www.softaculous.com/board/index.php?tid=18428&tpg=1#p57458 ]]> Wed, 03 Jan 2024 02:25:17 GMT https://www.softaculous.com/board/index.php?tid=18428&tpg=1#p57458 <![CDATA[.]]> https://www.softaculous.com/board/index.php?tid=19341&tpg=1#p57423 Tue, 26 Dec 2023 08:51:52 GMT https://www.softaculous.com/board/index.php?tid=19341&tpg=1#p57423 <![CDATA[qemu-guest-agent.service has failed]]> https://www.softaculous.com/board/index.php?tid=18594&tpg=1#p57388
Quote From : jevingala January 16, 2023, 6:19 am
Hi,

It runs every 8 minutes, no need to add any cron job for that.


Can the minutes be reduced?]]>
Tue, 19 Dec 2023 08:19:04 GMT https://www.softaculous.com/board/index.php?tid=18594&tpg=1#p57388