Skip to content

Commit

Permalink
* added count
Browse files Browse the repository at this point in the history
  • Loading branch information
yure committed Feb 8, 2012
1 parent 841889a commit 7262d93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/coupons/code/coupons_order_cleanup.sub
Expand Up @@ -13,6 +13,9 @@ sub {
else {
Log("coupon_log code missing for coupon $coupon_number and order $Values->{mv_order_number}");
}

# Deduct 1 from count so we know coupon has been used
$Db{coupon_log}->query({ sql => "update coupons set count = count-1 where code = '$repo->{code}'" });
}
}

Expand Down

0 comments on commit 7262d93

Please sign in to comment.