[improved code for default values from sale order]