From 0c1ed51aa3650489b8bfde3e8080cc99acd343b1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 3 Dec 2007 21:27:57 +0000 Subject: [PATCH] Suppression TODO --- htdocs/contrat/fiche.php | 31 +++++++++++--------------- htdocs/contrat/ligne.php | 25 +++++++++------------ htdocs/expedition/expedition.class.php | 5 +---- htdocs/html.form.class.php | 2 +- 4 files changed, 25 insertions(+), 38 deletions(-) diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php index 767ebbf69c1..58bca94fe0b 100644 --- a/htdocs/contrat/fiche.php +++ b/htdocs/contrat/fiche.php @@ -43,7 +43,7 @@ $user->getrights('commercial'); if (! $user->rights->contrat->lire) accessforbidden(); -// Sécurité accés client et commerciaux +// S�curit� acc�s client et commerciaux $contratid = isset($_GET["id"])?$_GET["id"]:''; if ($user->societe_id > 0) @@ -71,7 +71,7 @@ if ($contratid && !$user->rights->commercial->client->voir) } -// Si ajout champ produit prédéfini +// Si ajout champ produit pr�d�fini if ($_POST["mode"]=='predefined') { $date_start=''; @@ -192,7 +192,7 @@ if ($_POST["action"] == 'addligne' && $user->rights->contrat->creer) $date_end=dolibarr_mktime(12,0,0,$_POST['date_end_slmonth'],$_POST['date_end_slday'],$_POST['date_end_slyear']); } } - // Si ajout champ produit prédéfini + // Si ajout champ produit pr�d�fini if ($_POST['mode'] == 'predefined') { if ($_POST['date_startyear'] && $_POST['date_startmonth'] && $_POST['date_startday']) @@ -695,11 +695,6 @@ else print ''.$langs->trans("Date").''; print ''.dolibarr_print_date($contrat->date_contrat,"dayhour")."\n"; - // Factures associées - /* - TODO - */ - // Projet if ($conf->projet->enabled) { @@ -790,7 +785,7 @@ else print ''.vatrate($objp->tva_tx).'%'; // Prix print ''.price($objp->subprice)."\n"; - // Quantité + // Quantit� print ''.$objp->qty.''; // Remise if ($objp->remise_percent > 0) @@ -801,7 +796,7 @@ else { print ' '; } - // Icon update et delete (statut contrat 0=brouillon,1=validé,2=fermé) + // Icon update et delete (statut contrat 0=brouillon,1=valid�,2=ferm�) print ''; if ($contrat->statut != 2 && $user->rights->contrat->creer) { @@ -831,17 +826,17 @@ else print "\n"; - // Dates de en service prévues et effectives + // Dates de en service pr�vues et effectives if ($objp->subprice >= 0) { print ''; print ''; - // Date prévues + // Date pr�vues print $langs->trans("DateStartPlanned").': '; if ($objp->date_debut) { print dolibarr_print_date($objp->date_debut); - // Warning si date prevu passée et pas en service + // Warning si date prevu pass�e et pas en service if ($objp->statut == 0 && $objp->date_debut < time() - $conf->contrat->warning_delay) { print " ".img_warning($langs->trans("Late")); } } else print $langs->trans("Unknown"); @@ -855,18 +850,18 @@ else print '
'; - // Si pas encore activé + // Si pas encore activ� if (! $objp->date_debut_reelle) { print $langs->trans("DateStartReal").': '; if ($objp->date_debut_reelle) print dolibarr_print_date($objp->date_debut_reelle); else print $langs->trans("ContractStatusNotRunning"); } - // Si activé et en cours + // Si activ� et en cours if ($objp->date_debut_reelle && ! $objp->date_fin_reelle) { print $langs->trans("DateStartReal").': '; print dolibarr_print_date($objp->date_debut_reelle); } - // Si désactivé + // Si d�sactiv� if ($objp->date_debut_reelle && $objp->date_fin_reelle) { print $langs->trans("DateStartReal").': '; print dolibarr_print_date($objp->date_debut_reelle); @@ -909,7 +904,7 @@ else print ''; print '
'; print ''; - // Ligne dates prévues + // Ligne dates pr�vues print ""; print ''; print $langs->trans("DateStartPlanned").' '; @@ -960,7 +955,7 @@ else $var=false; - // Service sur produit prédéfini + // Service sur produit pr�d�fini print '
'; print ''; print ''; diff --git a/htdocs/contrat/ligne.php b/htdocs/contrat/ligne.php index f23fa2923c4..2c3a0cae51e 100644 --- a/htdocs/contrat/ligne.php +++ b/htdocs/contrat/ligne.php @@ -47,7 +47,7 @@ accessforbidden(); /* - * Sécurité accés client + * S�curit� acc�s client */ if ($user->societe_id > 0) { @@ -192,11 +192,6 @@ if ($lineid > 0) print ''.$langs->trans("Date").''; print ''.dolibarr_print_date($contrat->date_contrat,"dayhour")."\n"; - // Factures associées - /* - TODO - */ - // Projet if ($conf->projet->enabled) { @@ -309,16 +304,16 @@ if ($lineid > 0) if ($objp->date_debut) $dateactstart=$objp->date_debut; if ($objp->date_fin) $dateactend=$objp->date_fin; - // Dates de en service prévues et effectives + // Dates de en service pr�vues et effectives print ''; print ''; - // Date prévues + // Date pr�vues print $langs->trans("DateStartPlanned").': '; if ($objp->date_debut) { print dolibarr_print_date($objp->date_debut); - // Warning si date prevu passée et pas en service + // Warning si date prevu pass�e et pas en service if ($objp->statut == 0 && $objp->date_debut < time() - $conf->contrat->warning_delay) { print " ".img_warning($langs->trans("Late")); } } else print $langs->trans("Unknown"); @@ -332,18 +327,18 @@ if ($lineid > 0) print '
'; - // Si pas encore activé + // Si pas encore activ� if (! $objp->date_debut_reelle) { print $langs->trans("DateStartReal").': '; if ($objp->date_debut_reelle) print dolibarr_print_date($objp->date_debut_reelle); else print $langs->trans("ContractStatusNotRunning"); } - // Si activé et en cours + // Si activ� et en cours if ($objp->date_debut_reelle && ! $objp->date_fin_reelle) { print $langs->trans("DateStartReal").': '; print dolibarr_print_date($objp->date_debut_reelle); } - // Si désactivé + // Si d�sactiv� if ($objp->date_debut_reelle && $objp->date_fin_reelle) { print $langs->trans("DateStartReal").': '; print dolibarr_print_date($objp->date_debut_reelle); @@ -416,7 +411,7 @@ if ($lineid > 0) if ($user->rights->contrat->activer && $contrat->statut == 1 && $objp->statut == 4) { /** - * Désactiver la ligne de contrat + * D�sactiver la ligne de contrat */ $form = new Form($db); @@ -458,8 +453,8 @@ if ($lineid > 0) } else { - // Contrat non trouvé - print "Contrat inexistant ou accés refusé"; + // Contrat non trouv� + print "Contrat inexistant ou acc�s refus�"; } } diff --git a/htdocs/expedition/expedition.class.php b/htdocs/expedition/expedition.class.php index 4ac15727ade..b5de9d43c50 100644 --- a/htdocs/expedition/expedition.class.php +++ b/htdocs/expedition/expedition.class.php @@ -99,12 +99,9 @@ class Expedition extends CommonObject $this->commande->id = $this->commande_id; $this->commande->fetch_lines(); - /* - * Insertion des produits dans la base - */ + // Insertion des lignes for ($i = 0 ; $i < sizeof($this->lignes) ; $i++) { - //TODO if (! $this->create_line(0, $this->lignes[$i]->commande_ligne_id, $this->lignes[$i]->qty)) { $error++; diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index c03640e20d6..53bcff3d1f5 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -2016,7 +2016,7 @@ class Form } if ($input['type'] == 'select') { - // TODO + } if ($input['type'] == 'checkbox') {