Fixes

  1. API call saveSalesDocument
    did not always respect correct user rights when editing a document of type "ORDER" or "OFFER". In some cases, the right to edit invoices was checked instead.