When printing invoices, sales order, loading sheets or quotations the warehouse location will print as defined in the inventory file at the time the document is printed.
This modification bypasses all invoice sorting features in system preferences.