[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4270 - in phpcompta/trunk: html/js include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4270 - in phpcompta/trunk: html/js include |
Date: |
Sat, 29 Oct 2011 15:15:18 +0200 (CEST) |
Author: danydb
Date: 2011-10-29 15:15:17 +0200 (Sat, 29 Oct 2011)
New Revision: 4270
Modified:
phpcompta/trunk/html/js/anc_script.js
phpcompta/trunk/html/js/controls.js
phpcompta/trunk/include/action.common.inc.php
phpcompta/trunk/include/class_acc_tva.php
phpcompta/trunk/include/contact.inc.php
phpcompta/trunk/include/export_bilan_oth.php
phpcompta/trunk/include/forecast.inc.php
phpcompta/trunk/include/modele.inc.php
Log:
remove todo, dead code
Modified: phpcompta/trunk/html/js/anc_script.js
===================================================================
--- phpcompta/trunk/html/js/anc_script.js 2011-10-29 12:53:53 UTC (rev
4269)
+++ phpcompta/trunk/html/js/anc_script.js 2011-10-29 13:15:17 UTC (rev
4270)
@@ -109,12 +109,12 @@
return true;
}
/*!
- * \brief open a window for searching a CA account,
+ * \brief open a window for searching a CA account,
* \param p_dossier dossier id
* \param p_target ctrl to update
* \param p_source ctrl containing the pa_id
- *
*
+ *
* \return
*/
function search_ca (p_dossier,p_target,p_source)
@@ -207,7 +207,6 @@
}
/**
* add a row in misc operation for ANC
address@hidden if we add a line, the number of lines become variables
* the code must be adapted for that
*/
function anc_add_row(tableid)
Modified: phpcompta/trunk/html/js/controls.js
===================================================================
--- phpcompta/trunk/html/js/controls.js 2011-10-29 12:53:53 UTC (rev 4269)
+++ phpcompta/trunk/html/js/controls.js 2011-10-29 13:15:17 UTC (rev 4270)
@@ -781,7 +781,7 @@
onComplete: Prototype.emptyFunction,
onSuccess: function(transport) {
var js = transport.responseText.strip();
- if (!/^\[.*\]$/.test(js)) // TODO: improve sanity check
+ if (!/^\[.*\]$/.test(js))
throw('Server returned an invalid collection representation.');
this._collection = eval(js);
this.checkForExternalText();
Modified: phpcompta/trunk/include/action.common.inc.php
===================================================================
--- phpcompta/trunk/include/action.common.inc.php 2011-10-29 12:53:53 UTC
(rev 4269)
+++ phpcompta/trunk/include/action.common.inc.php 2011-10-29 13:15:17 UTC
(rev 4270)
@@ -284,21 +284,7 @@
$see_all=new ICheckBox('see_all');
$my_action=new ICheckBox('all_action');
-/**
- * @todo
- * if ( $_REQUEST ['p_action'] != 'suivi_courrier')
- *
- {
- $see_all->selected=true;
- $my_action->selected= true;
- }
- else
- {
- $see_all->selected=(isset($_REQUEST ['see_all']))?true:false;
- $my_action->selected= (isset($_REQUEST ['all_action']))?true:false;
- }
- *
- */
+
echo _('les actions fermées aussi:').$see_all->input().'<br/>';
echo _('affecté à d\'autre:').$my_action->input().'<br/>';
Modified: phpcompta/trunk/include/class_acc_tva.php
===================================================================
--- phpcompta/trunk/include/class_acc_tva.php 2011-10-29 12:53:53 UTC (rev
4269)
+++ phpcompta/trunk/include/class_acc_tva.php 2011-10-29 13:15:17 UTC (rev
4270)
@@ -28,13 +28,13 @@
/*!\brief Acc_Tva is used for to map the table tva_rate
* parameter are
-- private static $cn; database connection
+- private static $cn; database connection
- private static $variable=array("id"=>"tva_id",
"label"=>"tva_label",
"rate"=>"tva_rate",
"comment"=>"tva_comment",
"account"=>"tva_poste");
-
+
*/
class Acc_Tva
{
@@ -124,7 +124,7 @@
}
/**
*Load the VAT,
- address@hidden if the label is not found then we get an message error, so
the best is probably
+ address@hidden if the label is not found then we get an message error, so
the best is probably
*to initialize the VAT object with default value
*/
public function load()
Modified: phpcompta/trunk/include/contact.inc.php
===================================================================
--- phpcompta/trunk/include/contact.inc.php 2011-10-29 12:53:53 UTC (rev
4269)
+++ phpcompta/trunk/include/contact.inc.php 2011-10-29 13:15:17 UTC (rev
4270)
@@ -36,7 +36,6 @@
// if this page is called from another menu (customer, supplier,...)
// a button back is added
-// TODO add function for generating url, hidden tags...
if ( isset ($_REQUEST['url']))
{
$retour=HtmlInput::button_anchor('Retour',urldecode($_REQUEST['url']));
Modified: phpcompta/trunk/include/export_bilan_oth.php
===================================================================
--- phpcompta/trunk/include/export_bilan_oth.php 2011-10-29 12:53:53 UTC
(rev 4269)
+++ phpcompta/trunk/include/export_bilan_oth.php 2011-10-29 13:15:17 UTC
(rev 4270)
@@ -34,14 +34,6 @@
/* Admin. Dossier */
$cn=new Database($gDossier);
-$User=new User($cn);
-$User->Check();
-
-// TODO a specific level of security for the "bilan" ???
-// Change must be done here
-$User->can_request(IMPBIL);
-
-
$bilan=new Acc_Bilan($cn);
$bilan->get_request_get();
$bilan->load();
Modified: phpcompta/trunk/include/forecast.inc.php
===================================================================
--- phpcompta/trunk/include/forecast.inc.php 2011-10-29 12:53:53 UTC (rev
4269)
+++ phpcompta/trunk/include/forecast.inc.php 2011-10-29 13:15:17 UTC (rev
4270)
@@ -33,9 +33,6 @@
*
*
* ******************************************************************** */
-/**
- * @todo add security for forecast.inc.php
- */
if (isset($_GET['del']))
{
$forecast = new Forecast($cn, $_GET['f_id']);
Modified: phpcompta/trunk/include/modele.inc.php
===================================================================
--- phpcompta/trunk/include/modele.inc.php 2011-10-29 12:53:53 UTC (rev
4269)
+++ phpcompta/trunk/include/modele.inc.php 2011-10-29 13:15:17 UTC (rev
4270)
@@ -22,7 +22,7 @@
/*!\file
*
- *
+ *
* \brief concerne only the template
*
*/
@@ -120,8 +120,6 @@
$Res=$cn_mod->exec_sql('delete from operation_analytique');
- // TODO
-
$Res=$cn_mod->exec_sql("truncate table import_tmp");
// Reset the closed periode
$Res=$cn_mod->exec_sql("update parm_periode set p_closed='f'");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4270 - in phpcompta/trunk: html/js include,
phpcompta-dev <=