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

[REF] Minor simplification around assigning taxAmount to the template #19757

Merged
merged 1 commit into from
Mar 23, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Mar 8, 2021

Overview

[REF] Minor simplification around assigning taxAmount to the template

Before

A bunch of confusing code

After

Just assign it based on the calculated tax amount for the contribution. If no tax then
just assign that to the tpl. Bye copy & paste

Technical Details

Comments

@civibot
Copy link

civibot bot commented Mar 8, 2021

(Standard links)

@civibot civibot bot added the master label Mar 8, 2021
Just assign it based on the calculated tax amount for the contribution. If no tax then
just assign that to the tpl. Bye copy & paste
eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request Mar 22, 2021
Rather than rely on these being passed around retrieve them with
a consistent function.

Note tax_amount is retrieved one other place but that is fixed in
civicrm#19757

Line item will be used less once
civicrm#19801 is merged
@eileenmcnaughton
Copy link
Contributor Author

@colemanw less important to the cleanup but this one is really simple...

@colemanw colemanw merged commit 1a81317 into civicrm:master Mar 23, 2021
@colemanw colemanw deleted the tax_amount branch March 23, 2021 19:04
@colemanw
Copy link
Member

Well the after code certainly makes a lot more sense!

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.

2 participants