return true;
}
-//-----------------------------------------------------------------------------------------------
-
function handle_update_item()
{
$amount = ($_SESSION['pay_items']->trans_type==ST_BANKPAYMENT ? 1:-1) * input_num('amount');
line_start_focus();
}
-//-----------------------------------------------------------------------------------------------
-
function handle_delete_item($id)
{
$_SESSION['pay_items']->remove_gl_item($id);
line_start_focus();
}
-//-----------------------------------------------------------------------------------------------
-
function handle_new_item()
{
if (!check_item_data())
$_POST['dimension2_id'], $amount, $_POST['LineMemo']);
line_start_focus();
}
+
//-----------------------------------------------------------------------------------------------
+
$id = find_submit('Delete');
if ($id != -1)
handle_delete_item($id);
end_form();
-//------------------------------------------------------------------------------------------------
-
end_page();