Fix saving of alternative currencies and quantity discount rates

For issue #777