{
global $table_style2;
- $qes = has_quick_entries(-1, 0);
+ $qes = has_quick_entries(QE_JOURNAL);
start_outer_table("$table_style2 width=90%");
table_section(1);
{
table_section(3, "50%");
start_row();
- quick_entries_list_cells(_("Quick Entry:"), 'person_id', null, -1, 0);
- amount_cells(_("Total Amount"), 'totamount', null, null, " ".submit('go', _("Go"), false, false, true));
+ quick_entries_list_cells(_("Quick Entry").":", 'person_id', null, QE_JOURNAL, true);
+ $qid = get_quick_entry(get_post('person_id'));
+ if (list_updated('person_id')) {
+ unset($_POST['totamount']); // enable default
+ $Ajax->activate('totamount');
+ }
+ amount_cells($qid['base_desc'].":", 'totamount', price_format($qid['base_amount']),
+ null, " ".submit('go', _("Go"), false, false, true));
end_row();
+
}
end_outer_table(1);