Index: uc_coupon.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_coupon/uc_coupon.module,v
retrieving revision 1.51
diff -u -r1.51 uc_coupon.module
--- uc_coupon.module	23 Mar 2010 15:28:21 -0000	1.51
+++ uc_coupon.module	21 Sep 2010 20:08:55 -0000
@@ -340,10 +340,11 @@
     '#default_value' => $value->type,
     '#options' => array(
       'percentage' => 'Percentage',
-      'price' => 'Price'
+      'price' => 'Total Price',
+      'price per qty' => 'Price per QTY'
     ),
   );
-
+  
   $form['value'] = array(
     '#type' => 'textfield',
     '#title' => t('Discount value'),
@@ -1052,12 +1053,14 @@
   $result->title = t('Coupon: @code', array('@code' => $code));
 
   if ($coupon->type == 'percentage') {
-    $result->amount = round($applicable_total * $coupon->value / 100, variable_get('uc_currency_prec', 2));
+    $result->amount = $applicable_total * $coupon->value / 100;
   }
-  else if ($coupon->type == 'price') {
+  else if ($coupon->type == 'priceqty') {
     $result->amount = min($applicable_total, $applicable_qty * $coupon->value);
   }
-
+  else if ($coupon->type == 'price') {
+    $result->amount = min($applicable_total, $coupon->value);
+  }
   return $result;
 }
 

