Prevent unnecessary writes on sales orders

When the exceptions are the same, do not write them again,
this prevent to write on sales orders when it is not necessary.