Closed sjb9774 closed 5 years ago
@sjb9774 - Is the "Note" in your PR comment still applicable?
@rsisco Yes, there are still a few specific scenarios I'd like to test that could impact a few places in the code but I think the bulk of the code review would not be affected.
For the record, future work on this PR was put on hold, awaiting approval from Avalara to move forward on it.
Internal task link: AVS-421_116
Closing this PR, per my comment in the related issue.
Summary
Associated Taxables are used by Gift Wrapping, WEEE Tax, and some 3rd party extension to allow calculcating tax for orders on items that are not technically "items" in the Magento sense. This commit begins the basic functionality of persisting the Associated Taxable information from the order step so it can be re-transmitted to Avalara at the time of invoice processing.
Description
avatax_associated_taxables
table. An example of an Associated Taxable at the item level is gift wrapping.avatax_associated_taxables
table with theassociated_item_code
of 'quote' and aNULL
order_item_id
to distinguish them from item-level taxables. An example of a quote-level associated taxable is a printed gift cardaroundSave
plugin that gets the associated taxables tied to each item invoiced and all the quote level items if they've not yet been invoiced and fills theirinvoice_id
column with the invoice's id to indicate they are now associated with that invoice and should be used when the AvaTax queue is processed.Associated Taxables Example Data
Things that need to be tested