Avoid update invoice_shipping_on_delivery before backdate is entered.
Sales Confirmation Backdate - Delivery Costs