Custom made VAT codes and VAT ID where the code and D was different was rejected by the Norwegian government (Altinn). The standard codes the VAT code and VAT ID are equal so the Taxable in the master matched the code on the transactions.
We have changed so the Taxable and the Transactions are using the the VAT ID .