<?php
/**********************************************************************
Copyright (C) FrontAccounting, LLC.
- Released under the terms of the GNU Affero General Public License,
- AGPL, as published by the Free Software Foundation, either version
- 3 of the License, or (at your option) any later version.
+ Released under the terms of the GNU General Public License, GPL,
+ as published by the Free Software Foundation, either version 3
+ of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- See the License here <http://www.gnu.org/licenses/agpl-3.0.html>.
+ See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
$page_security = 3;
$path_to_root="../..";
$_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);
end_table(1);
-submit_add_or_update_center($selected_id == -1, '', true);
+submit_add_or_update_center($selected_id == -1, '', 'both');
end_form();
$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']);
}
$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));
}