[IMP]Improved feature sale orders based on On Delivery Order should done when invoices are paid, not just validated.