Move tax handling from line item api to BAO to make it available from apiv4
authoreileen <emcnaughton@wikimedia.org>
Fri, 4 Sep 2020 06:55:51 +0000 (18:55 +1200)
committereileen <emcnaughton@wikimedia.org>
Fri, 4 Sep 2020 20:32:42 +0000 (08:32 +1200)
commit07ebcb2331f62b33d9ba130267a8ab0190d06284
tree41e90f804a703e56ad8b752e645ca2f2680152e1
parenta3ae022d9e31cdb61bb42cc618206e4122651c84
Move tax handling from line item api to BAO to make it available from 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 https://github.com/civicrm/civicrm-core/pull/18297
CRM/Price/BAO/LineItem.php
api/v3/LineItem.php