reinstated subtotal,tax and total fields in salesinvoicedetail and
updated view so that these override any lineitems that may exist

useful for overriding values on import with minimal data, correcting
import rounding errors, or creating invoices manually.
added tables for document handling