Fixed checking of whether product codes should be displayed in invoices.