+if (isset($_POST['go']))
+{
+ $Ajax->activate('gl_items');
+ display_quick_entries($_SESSION['supp_trans'], $_POST['qid'], input_num('totamount'), QE_SUPPINV);
+ $_POST['totamount'] = price_format(0); $Ajax->activate('totamount');
+ $Ajax->activate('inv_tot');
+}
+
+start_form(false, true);
+
+invoice_header($_SESSION['supp_trans']);
+
+if ($_POST['supplier_id']=='')
+ display_error('No supplier found for entered search text');
+else {
+ start_outer_table("$table_style2 width=98%", 5);
+
+ display_grn_items($_SESSION['supp_trans'], 1);
+
+ display_gl_items($_SESSION['supp_trans'], 1);
+
+ div_start('inv_tot');
+ invoice_totals($_SESSION['supp_trans']);
+ div_end();
+
+ end_outer_table(0, false);
+}
+
+//-----------------------------------------------------------------------------------------
+
+if ($id != -1 || $id2 != -1)
+{
+ $Ajax->activate('grn_items');
+ $Ajax->activate('inv_tot');
+}
+
+if (get_post('AddGLCodeToTrans'))
+ $Ajax->activate('inv_tot');
+
+br();