Set derived fields on orders before save