Actually this could be achieved within a more general solution. Invoice level tax codes have a more general applicability, typically for withholding tax but in the general structure described in this post other tax codes could also be used
-
Multiple rate tax codes as a collection of single rate tax codes Tax Withholding Percentage - #27 by Patch
-
Tax codes at item or invoice level Added withholding tax support for purchase invoices - #26 by Patch