SAP Message VKKTAX099 - Inconsistency between tax schedule and tax lines in document &1

Diagnosis
This error occurs if one of the following conditions is fulfilled:
The taxes are external taxes, but the tax schedule is marked asinternal.
The taxes are internal, but the tax schedule is marked as external.