I am working with orders using a discount voucher. On the orders there is some discrepencies on the discount being applied. When looking in the database at the EcomOrders table I noticed that the order records that had the discount applied properly had 'OrderVoucherUseType'=2 and the order records that did not apply the discount have a 'OrderVoucherUseType'=0. All of the orders are using the same OrderVoucherCode.
My questions is what is the 'OrderVoucherUseType' fields purpose and how is it populated?