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

dev/core#1980 Move tax handling from line item api to BAO to make it available from apiv4 #18352

Merged
merged 1 commit into from
Sep 6, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Sep 4, 2020

Overview

Move tax handling from line item api to BAO to make it available from apiv4

Before

Calculation of tax_amount for line items at the api layer

After

Moved to the BAO

Technical Details

This implementation has some limitations. I only address one in this PR - removing the rounding - as
the focus of the PR is the move.

The rounding from all save layers was previously removed but it was reverted when it was eroneously believed
to have caused a bug. The bug turned out to be #18297

Comments

Test is in #18351 - which can be merged first as it is a refactor-support-test to ensure no change

@civibot
Copy link

civibot bot commented Sep 4, 2020

(Standard links)

@civibot civibot bot added the master label Sep 4, 2020
@eileenmcnaughton eileenmcnaughton force-pushed the line_move branch 2 times, most recently from 3e21819 to 1c4d07a Compare September 4, 2020 06:59
@eileenmcnaughton
Copy link
Contributor Author

@colemanw once this is merged we can add the v4 api

@eileenmcnaughton eileenmcnaughton changed the title Move tax handling from line item api to BAO to make it available from apiv4 dev/core#1980 Move tax handling from line item api to BAO to make it available from apiv4 Sep 4, 2020
@mattwire
Copy link
Contributor

mattwire commented Sep 4, 2020

@eileenmcnaughton I expected to see a removal too for a code move but this is just adding code in the BAO?

@eileenmcnaughton
Copy link
Contributor Author

@mattwire that looks like a mistake! fixing now

… apiv4

This implementation has some limitations. I only address one in this PR - removing the rounding - as
the focus of the PR is the move.

The rounding from all save layers was previously removed but it was reverted when it was eroneously believed
to have caused a bug. The bug turned out to be civicrm#18297
@seamuslee001
Copy link
Contributor

Jenkins re test this please

@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 it has passed now

@colemanw colemanw merged commit 805feda into civicrm:master Sep 6, 2020
@eileenmcnaughton eileenmcnaughton deleted the line_move branch September 6, 2020 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants