This can happen if the Tax Detail ID from the transaction is setup as "Tax Included with Item Price" instead of "Percent of Sale/Purchase".
There are two solutions for this:
1. Use a different Tax Detail ID - one that is setup as "Percent of Sale/Purchase".
2. Set "Using Header Level Taxes" to '1'. Only take this route if the amount mapped to the unit cost does already include the tax.