Fix for #738, InvalidArgumentException when creating a new sale.

Fixes InvalidArgumentException when creating a new sale.