+ start_outer_table("width=100%");
+
+ if ($mode == 1)
+ {
+ $qes = has_quick_entries(QE_SUPPINV);
+ if ($qes !== false)
+ {
+ echo "<div style='float:right;'>";
+ echo _("Quick Entry:")." ";
+ quick_entries_list('qid', null, QE_SUPPINV, true);
+ $qid = get_quick_entry(get_post('qid'));
+ if (list_updated('qid')) {
+ unset($_POST['totamount']); // enable default
+ $Ajax->activate('totamount');
+ }
+ echo " ".$qid['base_desc'].":"." ";
+
+ $amount = input_num('totamount', $qid['base_amount']);
+ $dec = user_price_dec();
+ echo "<input class='amount' type='text' name='totamount' size='7' maxlength='12' dec='$dec' value='$amount'> ";
+ submit('go', _("Go"), true, false, true);
+ echo "</div>";
+
+ }
+ }
+ display_heading($heading);
+
+ end_outer_table(0, false);
+