X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fmanage%2Fgl_quick_entries.php;h=faa958a89385b42b59586913f7833b3bf01baeeb;hb=4d4371fb200bb27fd6b680ebd2d1aaa450a0be7e;hp=e797cc8cd9c9307c4b3324ca6bddaa54090b43f3;hpb=33ba3d43d75c04080dd0d49067bafd2188fd04b1;p=fa-stable.git diff --git a/gl/manage/gl_quick_entries.php b/gl/manage/gl_quick_entries.php index e797cc8c..faa958a8 100644 --- a/gl/manage/gl_quick_entries.php +++ b/gl/manage/gl_quick_entries.php @@ -1,13 +1,13 @@ . + See the License here . ***********************************************************************/ $page_security = 3; $path_to_root="../.."; @@ -199,7 +199,7 @@ if ($selected_id != -1) $_POST['id'] = $myrow["id"]; $_POST['description'] = $myrow["description"]; - $_POST['deposit'] = $myrow["type"]; + $_POST['type'] = $myrow["type"]; $_POST['base_desc'] = $myrow["base_desc"]; $_POST['base_amount'] = price_format($myrow["base_amount"]); hidden('selected_id', $selected_id); @@ -216,7 +216,7 @@ amount_row(_("Default Base Amount").':', 'base_amount', price_format(0)); end_table(1); -submit_add_or_update_center($selected_id == -1, '', true); +submit_add_or_update_center($selected_id == -1, '', 'both'); end_form(); @@ -245,15 +245,17 @@ if ($selected_id != -1) $act_type = strtolower(substr($myrow['action'], 0, 1)); - if ($act_type == 't') { + if ($act_type == 't') + { label_cells($myrow['tax_name'], ''); - } else { + } + else + { label_cell($myrow['dest_id'].' '.$myrow['account_name']); if ($act_type == '=') label_cell(''); - else - if ($act_type == '%') - percent_cell($myrow['amount']); + elseif ($act_type == '%') + label_cell(number_format2($myrow['amount'], user_exrate_dec()), "nowrap align=right "); else amount_cell($myrow['amount']); } @@ -298,13 +300,17 @@ if ($selected_id != -1) $actn = strtolower(substr($_POST['actn'],0,1)); - if ($actn == 't') { + if ($actn == 't') + { item_tax_types_list_row(_("Item Tax Type").":",'dest_id', null); - } else { + } + else + { gl_all_accounts_list_row(_("Account").":", 'dest_id', null); - if ($actn != '=') { - if ($actn = '%') - percent_row(_("Part").":", 'amount', percent_format(0)); + if ($actn != '=') + { + if ($actn == '%') + small_amount_row(_("Part").":", 'amount', price_format(0), null, "%", user_exrate_dec()); else amount_row(_("Amount").":", 'amount', price_format(0)); }