- echo "<table width=100%>";
- echo "<tr><td align=center><span class='headingtext'>$heading</span></td>";
- echo "</tr></table>";
+ start_outer_table(TABLESTYLE, "width='95%'");
+
+ if ($mode == 1)
+ {
+ $qes = has_quick_entries(QE_SUPPINV);
+ if ($qes !== false)
+ {
+ echo "<div style='float:right;'>";
+ echo _("Quick Entry:")." ";
+ echo 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>";