That's strange - how do you "complete" your shipment? By Commerce Manager I suppose?
That is correct,
Commerce Manger->Shipping/Receiving->(when put into pick list)->Pick Lists->Fill Tracking number and Complete shipment->Error
Is there other ways the Tax get's calculated on the Order except the DefaultTaxCalculator?
You didn't mention Commerce version you are using, but I guess it was 11.x or before.
Well, the problem is in Commerce prior to 12.2 (which is being tested), the activities were still using the old way to calculate taxes. I.e. you are probably using OrderFormHelper.CalculateSalesTaxTotal (and related) method in the activities which are used internally by Commerce Manager.
If you want to fix that, you can try to update the activitity to use your new implementation, or, you can wait for 12.2 where we fix that problem for you.
When we try to complete shipment we get the following error "Incorrect authorization total. Expected: 43.600000000, but Actual is: 54.500000000".
Our solution required us to override the DefaultTaxCalculator, which have worked well and we don't come aqross any issues until trying to complete a shipment.
Parts of the implementation of the overrideing DefaultTaxCalculator can be seen below
This example is an order which is treated with the exception of not following the standard tax rules in the system.
All the summaries seems to be correct, it does not add the tax on the order.
However we still get the error stated above. I can see the OverrideDefaultTaxCalculator gets called and is returning as expected.
Is there more tax calculators that I'm not aware of that does its final check on "Complete Shipment"?