Index: /main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py
===================================================================
--- /main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py	(revision 17080)
+++ /main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py	(revision 17081)
@@ -420,6 +420,4 @@
                         gateway_net_amt(self.context.amount_auth)
                         - provider_amt
-                        - joint_venture_amt
-                        - aaue_share_amt
                         - student_union_due_amt
                         - student_welfare_assurance_amt)
@@ -431,4 +429,11 @@
 <item_detail item_id="4" item_name="Student Welfare Assurance" item_amt="%(student_welfare_assurance_amt)d" bank_id="123" acct_num="1006407792" />""" % xmldict
                     if contr_agreement_student(student) == 'second':
+                        xmldict['institution_amt'] = 100 * (
+                            gateway_net_amt(self.context.amount_auth)
+                            - provider_amt
+                            - joint_venture_amt
+                            - aaue_share_amt
+                            - student_union_due_amt
+                            - student_welfare_assurance_amt)                    
                         xmltext += """"
 <item_detail item_id="5" item_name="Joint Venture" item_amt="%(joint_venture_amt)d" bank_id="%(joint_venture_bank_id)s" acct_num="%(joint_venture_acct)s" />
Index: /main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py
===================================================================
--- /main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py	(revision 17080)
+++ /main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py	(revision 17081)
@@ -279,5 +279,5 @@
             in self.browser.contents)
         self.assertTrue(
-            'item_name="School Fee Plus" item_amt="4755000" bank_id="117" '
+            'item_name="School Fee Plus" item_amt="5005000" bank_id="117" '
             'acct_num="1010827641"' in self.browser.contents)
 
