Customer check

We can't do that check because:
- The coupon is a gift and buyer is not necessarily the consumer
- We may not always set customer when selling a coupon
I think we don't need to the partner_id field in coupon as we have seller and consumer on record through pos.order partner_id
Prohibit double usage

Currently a coupon can be used twice.
Selling coupons selection
We should only be allowed to sell coupons with fixed amount
Consuming coupons other than fixed_amount
Since we are checking for sold, this is not possible currently. However, the 10% feature is already implemented and I would like to keep. Therefore, I suggest to just post a warning if pos_product_id is set and coupon is not sold.
I was going to write on how to exclude specific_product and cheapest_product, but they all work, nice!
Add coupon sales to view

free product
Currently, I can’t use reward_type ‘product’. Would it be possible to pass the reward_product_id in that case?
Minimum amount and minimum qty
Is it possible to check for rule_minimum_amount and rule_min_quantity before applying coupon?
--> If this is a huge amount of extra work, don’t do it.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Customer check
We can't do that check because:
I think we don't need to the partner_id field in coupon as we have seller and consumer on record through pos.order partner_id
Prohibit double usage
Currently a coupon can be used twice.
Selling coupons selection
We should only be allowed to sell coupons with fixed amount
Consuming coupons other than fixed_amount
Since we are checking for sold, this is not possible currently. However, the 10% feature is already implemented and I would like to keep. Therefore, I suggest to just post a warning if pos_product_id is set and coupon is not sold.
I was going to write on how to exclude specific_product and cheapest_product, but they all work, nice!
Add coupon sales to view
free product
Currently, I can’t use reward_type ‘product’. Would it be possible to pass the reward_product_id in that case?
Minimum amount and minimum qty
Is it possible to check for rule_minimum_amount and rule_min_quantity before applying coupon?
--> If this is a huge amount of extra work, don’t do it.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.