CGDEV 1.0 - Ajout
Par karando, dimanche 12 novembre 2006 à 02:54 :: CGDEV Version 1.00 sans classe (Abandonner) :: #12 :: rss
Ajouter un bornage sur les codes analytiques code debut - code fin
pour ce qui concerne le bornage des codes analytiques il faut deja rajouter dans la template du formulaire les deux champs de saisie : Apres la ligne 131 dans le fichier /Template/P_SearchFormWOHelp2.php
[PHP]
<th align="right"><?=$CST_Session_WAccount." ".$CST_Session_WEnd;?> :</th>
<td bgcolor="#FFFFFF">
<input name="SF_AccountEnd" type="text" size="12"> </td>
</tr>
on ajoute ca
[PHP]
<tr class="TexteBold">
<th align="right">Code début :</th>
<td bgcolor="#FFFFFF">
<input name="SF_AccountAnalytiqueStart" type="text" size="12"> </td>
<th align="right">Code Fin :</th>
<td bgcolor="#FFFFFF">
<input name="SF_AccountAnalytiqueEnd" type="text" size="12"> </td>
</tr>
Ensuite on modifie le fichier /rpanalytique/r_code_journal.php line 86
[PHP] $QR_CompanyID=$CST_Session_CompanyID; $QR_ExerciseID=$CST_Session_ExerciseID; $QR_AccountPlanID=$CST_Session_AccountPlanID; $QR_Report="JournalSortedByAccount"; $VAR_RAPPORT_ANALYTIQUE=1; $VAR_RAPPORT_ANA_JOURNAL=1; include "Template/Q_Report.php";
par
[PHP] $QR_CompanyID=$CST_Session_CompanyID; $QR_ExerciseID=$CST_Session_ExerciseID; $QR_AccountPlanID=$CST_Session_AccountPlanID; $QR_AStart=$_POST["SF_AccountAnalytiqueStart"]; $QR_AEnd = $_POST["SF_AccountAnalytiqueEnd"]; $QR_Report="JournalSortedByAccount"; $VAR_RAPPORT_ANALYTIQUE=1; $VAR_RAPPORT_ANA_JOURNAL=1; include "Template/Q_Report.php";
En fait on a rajouter les lignes
[PHP] $QR_AStart=$_POST["SF_AccountAnalytiqueStart"]; $QR_AEnd = $_POST["SF_AccountAnalytiqueEnd"];
Il faudrait faire de meme pour les page /rpanalytique/r_code.php et /rpanalytique/r_code_compte.php au ligne : 90 et 90 avant la requete appelé par include "Template/Q_Report.php";
Commentaires
Aucun commentaire pour le moment.
Ajouter un commentaire
Les commentaires pour ce billet sont fermés.