You have to store the VAT per line, as the line items might have different vat rates. No choice.
For a suppliers invoice I would record the VAT they charged per line regardless of the calculation.
Using one form for both would be problematical, but not impossible.
I'm not sure I would go down...