remove obsole file of import bank

This commit is contained in:
Dany De Bontridder 2011-09-15 10:17:44 +00:00
parent cf1b558890
commit d4bfd221ac
3 changed files with 0 additions and 184 deletions

View file

@ -1,78 +0,0 @@
<?php
/*
* This file is part of PhpCompta.
*
* PhpCompta is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* PhpCompta 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
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PhpCompta; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* $Revision$ */
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
/*!\file
* \brief ajax file called by the import screen
*/
/*! \brief update , delete or remove a record from the confirmed list
*
*/
include_once ("constant.php");
require_once('class_database.php');
require_once ('class_user.php');
require_once ('class_dossier.php');
$cn=new Database(dossier::id());
$User=new User($cn);
$User->check_dossier(dossier::id());
$User->can_request('GEBQ');
$User->Check();
if ( isset ($_GET['action']) &&
$_GET['action']=='update'
)
{
$code=FormatString($_GET['code']);
$count=FormatString($_GET['count']);
$poste=FormatString($_GET['poste']);
$concern=FormatString($_GET['concerned']);
$sql = "update import_tmp set poste_comptable='$poste' ,status='w',".
"jr_rapt='$concern' where code='$code'";
$Res=$cn->exec_sql($sql);
exit();
}
if ( isset ($_GET['action']) &&
$_GET['action']=='delete'
)
{
$code=FormatString($_GET['code']);
$sql="update import_tmp set status='d' where code='".$code."'";
$cn->exec_sql($sql);
exit();
}
if ( isset ($_GET['action']) &&
$_GET['action']=='not_confirmed'
)
{
$code=FormatString($_GET['code']);
$sql="update import_tmp set status='n' where code='".$code."'";
$cn->exec_sql($sql);
exit();
}

View file

@ -1,105 +0,0 @@
/*
* This file is part of PhpCompta.
*
* PhpCompta is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* PhpCompta 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
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PhpCompta; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* $Revision: 2546 $ */
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
/**
*@brief regroup the function for the import of bank csv
*/
/*! \brief import : update a record (in ajax)
* \param $p_dossier : the dossier id
* \param $p_count : the item number
*/
function import_update(p_dossier,p_count)
{
var query_string="count="+p_count+"&gDossier="+p_dossier;
var code=$("code"+p_count);
var poste=$("poste"+p_count);
var concerned=$("e_concerned"+p_count);
var url="ajax_import.php";
query_string+="&code="+code.value;
query_string+="&poste="+poste.value;
query_string+="&concerned="+concerned.value;
query_string+="&action=update";
/* call the script which handle the query */
var update= new Ajax.Request (
url,
{
method:'get',
parameters:query_string
}
);
var form=$("form_"+p_count);
form.hide();
}
/*! \brief remove : remove a record (in ajax)
* \param $p_dossier : the dossier id
* \param $p_count : the item number
*/
function import_remove(p_dossier,p_count)
{
var query_string="count="+p_count+"&gDossier="+p_dossier;
var code=$("code"+p_count);
var url="ajax_import.php";
query_string+="&code="+code.value;
query_string+="&action=delete";
var a = confirm("Etes-vous certain d'effacer cette operation ?");
if ( a == false )
{
return;
}
/* call the script which handle the query */
var update= new Ajax.Request (
url,
{
method:'get',
parameters:query_string
}
);
var form=$("form_"+p_count);
form.hide();
}
/*! \brief remove : remove a record (in ajax)
* \param $p_dossier : the dossier id
* \param $p_count : the item number
*/
function import_not_confirmed(p_dossier,p_count)
{
var query_string="count="+p_count+"&gDossier="+p_dossier;
var code=$("code"+p_count);
var url="ajax_import.php";
query_string+="&code="+code.value;
query_string+="&action=not_confirmed";
/* call the script which handle the query */
var update= new Ajax.Request (
url,
{
method:'get',
parameters:query_string
}
);
var form=$("form_"+p_count);
form.hide();
}

View file

@ -2741,7 +2741,6 @@ function load_all_script()
echo js_include('acc_report.js');
echo js_include('ajax_fiche.js');
echo js_include('anc_script.js');
echo js_include('bq_import.js');
echo js_include('builder.js');
echo js_include('calc.js');
echo js_include('card.js');