We have 100 Sales Orders in the system, we need to put the total "discount %" in "Sales Order Header" by opening and editing a single one of them. Is there any solution/sql-query to put the total discount % in one go? How to get rid of this manual activity which take hours? How can we automate it?