By DHNGroup on Monday, 10 September 2018
Posted in General Issues
Replies 34
Likes 0
Views 791
Votes 0
I have membership price in total $500. I want to display 2 digits after decimal point.
I inserted $454.55 with the tax of 10%. The tax should be 45.45.
Instead payplans generates tax of 45.46 which in total makes 500.01.
Hello,

Sorry for the delayed response due to public holiday.
What i understand that you don't wanna show the value after dot. I mean like if value is is 454.5 then you wanna display only 454.
Correct me if i misunderstood.
·
Wednesday, 12 September 2018 16:25
·
0 Likes
·
0 Votes
·
0 Comments
·
I think you misunderstood indeed. I want to keep the 2 digits after decimal dot as it is.
I am stating that Payplans is calculating incorrectly. I expect to receive the whole number $500.00 with provided amount of $454.55 * 10% tax. Payplans calculates as $500.01 but it should be $500.00. The 10% tax amount should be 45.45 rounded from 45.45(4). Instead you are rounding to 45.46 from 45.45(45).
·
Wednesday, 12 September 2018 23:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I got your point, for this i need to make changes on your site.
I've tried to connect with ftp details you provided but not working.

Response: 530 Login incorrect.
Error: Critical error: Could not connect to server


Please cross check it and update me , so i can continue on this issue.
·
Thursday, 13 September 2018 17:07
·
0 Likes
·
0 Votes
·
0 Comments
·
I updated the site. Thank you.
·
Friday, 14 September 2018 09:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I've tried to connect but still not working.

Response: 530 Login incorrect.
Error: Critical error: Could not connect to server
·
Friday, 14 September 2018 11:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Just tested the address and credentials for site and ftp. It is all good for me. I have made sure too to check that I updated the first post with the correct address.
·
Friday, 14 September 2018 11:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Ok, now able to connect with ftp. I am trying with latest post ftp credentials.
Will let you know once fixed this issue.
·
Friday, 14 September 2018 11:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I am really sorry for the delayed response due to weekend and public holidays.
I got some issue with this, i'm working on this and will apply the changes on your site asap.
·
Tuesday, 18 September 2018 12:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I've already applied this fix at your site. Changes are in below mentioned file path.
root/components/com_payplans/helpers/format.php
root/plugins/payplans/basictax/basictax.php


Please take a look on this issue and update me if still issue persist.
·
Wednesday, 19 September 2018 15:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, but I think we still not quite there... That particular value of $454.55 with the tax of 10% is showing correctly. However what about 45.45 with the same tax of 10%? It shows 49.99. It does not calculate correctly the tax value. It should be 4.55 (4.545). Instead you calculated 4.54.
·
Friday, 21 September 2018 00:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I've applied some fixes on your site yo fix this issue. Please take a look on this and let me know if still issue persist.
Changes in below mentioned files.
root/components/com_payplans/helpers/format.php
root/plugins/payplans/basictax/basictax.php
/components/com_payplans/templates/default/_partials/default_partials_amount.php


Update me.
·
Friday, 21 September 2018 14:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Unfortunately, we are back to the original issue with 500.01.
I think the tax should not be calculated from already rounded number 454.55 because we will get tax=45.455. This is why we will get 45.46 and in result 500.01
·
Saturday, 22 September 2018 01:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I've tried to check the site it seems the changes made by me are not there.
I've tried to connect with ftp but it seems not working. Can you update the correct credentials.

Response: 530 Login incorrect.
Error: Critical error: Could not connect to server
·
Monday, 24 September 2018 11:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Just tested my ftp credentials by copy/paste from the first post and works fine for me.
·
Monday, 24 September 2018 11:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Ok, i've done the changes for backend also (i missed to update for backend).
Please take a look on this issue again and let me know if still any issue persist.
·
Monday, 24 September 2018 13:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you,

It appears to be working now. Can you kindly summarize for me where all the changes were made? I will need to populate it to other sites.
·
Tuesday, 25 September 2018 07:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

It sounds good that your issue has been resolved now.

Then changes in below mentioned file paths.
root/components/com_payplans/helpers/format.php
root/plugins/payplans/basictax/basictax.php
root/components/com_payplans/templates/default/_partials/default_partials_amount.php
root/administrator/components/com_payplans/templates/default/_partials/default_partials_amount.php
root/administrator/components/com_payplans/templates/default/invoice/default_grid.php
root/administrator/components/com_payplans/templates/default/invoice/default_edit.php

Let me know if you have any query.
·
Tuesday, 25 September 2018 10:58
·
0 Likes
·
0 Votes
·
0 Comments
·
I am sorry, somehow I assumed that was fixed. However, I noticed that still the price in transactions shows 500.01.
Are these changes done only in the template? I have not tested if the price will be forwarded to PayPal properly 500.00?
·
Sunday, 30 September 2018 13:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I am checking this issue , will let you know once fixed.
·
Sunday, 30 September 2018 15:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I've already fixed this issue at your site.
Changes on below mentioned file path.
root/administrator/components/com_payplans/views/transaction/view.html.php
root/administrator/components/com_payplans/templates/default/transaction/default_grid.php
root/administrator/components/com_payplans/templates/default/transaction/default_edit.php

Update me if you have any query.
·
Tuesday, 02 October 2018 19:36
·
0 Likes
·
0 Votes
·
0 Comments
·
I mean visually you are right as all values are indeed rounded but unfortunately the main problem exists in DB. The total amount shows 500.005 which rounds to 500.01. It is because you don't round the tax value to 45.45(45). Please have a look at the screenshot.

In result the PayPal payment asks to pay 500.01 as well. (Another screenshot).
I have also third party party integrated invoice extension that reads value from Payplans DB and thus shows 500.01 as well.

Please check the last invoice where I show these values from.
·
Wednesday, 03 October 2018 10:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Ok, i am checking this. Till then don't change anything on site.
·
Wednesday, 03 October 2018 10:56
·
0 Likes
·
0 Votes
·
0 Comments
·
I feel like you forgot about me
This was already 10 days ago. Do you have any update for me?
·
Saturday, 13 October 2018 07:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I am really sorry for the delayed response.
For paypal method, i've already applied the changes.
Changes are on below mentioned filepath
root/plugins/payplans/paypal/paypal/app/paypal/paypal.php
root/components/com_payplans/libraries/event/order.php


Please take a look on this issue and let me know if you will use any other payment method other then paypal.
·
Saturday, 13 October 2018 15:37
·
0 Likes
·
0 Votes
·
0 Comments
·
I am also using paypalpro and payflow.
Additionally, I use a centralized Invoice Manager with a plugin at /plugins/payplans/invoicemanager/invoicemanager.php
·
Monday, 15 October 2018 12:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Ok, I've done the changes in payflow and paypal pro app also.
root/plugins/payplans/payflow/payflow/app/payflow/payflow.php
root/plugins/payplans/paypalpro/paypalpro/app/paypalpro/paypalpro.php

Please take a look on this and let me know if you have any query.
·
Monday, 15 October 2018 12:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry, I was away for several days and didn't finalize it...
It looks that we are still have same issue with PayPal. Please see the screenshot.
·
Thursday, 25 October 2018 10:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Can you please try again on below mentioned url, it's working fine.
http://a5mtest.assocyate.com/sign-up/30

Update us.
·
Thursday, 25 October 2018 13:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, it is working. I assume that you made some change..? It was not working for me yesterday.
·
Friday, 26 October 2018 07:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

It sounds good that it's working for you
I didn't change anything on yesterday, changes were done already.
·
Friday, 26 October 2018 10:59
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post