invoice and sales order

fixed some invoice and sale order stuff