Make sure that the correct line is added to the sale when using the add by name feature