[Frontaccounting-cvs_updates] frontaccount/includes/ui ui_lists.inc, 1.7.2.59, 1.7.2.60
Brought to you by:
frontaccounting,
itronics
From: itronics <itr...@us...> - 2009-01-15 14:58:17
|
Update of /cvsroot/frontaccounting/frontaccount/includes/ui In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1862/includes/ui Modified Files: Tag: unstable ui_lists.inc Log Message: Rewritten bank reconciliation page Index: ui_lists.inc =================================================================== RCS file: /cvsroot/frontaccounting/frontaccount/includes/ui/ui_lists.inc,v retrieving revision 1.7.2.59 retrieving revision 1.7.2.60 diff -C2 -d -r1.7.2.59 -r1.7.2.60 *** ui_lists.inc 10 Dec 2008 14:51:29 -0000 1.7.2.59 --- ui_lists.inc 15 Jan 2009 14:58:09 -0000 1.7.2.60 *************** *** 1284,1307 **** //----------------------------------------------------------------------------------------------- ! /* ! function bank_trans_types_list($name, $selected_id=null) { ! $sql = "SELECT id, name FROM ".TB_PREF."bank_trans_types"; ! combo_input($name, $selected_id, $sql, 'id', 'name', array()); } ! function bank_trans_types_list_cells($label, $name, $selected_id=null) { if ($label != null) echo "<td>$label</td>\n"; echo "<td>"; ! bank_trans_types_list($name, $selected_id); echo "</td>\n"; } ! ! function bank_trans_types_list_row($label, $name, $selected_id=null) { echo "<tr>\n"; ! bank_trans_types_list_cells($label, $name, $selected_id); echo "</tr>\n"; } --- 1284,1319 ---- //----------------------------------------------------------------------------------------------- ! function _format_date($row) { ! return sql2date($row['reconciled']); } ! function bank_reconciliation_list($account, $name, $selected_id=null, $submit_on_change=false, $special_option=false) ! { ! $sql = "SELECT reconciled, reconciled FROM ".TB_PREF."bank_trans ! WHERE bank_act=".db_escape($account)." AND reconciled IS NOT NULL ! GROUP BY reconciled"; ! combo_input($name, $selected_id, $sql, 'id', 'reconciled', ! array( ! 'spec_option' => $special_option, ! 'format' => '_format_date', ! 'spec_id' => '', ! 'select_submit'=> $submit_on_change ! ) ); ! } ! ! function bank_reconciliation_list_cells($label,$account, $name, $selected_id=null, $submit_on_change=false, $special_option=false) { if ($label != null) echo "<td>$label</td>\n"; echo "<td>"; ! bank_reconciliation_list($account, $name, $selected_id, $submit_on_change, $special_option); echo "</td>\n"; } ! /* ! function bank_reconciliation_list_row($label, $account, $name, $selected_id=null, $submit_on_change=false, $special_option=false) { echo "<tr>\n"; ! bank_reconciliation_list_cells($label, $account, $name, $selected_id, $submit_on_change, $special_option); echo "</tr>\n"; } |