X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fincludes%2Fui%2Fgl_journal_ui.inc;h=e769d36fdacb172e0b15fc5d4d73330d8c906137;hb=e91772a2716825a6aeb358d1defba47d5f3892c1;hp=bae82d3b511805b73fc5f6f16cc03f51ed443ffb;hpb=fbb7a3d6150e02e442bd763a717915649fb43437;p=fa-stable.git diff --git a/gl/includes/ui/gl_journal_ui.inc b/gl/includes/ui/gl_journal_ui.inc index bae82d3b..e769d36f 100644 --- a/gl/includes/ui/gl_journal_ui.inc +++ b/gl/includes/ui/gl_journal_ui.inc @@ -1,13 +1,13 @@ . + See the License here . ***********************************************************************/ include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/includes/ui/items_cart.inc"); @@ -18,13 +18,13 @@ function display_order_header(&$Order) { 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); start_row(); - date_cells(_("Date:"), 'date_'); + date_cells(_("Date:"), 'date_', '', true); ref_cells(_("Reference:"), 'ref', '', references::get_next(0)); end_row(); @@ -40,9 +40,16 @@ function display_order_header(&$Order) { 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);