+ ref_row(_("Reference:"), 'ref', null, get_post('ref'), false, ST_JOURNAL, get_post('date_'));
+ hidden('ref_original');
+
+ if ($qes !== false)
+ {
+ table_section(3);
+ quick_entries_list_row(_("Quick Entry").":", 'quick', null, QE_JOURNAL, true);
+
+ start_row();
+ $qid = get_quick_entry(get_post('quick'));
+ if (list_updated('quick')) {
+ unset($_POST['totamount']); // enable default
+ $Ajax->activate('totamount');
+ }
+ end_row();
+ if ($qid['bal_type'] == 1)
+ {
+ $accname = get_gl_account_name($qid['base_desc']);
+ label_row(($qid['base_amount'] == 0 ? _("Yearly") : _("Monthly")) . " ". _("balance from account")." ".
+ $qid['base_desc']." ".$accname." ".submit('go', _("Go"), false, false, true),'', "colspan=2");
+ }
+ else
+ {
+ text_row(_('Additional info:'), 'aux_info', null, 35, 255);
+ amount_row($qid['base_desc'].":", 'totamount', price_format($qid['base_amount']),
+ null, " ".submit('go', _("Go"), false, false, true));
+ }