--- signup_pay.module	2008-03-25 17:39:25.000000000 -0400
+++ signup_pay.moduleUPDATE3.currencychange	2008-03-25 17:50:20.000000000 -0400
@@ -222,7 +222,7 @@ function _signup_pay_format_amount($amou
   $amount = number_format($amount, 2);
   switch($currency) {
     case 'EUR':
-      return "â‚¬ $amount";
+      return "&#8364; $amount";
     case 'USD':
       return "$ $amount";
     case 'CAD':
@@ -269,6 +269,14 @@ function signup_pay_edit($mode) {
     '#default_value' => $row->uid,
     '#description'   => t('The user ID of the person paying.'),
   );
+  $form['nid'] = array(
+    '#type'          => 'textfield',
+    '#title'         => t('nid of event'),
+    '#size'          => 60,
+    '#maxlength'     => 60,
+    '#default_value' => $row->nid,
+    '#description'   => t('The node ID of the event to be paid.'),
+  );
   $form['amount'] = array(
     '#type'          => 'textfield',
     '#title'         => t('Gross amount'),
@@ -349,14 +357,15 @@ function signup_pay_edit_submit($form_id
 
   switch($mode) {
     case 'add':
-      db_query("INSERT INTO {signup_pay} (id, uid, nid, time_paid, method_id, currency, amount, mail, name)
+      db_query("INSERT INTO {signup_pay} (id, uid, nid, time_paid, method_id, currency, amount, net_amount, mail, name)
         VALUES (0, %d, %d, %d, %d, '%s', %f, '%s', '%s')",
         $form['uid'],
         $form['nid'],
         strtotime($form['time_paid']),
         $form['method'],
-        $form['currency'],
+        $form['currency_code'],
         $form['amount'],
+        $form['net_amount'],
         $form['mail'],
         $form['name']);
       drupal_set_message(t('The payment has been added.'));
@@ -366,14 +375,15 @@ function signup_pay_edit_submit($form_id
 
     case 'edit':
       db_query("UPDATE {signup_pay}
-        SET uid = %d, nid = %d, time_paid = %d, method_id = %d, currency = '%s', amount = %f, mail = '%s', name = '%s'
+        SET uid = %d, nid = %d, time_paid = %d, method_id = %d, currency = '%s', amount = %f, net_amount = %f, mail = '%s', name = '%s'
         WHERE id = %d",
         $form['uid'],
         $form['nid'],
         strtotime($form['time_paid']),
         $form['method'],
-        $form['currency'],
+        $form['currency_code'],
         $form['amount'],
+        $form['net_amount'],
         $form['mail'],
         $form['name'],
         $form['id']);
@@ -572,7 +582,7 @@ function signup_pay_form_alter($form_id,
 }
 
 /**
- * find user role for determining amount and currencty
+ * find user role for determining amount and currency
  */
 function signup_pay_find_user_role(&$user) {
   $role_weight_list = variable_get(SIGNUP_PAY_ROLE_WEIGHT, 0);
