default to a session cookie instead of setting an explicit timeout, weird timezone...
[freeside.git] / httemplate / elements / tr-amount_fee.html
index 42132e0..40f55e7 100644 (file)
@@ -5,7 +5,7 @@
         <% $money_char %><INPUT NAME     = "amount"
                                 ID       = "amount"
                                 TYPE     = "text"
-                                VALUE    = ""
+                                VALUE    = "0.00"
                                 SIZE     = 8
                                 STYLE    = "text-align:right;"
 %                               if ( $fee || $surcharge_percentage || $surcharge_flatfee || $processing_fee) {
@@ -140,6 +140,8 @@ if ( $amount ) {
 
   $amount += $surcharge;
 
+  $amount += $processing_fee; ## needed if processing fee is checked on default.
+
   $amount = sprintf("%.2f", $amount);
 }