add ability to define margin rate and calculate selling price on propale, order, invoice

more to come (same thing on edit + user permissions on margin module)