Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRM-16228 - Tax INVOICE PDF Tax Rate - Incorrect - 4.6 LTS #9627

Closed
wants to merge 1 commit into from
Closed

CRM-16228 - Tax INVOICE PDF Tax Rate - Incorrect - 4.6 LTS #9627

wants to merge 1 commit into from

Conversation

KarinG
Copy link
Contributor

@KarinG KarinG commented Jan 4, 2017

My preference would be no rounding it all at this stage (this tax_amount is carried into the calculations where it's multiplied by quantity) - but let's be safe and set it to 4 decimals for now;


My preference would be no rounding it all at this stage (this tax_amount is carried into the calculations where it's multiplied by quantity) - but let's be safe and set it to 4 decimals for now;
@KarinG
Copy link
Contributor Author

KarinG commented Jan 4, 2017

@seamuslee001 - any thoughts as to why I'm getting: api_v3_CustomValueTest::testCreateCustomValue Failed asserting that false matches expected true.

PR tests fine in 4.7: #9626 - and it does not touch on any custom values.

@seamuslee001
Copy link
Contributor

Jenkins re test this please

@KarinG
Copy link
Contributor Author

KarinG commented Jan 5, 2017

Note to self: write PHPUnit test to check tax amounts calculated.

@KarinG
Copy link
Contributor Author

KarinG commented Jan 7, 2017

Can't get a PHPUnit test going without also editing Core itself in some important places; it's too risky - it defies the point of having make sense/simple/safe PRs for LTS.

@KarinG
Copy link
Contributor Author

KarinG commented Jan 7, 2017

I was able to send monies to PayPal WPS - (see below: this was 4.6.x front end contribution page w/ Membership priceset - Membership - ($0.52 + 5% GST ($0.026) = $0.546 = $0.55 ) - but there are so many ways to get CiviCRM to send monies to Paypal WPS it would be good if a third party could confirm that removing the premature rounding in this PR does not cause any issues there. If it does I'll want to add a fix for that to this PR before it gets merged - @jackrabbithanna

paypal_250

@KarinG
Copy link
Contributor Author

KarinG commented Jan 10, 2017

I just found out that @mlufty had already fixed the rounding issue on price_fields back in Aug. 2015: https://issues.civicrm.org/jira/browse/CRM-17034 - #6520 - just trying to refix that :-)

@KarinG KarinG closed this Jan 23, 2017
@KarinG
Copy link
Contributor Author

KarinG commented Jan 23, 2017

Closing this as I have a more comprehensive solution - please see:
https://issues.civicrm.org/jira/browse/CRM-19908

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants